2024-03-18 10:22 PM - last edited on 2024-03-25 02:53 AM by Amel NASRI
The following are the steps i am following to access ram2 (my Microcontroller documents - https://www.st.com/en/microcontrollers-microprocessors/stm32wle5cc.html)
See the linker script ,how they have defined ram2 in my linker script they have defines as .RAM2_region .
Now will go the code then find the function which i have to shift to ram2 will add before or after the function - __attribute__((section(".RAM2_region"))) .
I am able to see the movement of the function from ram1 to ram2 but when i flash the code into my device its not working i mean the that particular function is not working .
Can anyone let me know what mistake i am doing to access ram2 , if you can provide with example code it would be really helpful .
Thank you
2024-06-18 07:52 AM - edited 2024-06-18 08:59 AM
Hello @shreyas
Can you provide more details about:
- Application complete mapfile
- Some error logs
- Registers dump when the issue occurs, and possibly call-stack ?
- why you want to move your function from FLASH to RAM?
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.