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.
What is the cause? Am I missing some flash unlocking mechanism?
Solved! Go to Solution.
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.
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.
Yes, this sector is reserved for HSE firmware related use.
take a look at this post which explained more in detail.
https://community.nxp.com/t5/S32K/S32K3XX-HSE-Firmware/td-p/1787202
Reading done via DAP ARM through third party tool also gives false results.