AVRDUDE Error when downloading HEX file to chip

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
agatambiye
Posts: 3
Joined: Sat Jul 13, 2019 10:24 am
Has thanked: 2 times
Contact:

AVRDUDE Error when downloading HEX file to chip

Post by agatambiye »

Hi All,
I am having a problem when downloading my program to my BL0055 board, I am getting the message below


HEX file creation successful!
C:\Users\alexg\DOCUME~1\Cement\Flowcode\Program>"C:\PROGRA~2\Flowcode\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O coff-avr -R .eeprom "C:\Users\alexg\DOCUME~1\Cement\Flowcode\Program\Flowcode1.elf" "C:\Users\alexg\DOCUME~1\Cement\Flowcode\Program\Flowcode1.cof"
COFF file creation successful!
Launching the programmer...
C:\Program Files (x86)\Flowcode\Compilers\avr\batchfiles\avrc_arduinoA.bat m328p arduino com7 115200 "C:\Users\alexg\DOCUME~1\Cement\Flowcode\Program\Flowcode1.hex"
C:\Users\alexg\DOCUME~1\Cement\Flowcode\Program>"C:\PROGRA~2\Flowcode\COMPIL~1\avr\BATCHF~1\..\bin\avrdude.exe" -p m328p -P com7 -b 115200 -c arduino -D -U flash:w:"Flowcode1.hex"
avrdude.exe: ser_open(): can't open device "\\.\com7": The system cannot find the file specified.
avrdude.exe done. Thank you.
Error returned from [avrdude]
C:\Program Files (x86)\Flowcode\Compilers\avr\batchfiles\avrc_arduinoA.bat reported error code 1
Autoclose turned off
FINISHED

I have read couple of posts talking about the parameters in the compiler options, I have attached a snap shot of mine so you can have additional information.

And I have also attached my device manager status snap shot. My PC doesn't see the board through COM ports, but through USB.

Kindly help so I can get going with the downloads of my programs. thanks
Attachments
Capture - Device manager.JPG
Capture - Device manager.JPG (33.75 KiB) Viewed 2508 times
Capture - Compiler options.JPG
Capture - Compiler options.JPG (53.61 KiB) Viewed 2508 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: AVRDUDE Error when downloading HEX file to chip

Post by LeighM »

Hi,
You need to connect the Arduino board USB to PC
Then select the allocated PC port ...
uno_port.jpg
uno_port.jpg (28.64 KiB) Viewed 2507 times

agatambiye
Posts: 3
Joined: Sat Jul 13, 2019 10:24 am
Has thanked: 2 times
Contact:

Re: AVRDUDE Error when downloading HEX file to chip

Post by agatambiye »

Hi LeighM,
Thank you for your reply, but on my programmer port I am not seeing any port coming on the drop down menu. I have installed the arduino hardwares as per advice, and installed them as you see there are no unknown devices related to the BL0055 board on my device manager.

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: AVRDUDE Error when downloading HEX file to chip

Post by LeighM »

Hi,
The USB BL0055 device is for the Ghost connection only.
The programming is not done through this port, but directly with the Arduino USB/COM port.
I suggest that you remove the Arduino board from the BL0055 and any other connected peripherals
and try connecting the Arduino only to the PC and see if it is then detected and the COM port is allocated.

Also this article should be of help ...
https://www.matrixtsl.com/faq/index.php ... artlang=en

agatambiye
Posts: 3
Joined: Sat Jul 13, 2019 10:24 am
Has thanked: 2 times
Contact:

Re: AVRDUDE Error when downloading HEX file to chip

Post by agatambiye »

Hi LeighM,
Thanks for the support. I now understand where I got everything wrong.

Post Reply