cancel
Showing results for 
Search instead for 
Did you mean: 

How to place a variable at a given absolute address in memory with STM32CubeIDE

Tony1
Associate II

Hello everyone,

I just migrate from Keil. I can use __attribute__((at(0x6000000))) directive place a variable at a given absolute address ,but how to do this in STM32CubeIDE?

Thanks.

10 REPLIES 10

Your use case seems different to that of the OP, where the use of AT directives in code or linker script were not portable.

Not clear at all what you're trying to achieve.

Perhaps you should change the RAM base that the linker starts using in the Linker Script (.LD) to carve out whatever space it is you want to use, and have the startup.s code leave alone.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..