In automotive ECU development,we use CCP/XCP to calibrate Engine parameter.
In order to achieve calibration online,we need remap Flash address to Ram.
In S12XEP100-We can use RELOCATE_TO in CodeWarrior to achieve this ;
In MPC57xx- We can use Overlay Ram to achieve this;
In e200 series-- We can use MMU to achieve this;
So how to achieve this in S32K144(ARM Cotex M4F)?
You can refer to AN11983- Using the S32K1xx EEPROM Functionality. You can access EEPROM with ram address directly.
Anyone who knows?
Hello,
If you want to place the function into RAM you can use, for example:
__attribute__ ((section(".code_ram"))) // place the code below into .code_ram section
void MyFunc(void);
I hope it helps.
Best Regards,
Diana
Thanks.
I use the Keil MDK IDE. By edit the ".sct" file ,it seems solve my problem. But int the ".map" file,it just display the Exec Addr of one particular constant,did not display the Load Addr.The test project as below.
In the .sct file,I add one section "const_section":
I define the constants and variables as below.
The code in the for loop as below.
In the .map file.
In the debug interface.
I edit aaa[0] to 0x11, and it works.
Now there's one problem-in the .map file I can not find the address of aaa or bbb in flash(just the address in ram).So is there a way to solve it ,or I need to calculate the flash address of aaa and bbb by myself?
Thanks.
hello, how about this problem later?