Relocating specific function in RAM Location

Showing results for 
Search instead for 
Did you mean: 

Relocating specific function in RAM Location

Contributor II


I am using MKE04Z128VLH4 controller in one of my project. I am using this controller for parallel communication with other controller using GPIO lines. But the timming whihc is comming is not as exepected. Then ii put the complete application in SRAM in MCUXpresso and checked for the performance.

I found the improvement by putting the code in SRAM and using FGPIO. But since the code sie is small it was possible. But not only the critical function is required to put in SRAM. I want to put that specific function in SRAM location

I am not able create the section so that I can locate that function in the SRAM location.

Please let me know how to relocate the function in SRAM in MCUXpresso. I am using MCU Xpresso V10.3.1_2233.

Since the space in RAM is only 16 KB so I want to put the specific function on the RAM location.

Also let me know whether using this approach will there be ant improvement in the timming and function execution?


Gaurav More

Tags (2)
0 Kudos
1 Reply

NXP TechSupport
NXP TechSupport

Dear Gaurav,

Check the following post:

Relocating Code and Data Using the MCUXpresso IDE 

For this MCU, I will suggest to check how the drivers are constructed and use baremetal code as much as possible. 

Best Regards,

Alexis Andalon

0 Kudos