No Flash Configuration and CMake Modifications #421
Unanswered
daveythacher
asked this question in
Q&A
Replies: 1 comment 4 replies
-
The cmake question is easiest to answer: you can change what you like, but it won’t be used unless you manually, outside of Arduino, rebuild it with the makelibpjco.sh script. Not sure what you mean about heap overflow, did you mean stack overflow? The stacks are now on the private 4k scratchpad areas. GCC does have a stack smash checking option, but that’s just making sure a function doesn’t overwrite past the end of its frame, not that the stack is within some range. There isn’t a good way now to specify a different link script, but there’s no reason you couldn’t put in the work to make it possible as one of the IDE menus. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How hard would it be to add a few configurations without flash? (Arduino may not play nice with this.)
I took a look at it and found the linker script (lib/memmap_default.ld) which has been edited for filesystem and EEPROM. I was able to rename the default linker to use the no flash linker script. Arduino still reports certain things, which is annoying. However, I found in boards.txt a few settings which made it use correct sizes. However, Arduino appears to be mostly built for Harvard systems.
Would also be nice to be able to change the CMAKE settings. Default CMake settings are used? So, I do not need to worry about heap overflows as the guards are not used? (I can technically exceed the heap allocation settings used.) I am guessing the main CMake file is in /tools/libpico/CMakeLists? Meaning that if I edit that file that would be the same thing as compiling on the command line?
Beta Was this translation helpful? Give feedback.
All reactions