2017-10-02 05:52 AM
When code is copied to RAM (for example the code for rewriting internal flash) how the RAM is allocated? Is it allocated statically or just uses any free space remaining below the stack? I cannot find this in the documentation.
Solved! Go to Solution.
2017-10-03 01:36 AM
Hello,
what compiler?
For the Cosmic compiler look for 'Moveable Code' in the user manual (page 286), there is an explanation and a short example.
Regards,
Luca
2017-10-02 07:03 AM
Unless there are specific execution requirements, RAM is allocated in normal fashion, off the stack, from the heap or statically.
Understand how the core executes code, address dependency, control transfer, etc.
2017-10-03 01:36 AM
Hello,
what compiler?
For the Cosmic compiler look for 'Moveable Code' in the user manual (page 286), there is an explanation and a short example.
Regards,
Luca
2017-10-04 08:53 PM
Thank you Luca