2025-01-30 05:36 AM - last edited on 2025-01-30 06:01 AM by Andrew Neil
Hi All.
I need help please ,I have a structure that contains 6 uint16_t varaibles the request from the team is that we place this structure at a specific memeory address (STM32F103C8) .
As said before I am new to ARM controllers and any help indicators or small code snippert is highly apprecated
Regards
Pje
Solved! Go to Solution.
2025-01-30 05:49 AM
It will depend on what tools you're using - you didn't say.
It's the Linker's job to do memory allocation, so it will involve configuring the linker ...
For GCC, you create a Section in the Linker script, and use Compiler attributes to put the item into that section:
https://stackoverflow.com/a/54128613
2025-01-30 05:49 AM
It will depend on what tools you're using - you didn't say.
It's the Linker's job to do memory allocation, so it will involve configuring the linker ...
For GCC, you create a Section in the Linker script, and use Compiler attributes to put the item into that section:
https://stackoverflow.com/a/54128613
2025-01-30 01:21 PM
Dear Andrew ,
Thank you so much for your help I am using Keil with STM so I guess it is GCC compiler .
I really appreciate your help thanks again I will have a go at it as indicated by your link
Regards
Pje