S32k328 flashing

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

S32k328 flashing

602 Views
leo_Z
Contributor III

HI everyone,

we have one hardware, and there is already one image is present, and we are trying to flash the base image(empty image with for loop) which is created by Design studio.

we can't use design studio to flash, we have one flashing script which is verified, after we flash the very basic image , we can't flash again the any image even the older image, we are getting some error on gdb , could any explain me what is happing here, and to solve this

Error: Failed to read memory at 0xe000ed00
Examination failed, GDB will be halted. Polling again in 700ms
Warn : VECTRESET is not supported on your Cortex-M core!
requesting target halt and executing a soft reset
Info : SWD DPIDR 0x6ba02477
target halted due to breakpoint, current mode: Thread
xPSR: 0x01000000 pc: 0x00402420 msp: 0x20010000
Polling target s32k3xx.armv7m.cm7_0 failed, trying to reexamine
Info : s32k3xx.armv7m.cm7_0: hardware has 8 breakpoints, 4 watchpoints
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x00402624 msp: 0x20010000
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0x01000003 pc: 0x004026a6 msp: 0x2000ffe0
Error: s32k3xx.armv7m.cm7_0 -- clearing lockup after double fault
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0x01000003 pc: 0x204084e4 msp: 0x2000ffe0Polling target s32k3xx.armv7m.cm7_0 failed, trying to reexamine
Info : s32k3xx.armv7m.cm7_0: hardware has 8 breakpoints, 4 watchpoints
shutdown command invoked
 

0 Kudos
Reply
1 Reply

562 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @leo_Z,

From the short log I see the debugger reports that the application core detected a fault exception.

Do you have any other debuggers?

Have you tried both SWD and JTAG protocols?

Can you just attach the debugger to the MCU without programming it?

Can you debug the code right from the reset handler?

 

Try keeing the MCU in reset as described here:

https://community.nxp.com/t5/S32-SDK/failed-to-power-up-dap-after-program-s32k312-with-pll0-equal/td...

 

Regards,

Daniel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2162177%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32k328%20flashing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2162177%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHI%20everyone%2C%3C%2FP%3E%3CP%3Ewe%20have%20one%20hardware%2C%20and%20there%20is%20already%20one%20image%20is%20present%2C%20and%20we%20are%20trying%20to%20flash%20the%20base%20image(empty%20image%20with%20for%20loop)%20which%20is%20created%20by%20Design%20studio.%3C%2FP%3E%3CP%3Ewe%20can't%20use%20design%20studio%20to%20flash%2C%20we%20have%20one%20flashing%20script%20which%20is%20verified%2C%20after%20we%20flash%20the%20very%20basic%20image%20%2C%20we%20can't%20flash%20again%20the%20any%20image%20even%20the%20older%20image%2C%20we%20are%20getting%20some%20error%20on%20gdb%20%2C%20could%20any%20explain%20me%20what%20is%20happing%20here%2C%20and%20to%20solve%20this%3C%2FP%3E%3CP%3EError%3A%20Failed%20to%20read%20memory%20at%200xe000ed00%3CBR%20%2F%3EExamination%20failed%2C%20GDB%20will%20be%20halted.%20Polling%20again%20in%20700ms%3CBR%20%2F%3EWarn%20%3A%20VECTRESET%20is%20not%20supported%20on%20your%20Cortex-M%20core!%3CBR%20%2F%3Erequesting%20target%20halt%20and%20executing%20a%20soft%20reset%3CBR%20%2F%3EInfo%20%3A%20SWD%20DPIDR%200x6ba02477%3CBR%20%2F%3Etarget%20halted%20due%20to%20breakpoint%2C%20current%20mode%3A%20Thread%3CBR%20%2F%3ExPSR%3A%200x01000000%20pc%3A%200x00402420%20msp%3A%200x20010000%3CBR%20%2F%3EPolling%20target%20s32k3xx.armv7m.cm7_0%20failed%2C%20trying%20to%20reexamine%3CBR%20%2F%3EInfo%20%3A%20s32k3xx.armv7m.cm7_0%3A%20hardware%20has%208%20breakpoints%2C%204%20watchpoints%3CBR%20%2F%3Etarget%20halted%20due%20to%20debug-request%2C%20current%20mode%3A%20Thread%3CBR%20%2F%3ExPSR%3A%200x61000000%20pc%3A%200x00402624%20msp%3A%200x20010000%3CBR%20%2F%3Etarget%20halted%20due%20to%20debug-request%2C%20current%20mode%3A%20Handler%20HardFault%3CBR%20%2F%3ExPSR%3A%200x01000003%20pc%3A%200x004026a6%20msp%3A%200x2000ffe0%3CBR%20%2F%3EError%3A%20s32k3xx.armv7m.cm7_0%20--%20clearing%20lockup%20after%20double%20fault%3CBR%20%2F%3Etarget%20halted%20due%20to%20debug-request%2C%20current%20mode%3A%20Handler%20HardFault%3CBR%20%2F%3ExPSR%3A%200x01000003%20pc%3A%200x204084e4%20msp%3A%200x2000ffe0Polling%20target%20s32k3xx.armv7m.cm7_0%20failed%2C%20trying%20to%20reexamine%3CBR%20%2F%3EInfo%20%3A%20s32k3xx.armv7m.cm7_0%3A%20hardware%20has%208%20breakpoints%2C%204%20watchpoints%3CBR%20%2F%3Eshutdown%20command%20invoked%3CBR%20%2F%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2162849%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32k328%20flashing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2162849%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252204%22%20target%3D%22_blank%22%3E%40AntoZ%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EFrom%20the%20short%20log%20I%20see%20the%20debugger%20reports%20that%20the%20application%20core%20detected%20a%20fault%20exception.%3C%2FP%3E%0A%3CP%3EDo%20you%20have%20any%20other%20debuggers%3F%3C%2FP%3E%0A%3CP%3EHave%20you%20tried%20both%20SWD%20and%20JTAG%20protocols%3F%3C%2FP%3E%0A%3CP%3ECan%20you%20just%20attach%20the%20debugger%20to%20the%20MCU%20without%20programming%20it%3F%3C%2FP%3E%0A%3CP%3ECan%20you%20debug%20the%20code%20right%20from%20the%20reset%20handler%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ETry%20keeing%20the%20MCU%20in%20reset%20as%20described%20here%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32-SDK%2Ffailed-to-power-up-dap-after-program-s32k312-with-pll0-equal%2Ftd-p%2F1609010%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32-SDK%2Ffailed-to-power-up-dap-after-program-s32k312-with-pll0-equal%2Ftd-p%2F1609010%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E