S32K Locked by MPU with IAR

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

S32K Locked by MPU with IAR

Jump to solution
3,406 Views
antoine_monmarc
Contributor V

Hello,

I'm having an issue with a S32K148-EVB board which was lock by debugger.

It was working fine last week.

Here is the debug log from IAR:

Mon May 04, 2020 15:46:50: IAR Embedded Workbench 8.40.1 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.40\arm\bin\armproc.dll)
Mon May 04, 2020 15:46:50: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.40\arm\config\debugger\NXP\S32K148_trace.dmac
Mon May 04, 2020 15:46:50: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.40\arm\config\flashloader\NXP\FlashS32Kxxx.mac
Mon May 04, 2020 15:46:50: Logging to file: C:\USER\**************\build\iar\cspycomm.log
Mon May 04, 2020 15:46:53: OpenSDA detected - Flash Version 1.21
Mon May 04, 2020 15:46:54: Device is NXP_S32K1xx_S32K148F2M0M11.
Mon May 04, 2020 15:46:54: Mode is In-Circuit Debug.
Mon May 04, 2020 15:46:54: CPU reset by debugger.
Mon May 04, 2020 15:46:54:
Mon May 04, 2020 15:46:54: Hardware reset with strategy 1 was performed
Mon May 04, 2020 15:46:54: Initial reset was performed
Mon May 04, 2020 15:46:54: ----- Prepare hardware for Flashloader -----
Mon May 04, 2020 15:46:54: 1528 bytes downloaded (15.87 Kbytes/sec)
Mon May 04, 2020 15:46:54: Loaded debugee: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.40\arm\config\flashloader\NXP\FlashS32K148RAM60K.out
Mon May 04, 2020 15:46:54: Target reset
Mon May 04, 2020 15:46:54: BusFault: A bus fault has occurred on exception entry.
Mon May 04, 2020 15:46:54: MemManage: The processor attempted an instruction fetch from a location that does not permit execution.
Mon May 04, 2020 15:46:54: HardFault: A fault has been escalated to a hard fault.
Mon May 04, 2020 15:46:54: HardFault exception.
Mon May 04, 2020 15:46:54: The processor has escalated a configurable-priority exception to HardFault.
Mon May 04, 2020 15:46:54: An MPU or Execute Never (XN) default memory map access violation has occurred on an instruction fetch (CFSR.IACCVIOL, MMFAR).
Mon May 04, 2020 15:46:54: A derived bus fault has occurred on exception entry (CFSR.STKERR, BFAR).
Mon May 04, 2020 15:46:54:
Mon May 04, 2020 15:46:54: Exception occured at PC = 0x0, LR = 0x0
Mon May 04, 2020 15:46:54:
Mon May 04, 2020 15:46:54: See the call stack for more information.
Mon May 04, 2020 15:46:54: ----- Flush Caches -----
Mon May 04, 2020 15:46:54: Unloaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.40\arm\config\flashloader\NXP\FlashS32Kxxx.mac
Mon May 04, 2020 15:46:54: Execution failure in flash loader.
Mon May 04, 2020 15:46:57: IAR Embedded Workbench 8.40.1 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.40\arm\bin\armproc.dll)

I tried to erase all by going to project->download->erase all:

pastedImage_3.png

but it also fails for same reason as above:

pastedImage_4.png

0 Kudos
1 Solution
3,333 Views
antoine_monmarc
Contributor V

Hello,

To get out of this situation I had to replace the PE Micro SW in the debugger by an OpenSDA from JLINK and use the JLINK debugger with IAR.

View solution in original post

0 Kudos
1 Reply
3,334 Views
antoine_monmarc
Contributor V

Hello,

To get out of this situation I had to replace the PE Micro SW in the debugger by an OpenSDA from JLINK and use the JLINK debugger with IAR.

0 Kudos