Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
STM32L4xx: IAR memory maps updated #10303
Fully utilize target RAM when using IAR. Tested with mbed-os-example-cellular (MTB_ADV_WISE_1570 - L486, MTB_STM_L475).
CSTACK is placed in 32kB RAM. Then the symbols start filling from there and continue to 96kB RAM. Heap placement is left to linker (placed last in my tests) and will grow to take up the rest of the space available.
The change can be even simpler if we don't care where CSTACK ends up. Without specifically allocating it in my tests it goes before the heap.
Pull request type
jeromecoutant left a comment
My issue is still the same...
And maybe this PR is not compatible with all the works that @deepikabhavnani is doing n other PR ?
@jeromecoutant I tried @deepikabhavnani PR for this target and the allocation made by that change is such that the 32kB RAM is left unused (this happens due to forced ordering of regions). The changes I present here have been adapted from her work and utilize all of the RAM which I believe was her intention as well. Let's wait for @deepikabhavnani to comment.
If the only thing blocking is the need to support those two targets you mention, I can add those as well.
referenced this pull request
Apr 16, 2019
@jeromecoutant please take a look. I added those two targets you requested. I was not able to run the code on L476 as I don't have that. For all three the map file looked good and RAM was utilized as expected. Also, it was OK for @deepikabhavnani to proceed with this PR.
A sample of the map file: