-
Notifications
You must be signed in to change notification settings - Fork 36
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
Cusomizing Stacksize and Heapsize #19
Comments
I agree that this would be very nice, and have previously been thinking about how this could be done. I've wanted something that gives STACK_SIZE as makefile variables, but hadn't quite spent the time to find out how to do it. Your Edit: I just had to get back here, since I just found the devzone-post that I had opened in a background tab, and that was really excellent work! I'll try to see if I can get this working some day (hopefully) soon! |
|
As also described here, there might currently no appropriate way to project specific customize stacksize and heapsize.
Ok, I cound just copy the
startup_nrf51.s
to each project and edit the values there; but I don't like to do it in this way.I'd rather want to have the possibility to specify that values as a optional variable (for each stack and heap) in my project's makefile.
I see 2 approaches to solve that:
startup_nrf51.s
changing#ifdef
etc. to.ifdef
and provide something like aAFLAGS
makefile variable. Or one step more comfortable, provindingSTACK_SIZE
andHEAP_SIZE
as makefile variables and apply the required--defsym __STACK_SIZE=…
whenarm-none-eabi-as
is called forstartup_nrf51.s
.arm-none-eabi-gcc -x assembler-with-cpp
.I tend to favor the 1st approach (
#ifdef
etc. to.ifdef
).What did you think about that?
The text was updated successfully, but these errors were encountered: