-
Notifications
You must be signed in to change notification settings - Fork 132
Failed to program MegaCoreX Atmega4809 (due to not implemented build hooks) #1551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I guess you want to upload over USB without a programmer. |
I have a UPDI Programmer. The MCU is stand alone. From Arduino IDE it is working well. I managed to activate the protocol jtag2updi in Sloeber somehow, but I'm not able to remove the parameter "-D" from the command string. At all, Sloeber is obviously ignoring the parameter set under preferences. |
Hi, avrdude looks better now: avrdude: reading input file "E:\HomeControl\SW\Sloeber_workspace2\test\Release/test.with_bootloader.hex" |
I can confirm that this board has this behaviour.
|
I see the output is compliant with what I find in the platform.txt file As you can see it states Looking deeper I found that this board uses hooks Sloeber does not yet support
I'm closing this as a duplicate of #927 As a workaround I tried to create a target to do the extra commands before the upload but that seems to fail on my system. When you double click the myUploadTarget and you should get
|
Note that your workaround won't work as you use the upload parameters not the program parameters. Also note that you can create any target you want and provide it any instruction you want. So that is an easy way to hardcode commands. |
Hi, I will try it out tommorow. |
My environment:
Sloeber version number 4.4.1 (product)
OS: Windows 10
Json for platform: https://mcudude.github.io/MegaCoreX/package_MCUdude_MegaCoreX_index.json
The following project preferences are set:
Hereby the following avrdude commandline results :
avrdude.conf -patmega4809 -cstk500v1 -PCOM7 -b115200 -D -Uflash:w:E:\HomeControl\SW\Sloeber_workspace2\test\Release/test.hex:i
As you can see, the preferences are ignored for creating the avrdude command string:
Especially the parameter “-D” prevents the erase of eeprom and let upload fail
Thanks for helping
BR
Stefan
The text was updated successfully, but these errors were encountered: