You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
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?
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:
You shouldn't set flags manually like that.
It seems you're migrating code from the old arduino-cmake project, where manually setting flags were an ordinary behavior, but here it's a bit different. Please read this wiki page regarding build flags in this framework.
Your 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.
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
The text was updated successfully, but these errors were encountered: