Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem uploading onto arduino nano (Ubuntu18.04/Windows10) #7

Open
crappybones opened this issue Jul 10, 2018 · 7 comments
Open

problem uploading onto arduino nano (Ubuntu18.04/Windows10) #7

crappybones opened this issue Jul 10, 2018 · 7 comments

Comments

@crappybones
Copy link

Had this error message when I tried uploading the code via firefly.ino (this is from using the Ubuntu)
It looks to me theres an issue in the column size and also ive got to set a certain programmer?

Maybe theres a tutorial out there to help a noob like me


Arduino: 1.8.5 (Linux), Board: "Arduino Nano, ATmega328P"

Build options changed, rebuilding all
/home/ubuntu/Arduino/libraries/firefly_blecast/src/aes-otfks-decrypt.c: In function 'aes_mix_columns':
/home/ubuntu/Arduino/libraries/firefly_blecast/src/aes-otfks-decrypt.c:321:9: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
memset(temp_column, 0, AES_COLUMN_SIZE);
^
/home/ubuntu/Arduino/libraries/firefly_blecast/src/aes-otfks-decrypt.c:321:9: warning: incompatible implicit declaration of built-in function 'memset'
/home/ubuntu/Arduino/libraries/firefly_blecast/src/aes-otfks-decrypt.c:331:9: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
memcpy(&p_block[i * AES_COLUMN_SIZE], temp_column, AES_COLUMN_SIZE);
^
/home/ubuntu/Arduino/libraries/firefly_blecast/src/aes-otfks-decrypt.c:331:9: warning: incompatible implicit declaration of built-in function 'memcpy'
/home/ubuntu/Arduino/libraries/firefly_blecast/src/aes-otfks-decrypt.c: In function 'aes_mix_columns_inv':
/home/ubuntu/Arduino/libraries/firefly_blecast/src/aes-otfks-decrypt.c:352:9: warning: incompatible implicit declaration of built-in function 'memset'
memset(temp_column, 0, AES_COLUMN_SIZE);
^
/home/ubuntu/Arduino/libraries/firefly_blecast/src/aes-otfks-decrypt.c:364:9: warning: incompatible implicit declaration of built-in function 'memcpy'
memcpy(&p_block[i * AES_COLUMN_SIZE], temp_column, AES_COLUMN_SIZE);
^
/home/ubuntu/Arduino/libraries/firefly_blecast/src/firefly_blecast.c: In function 'blecast_poll':
/home/ubuntu/Arduino/libraries/firefly_blecast/src/firefly_blecast.c:674:31: warning: initialization makes integer from pointer without a cast
uint8_t whitenIndex = whitenMask + radio_getChannel(message) * 17;
^
Sketch uses 28146 bytes (91%) of program storage space. Maximum is 30720 bytes.
Global variables use 383 bytes (18%) of dynamic memory, leaving 1665 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@ricmoo
Copy link
Member

ricmoo commented Jul 10, 2018

Those warnings look unrelated.

I’ve had that error before on macOS when the cable I was using was power-only (didn’t support data), so you may try changing the cable? Or check the driver.

Does the standard blink sketch load ok?

@ricmoo ricmoo closed this as completed Jul 10, 2018
@ricmoo ricmoo reopened this Jul 10, 2018
@ricmoo
Copy link
Member

ricmoo commented Jul 10, 2018

(sorry; didn’t mean to close the issue, I tapped the wrong button)

@JosefJ
Copy link

JosefJ commented Oct 2, 2018

Setting up an old bootloader worked for me: Tools > Processor > [...] (Old Bootloader)

@ricmoo
Copy link
Member

ricmoo commented Oct 2, 2018

Oh yes! Make sure the boot-loader matches your Arduino device.

The Firefly firmware works with either the "old boot loader" or the the new "Optiboot", but you must select in the IDE the one that matches your device.

@0xthreebody
Copy link

0xthreebody commented Mar 27, 2019

@ricmoo I have the same issue, change arduino use ATmega328 (Old Bootloader) some time OK, But in the Fritzing can't change to ATmega328 (Old Bootloader). so have same issue, can't upload on the Fritzing

@ricmoo
Copy link
Member

ricmoo commented Mar 27, 2019

You mean you are trying to upload using Fritzing? I have not ever used software other than the Arduino IDE; I didn’t even know that Fritzing had uploading capabilities. Can you try the Arduino IDE instead?

@0xthreebody
Copy link

Fritzing's code view, upload to put the Simulator running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants