I use the RTD package to erase write and read the internal flash.It is success on data flash but when I change the address to code flash write and read are all failed .
And I debug and found the Register MCR->PGM has been changed to 1 after erase .But I cannot find where it was changed.Please refer to attach file for my source code.
Solved! Go to Solution.
Sorry,forgot to tell you,this example is works on S32 RTD AUTOSAR 4,4 Version 0.9.0(old version).
you can download the old version, or I may need to take some time to port this example to the new version.
BR!
Jim,
Hi, I am having a similar problem. Are the SD32SD Extensions and Updates for these older versions available still? I am trying to use the S32 RTD AUTOSAR 4.4 Version 3.0.2 and it is not compiling as the "Standard Types.h" is not avialble.
I spent some time testing your code,but I did not find the problem/
I have a successful example, as you can see it works well.
I will send it to you privately,please check it.
BR!
Jim,
And I found our source code is different,your source code cannot compile OK on my S32DS3.4.
The error message are as below:
D:/S32DS_WORKSPACE/S32K344_FLS/generate/include/Dma_Ip_Cfg_Defines.h:29:10: fatal error: StandardTypes.h: No such file or directory
29 | #include "StandardTypes.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
In file included from D:/S32DS_WORKSPACE/S32K344_FLS/generate/include/CDD_Mcl_Cfg_Defines.h:34,
from ../RTD/include/Mcl_Types.h:54,
from D:/S32DS_WORKSPACE/S32K344_FLS/generate/include/CDD_Mcl_BOARD_InitPeripherals_PBcfg.h:63,
from D:/S32DS_WORKSPACE/S32K344_FLS/generate/include/CDD_Mcl_Cfg.h:42,
from ../generate/src/CDD_Mcl_Cfg.c:40:
D:/S32DS_WORKSPACE/S32K344_FLS/generate/include/Dma_Ip_Cfg_Defines.h:29:10: fatal error: StandardTypes.h: No such file or directory
29 | #include "StandardTypes.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [generate/src/subdir.mk:60: generate/src/C40_Ip_BOARD_InitPeripherals_PBcfg.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [src/subdir.mk:20: src/main.o] Error 1
make: *** [generate/src/subdir.mk:60: generate/src/CDD_Mcl_BOARD_InitPeripherals_PBcfg.o] Error 1
make: *** [generate/src/subdir.mk:60: generate/src/CDD_Mcl_Cfg.o] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.
Do I need to update S32DS?
And source code difference is as below:
Hi Jim
Thank you for your help.
Do you mean my code works well?
I use the JLink V9 to debug ,Is it because this device mismatch S32K344?
And I cannot open you mex file
There is an error message
This version tool cannot support processor Platform_SDK_S32K3_2021_03
Sorry,forgot to tell you,this example is works on S32 RTD AUTOSAR 4,4 Version 0.9.0(old version).
you can download the old version, or I may need to take some time to port this example to the new version.
BR!
Jim,
But there is no 0.9.0 version