FLS write code flash fail

cancel
Showing results for 
Search instead for 
Did you mean: 

FLS write code flash fail

Jump to solution
527 Views
tianxing
Contributor III

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.

 

0 Kudos
1 Solution
472 Views
Senlent
NXP Employee
NXP Employee

Hi@tianxing

      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.

Senlent_0-1639634003379.png

BR!

     Jim,

View solution in original post

0 Kudos
5 Replies
84 Views
Marty_T
Contributor I

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.

0 Kudos
512 Views
Senlent
NXP Employee
NXP Employee

Hi@tianxing

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.

Senlent_0-1639560394452.png

BR!

     Jim,

0 Kudos
480 Views
tianxing
Contributor III

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:

tianxing_1-1639632808985.png

 

 

0 Kudos
490 Views
tianxing
Contributor III

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

tianxing_0-1639631813286.png

 

0 Kudos
473 Views
Senlent
NXP Employee
NXP Employee

Hi@tianxing

      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.

Senlent_0-1639634003379.png

BR!

     Jim,

0 Kudos