Eclipse CDT Arduino Uno WIFI Rev 2 make/link issues [message #1802173] |
Sat, 02 February 2019 14:25  |
Eclipse User |
|
|
|
I have installed successfully Eclipse and platform for my Arduino UNO WIFI Rev 2. The blink example builds fine and downloads to my board. However, it does not blink.
I created a directory with the makefile that was created by eclipse and the blink.cpp file, and modified it to work from the command line (Windows 10). Same issue (no blinky).
After reviewing the Arduino IDE build and dissassembly of elf files, I discovered that the link was different. The linker line explicitly listed as input, in this order, blink.c.o, variant.c.o, core.a. So, I modified my makefile and now SUCCESS. It blinks.
Question 1
I have looked for some way to tell eclipse that I want to modify the makefile, that it created, but can not find it. How do I do this ??
Question 2
Got any information about the automatic makefile creation rules so that it can be changed to address this link order issue?
Question 3
Anyone know why the link order matters? I suspect it has something to do with the bootloader, but have not gone there yet...
Thanks
Attachment: Makefile
(Size: 12.62KB, Downloaded 111 times)
|
|
|
Re: Eclipse CDT Arduino Uno WIFI Rev 2 make/link issues [message #1815768 is a reply to message #1802173] |
Thu, 10 October 2019 05:12  |
Eclipse User |
|
|
|
Hi there,
I have the same problem with the latest version of eclipse and Arduino Wifi rev2, I see that the code is compiling and upload on the board, but nothing happens.
As a question, the file is marked as derived so basically I can modify it but at build time it will be rewritten. How did you manage to make the changes in the makefile?
Thank you,
Lia
|
|
|
Powered by
FUDForum. Page generated in 0.05533 seconds