Open tistructor opened 1 year ago
That might be a bug with https://github.com/earlephilhower/arduino-pico (which we don't officially support), rather than a bug with picotool?
Ah! A quick search finds https://github.com/earlephilhower/arduino-pico/issues/1003
Thanks, I searched the internet and on your github for mid afternoon but didn't check on the core website. I only managed to find the example of the c code to be able to use it.
I'm sorry this picotool function is interesting.
We hope that in the future the arduino core will be modified to support this functionality.
Ciao
I use the core: "https://github.com/earlephilhower/arduino-pico" I followed the guide contained in the file: "getting-started-with-pico.pdf" And the compilation takes place without errors. Using picotool the information I entered is not visible, however. I believe the compiler eliminates the two functions. I looked at the file: "ctags_target_for_gcc_minus_e.cpp" which is generated at the end of the compilation and the two functions are not there.
This is the file :
I also put the functions in setup () but the functions are eliminated.
I have not understood what needs to be done to set up the compiler or linker to prevent functions from being eliminated.
I tried to remove from "platform.txt" --gc-sections from the parameters passed to the linker
but in this way the compilation ends with errors.