How to execute all the functions in a.c file in S32K344 RAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to execute all the functions in a.c file in S32K344 RAM

316 Views
652856839
Contributor I

I created a UART example project, and I want to run the algorithm related.c file in RAM to reduce the running time.  But I don't know how to operate it. Could you help me?  I use S32 Design Studio for S32 Platform 3.4

0 Kudos
1 Reply

303 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @652856839,

It depends on the linker file used.

If you use the default linker file in the S32DS 3.4 IDE, declare the functions with the following attribute:

__attribute__((section(".ramcode"))) void your_function_in_sram(void);

 

Regards,

Daniel

0 Kudos