Closed birkenfeld closed 6 years ago
Indeed! Thanks.
Aah, INSERT AFTER
is great. I really want to see this included somewhere, either here or in the cortex-m-rt
docs (or both!). My only reservation atm is the way they will be uninitialised - probably wants a little more exposition on the consequences. Hopefully sometime soon c-m-rt will support initialising multiple sections anyway.
I agree, and I saw that there is some related functionality in r0
but didn't investigate as I'm initializing the framebuffers anyway, using DMA.
I'm happy to merge this as-is and we can add information about cortex-m-rt support once it has it. This is the third time in a few weeks someone's asked about doing this and it would be great to have this to point them at.
I'll leave merging up to @thejpster if they're happy, though.
We're using a STM32F429 and wanted to move stuff around in memory, notably put stack+data into CPU coupled memory, and put framebuffers for the integrated LCD controller into the normal SRAM.
Getting this right while not completely overriding the default
link.x
was quite tricky (especially finding theINSERT AFTER
life-saver...) so I thought an example would not hurt here.It should probably also be mentioned in other places (book/...)?