Page 1 of 1

AVRDUDE Error when downloading HEX file to chip

Posted: Sun Jul 14, 2019 10:59 pm
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

Re: AVRDUDE Error when downloading HEX file to chip

Posted: Mon Jul 15, 2019 7:54 am
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 2551 times

Re: AVRDUDE Error when downloading HEX file to chip

Posted: Mon Jul 15, 2019 5:11 pm
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.

Re: AVRDUDE Error when downloading HEX file to chip

Posted: Tue Jul 16, 2019 7:44 am
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

Re: AVRDUDE Error when downloading HEX file to chip

Posted: Tue Jul 16, 2019 8:42 am
by agatambiye
Hi LeighM,
Thanks for the support. I now understand where I got everything wrong.