Orthogonal-Systems / ocs-base

Base repository structure for open control systems (OCS) projects
Other
0 stars 1 forks source link

upload failure on vmemega v1a #1

Open mfe5003 opened 8 years ago

mfe5003 commented 8 years ago

Upload to vmeMega board fails using: $ make upload_<target name> , but succeeds with normal r3 mega board. Workaround is to disable flash memory erase by adding -D option after the avrdude command. To get avrdude command run the next line and copy-paste: $ make upload_<target name> VERBOSE=1

output of $ make upload_<target name>:

[100%] Uploading /home/ebert/projects/ocs-base/build/mega2560/bin/amc7812_stream.hex to atmega2560 using wiring

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9801
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: stk500v2_command(): command failed

avrdude done.  Thank you.
mfe5003 commented 8 years ago

Temporary fix applied by adding -D to all avrdude calls. You can now upload to a VMEMega v1a with the standard procedure of: $ make upload_<target name>