Open ghost opened 5 years ago
Umm I don't know why do you get this error, honestly - Have nothing to say about avrdude as I'm not really familiar with it (nor with the Arduino ecosystem... ironic right?) However, what I can tell from your attached CMakeLists.txt file is that you're doing some things wrong:
ARDUINO_SDK_PATH
shouldn't be set locally in the cmake file, rather at the command-line or configured as an environment variable. You can read about it more here.At last - Please state your configuration details as requested here.
After doing this we could investigate the issue further.
"Your ARDUINO_SDK_PATH shouldn't be set locally in the cmake file,"
Why is this? Doesn't sound right at all. You can set an ENV anywhere including on the cmake line. As a newbie to this (arduino cmake) and completely incapable of getting it working (upload_arduino_target not defined) I need educating. Thank!
@rileyrg Hi, I'm afraid you're referring to a completely different issue which is not related to this one. I believe that #77 is the place to talk about it.
In my case I had a problem with avrdude installed from system repository (Ubuntu 18.04), as it was unable to parse configuration included in Arduino SDK:
avrdude: error at /home/user/Apps/arduino-1.8.9/hardware/tools/avr/etc/avrdude.conf:1133: programmer type jtagice3_updi not found
To fix this, I set cmake to use avrdude included in SDK and it uploaded successfully.
set(ARDUINO_CMAKE_AVRDUDE_PROGRAM $ENV{ARDUINO_SDK_PATH}/hardware/tools/avr/bin/avrdude)
@ghost - your's avrdude is older than version provided with sdk (6.1 vs 6.3-20171130) - I suspect that this causes that syntax error.
Hello out there,
I am trying to upload my hex file via SPI - having the latest avrdude version and latest Arduino SDK version - sure this looks more like an avrdude problem ... But is there a way to specify an own configuration file for avrdude?
This works like a charme for me - how could I do this as upload target?
avrdude -c linuxspi -p m328p -P /dev/spidev1.0 -v -U flash:w:controller-arduino.hex
I am getting