Hi Everyone,
I am working on the S32k144 evaluation board. When I am trying flash that board in Keil, It's showing "Cannot access memory (@0xe00ffff0, Read, Acc Size: 4 Bytes)". After powering up the board, debugger led(RED) is set before flashing the board. With S32K Design studio also, I am not able to flash.
Waiting for your response...
Thanks & Regards,
Ravi Ranjan.
Hello
You might have inadvertently secured the device.
If you are using Keil MDK 5.23 (the current version) - you need to add a patch that enables Mass Erase on the S32k. This will be present in the next release of MDK (5.24).
Get the file UL2CM3.ZIP here: www.keil.com/appnotes/docs/apnt_299.asp
Replace UL2CM3.DLL in C:\Keil_v5\ARM\BIN (to unlock the Flash on S32K)
While you are there - get CMSIS-DAP.zip and program this into your S32K board to use as the debug adapter.
This is all described in the appnote located at the above address.
When you attempt to program the Flash and if it is locked, uVision will ask you if you want to run the Mass Erase. Click Yes.
Bob Boys
Hi Bob,
I might inadvertently secured the S32K144 device. (Erase all, containing the 0x40c secturity bytes)
So I tried your above method, but the MDK could not execute "mass erase", it always errored as "Flash erase failed". I tried J-link and Mulitilink P&E debugger, but they all failed. Please see the infor as below, could you advise how to erase and unsecured S32K144 in this case? Thanks a lot!
Debug set as P&E, error infor:
Debug set as "JLINK", error infor:
Hi,
do you use external supply or USB cable only? Do you use in-built OpenSDA or do you use another debug probe connected to J14 header? What is the position of J107 jumper?
Which version of Design Studio do you use?
Regards,
Lukas