Hi
About the MSPM0G3507 evaluation board,How do I specify the absolute address of a variable。be similar to STM32,Use this method,uint8_t savedData __attribute__((at(address)))
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi
About the MSPM0G3507 evaluation board,How do I specify the absolute address of a variable。be similar to STM32,Use this method,uint8_t savedData __attribute__((at(address)))
Hi lxy,
You can refer to the TI_CLANG complier user's guide: https://software-dl.ti.com/codegen/docs/tiarmclang/compiler_tools_user_guide/
Below is an example:
uint8_t gRxPacket[4] __attribute__((location(0x20200100)));
B.R.
Sal
Hi Sal Ye,
Thank you for your reply。but The development tool I use here is keil5,Using the example you provided will result in a police report,And when I compile the simulation, I find that the stored address is not the address I want。as follows:


Is there any other suitable method?Thanks。