[S32K312] Reading last sectors of the Program Flash region

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

[S32K312] Reading last sectors of the Program Flash region

Jump to solution
775 Views
Mateusz_K
Contributor I

I am using S32K312 MCU. I want to program/erase/read last sectors of the program flash region, but I am unable. Programming and erasing first sectors of program flash region (up to last six 8KB sectors) works fine. The problem does not appear in data flash region. I used RTD AUTOSAR 4.4 2.0.0 drivers, as well as the newset manual (Rev. 8, 01/2024). 

I have also tested few other MCUs from this family, this appears on every one of them.

 

Maybe this is not the place to write about it, but J-Flash also does not support last 48KB of the program flash region. 

Mateusz_K_0-1711541119566.png

 

What is the cause? Am I missing some flash unlocking mechanism? 

 

 

 

0 Kudos
Reply
1 Solution
735 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Mateusz_K

    For S32K3 series, two blocks of 1MB for program code.Inside blocks of 1 MB we have some regions that are protected by HSE core and are not accessible by the application core.

View solution in original post

0 Kudos
Reply
6 Replies
736 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Mateusz_K

    For S32K3 series, two blocks of 1MB for program code.Inside blocks of 1 MB we have some regions that are protected by HSE core and are not accessible by the application core.

0 Kudos
Reply
729 Views
Mateusz_K
Contributor I
Thank you for swift reply,

So I understand that this sectors contain firmware which is developed by NXP, and cannot be modified by user?
0 Kudos
Reply
726 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Mateusz_K

Yes, this sector is reserved for HSE firmware related use.

0 Kudos
Reply
724 Views
Mateusz_K
Contributor I
Thank you again,

Is the number of sectors / memory size devoted to HSE firmware constant among the S32K3 series?
0 Kudos
Reply
714 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Mateusz_K

take a look at this post which explained more in detail.

https://community.nxp.com/t5/S32K/S32K3XX-HSE-Firmware/td-p/1787202

0 Kudos
Reply
758 Views
Mateusz_K
Contributor I

Reading done via DAP ARM through third party tool also gives false results. 

0 Kudos
Reply