Stuck in Reset

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

Stuck in Reset

Jump to solution
2,660 Views
Satyajit_Patil
Contributor II

I have been working with S32M24x EVB and the controller is stuck in reset. I am using on board debugger.
I could see the reset led is high always and I am unable to flash anything in the controller. 

I am using design studio and I have tried by enabling "attach to running target", the on board debugger is able to attack but could not halt or reset, after some time the attachment also seem to be breaking.

I tried by directly using the "arm-none-eabi-gdb.exe" and it says the device is secured and soft reset failed.

I have also checked the hw and no component is damaged.

The flash config words in the running program are - 

.section .flash_config, "a"
.long 0xFFFFFFFF ; 8 bytes backdoor comparison key
.long 0xFFFFFFFF ;
.long 0xFFFFFFFF ; 4 bytes program flash protection bytes
.long 0xFFFF7FFE ; FDPROT:FEPROT:FOPT:FSEC(0xFE = unsecured)

 and the flash section is - 

MEMORY
{
int_flash_config : ORIGIN = 0x00000400, LENGTH = 0x00000010 
}
SECTIONS
{
.flash_config                                ALIGN(4)      : > int_flash_config
}


What would be the possible cause of this situation and ways to get the controller properly working again?

 

Thanks in advance!!!

Tags (1)
0 Kudos
Reply
1 Solution
717 Views
Satyajit_Patil
Contributor II

The issue occurred because flash config words were cleared in startup.

View solution in original post

0 Kudos
Reply
2 Replies
718 Views
Satyajit_Patil
Contributor II

The issue occurred because flash config words were cleared in startup.

0 Kudos
Reply
2,618 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Satyajit_Patil 

Could you please check the reset signal using an oscilloscope? Measure the reset pin directly and share an image of the waveform you observe. We expect to see a signal similar to the one attached, with the reset line toggling as shown.

VaneB_0-1751479151415.png

Additionally, could you try a process that has worked for me and other customers experiencing similar behavior? To re-flash your MCU, keep the reset button pressed while trying to flash it with a blink example. It might fail and ask if you want to retry. When that happens, release the reset button and then try again to load the program under that prompt. After doing this, the program should load successfully and the board should recover.

If the issue persists after trying the steps above, please let me know.

 

BR, VaneB

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2126116%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EStuck%20in%20Reset%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2126116%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20been%20working%20with%20S32M24x%20EVB%20and%20the%20controller%20is%20stuck%20in%20reset.%20I%20am%20using%20on%20board%20debugger.%3CBR%20%2F%3EI%20could%20see%20the%20reset%20led%20is%20high%20always%20and%20I%20am%20unable%20to%20flash%20anything%20in%20the%20controller.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20using%20design%20studio%20and%20I%20have%20tried%20by%20enabling%20%22attach%20to%20running%20target%22%2C%20the%20on%20board%20debugger%20is%20able%20to%20attack%20but%20could%20not%20halt%20or%20reset%2C%20after%20some%20time%20the%20attachment%20also%20seem%20to%20be%20breaking.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20tried%20by%20directly%20using%20the%20%22arm-none-eabi-gdb.exe%22%20and%20it%20says%20the%20device%20is%20secured%20and%20soft%20reset%20failed.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20also%20checked%20the%20hw%20and%20no%20component%20is%20damaged.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20flash%20config%20words%20in%20the%20running%20program%20are%20-%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3E.section%20.flash_config%2C%20%22a%22%0A.long%200xFFFFFFFF%20%3B%208%20bytes%20backdoor%20comparison%20key%0A.long%200xFFFFFFFF%20%3B%0A.long%200xFFFFFFFF%20%3B%204%20bytes%20program%20flash%20protection%20bytes%0A.long%200xFFFF7FFE%20%3B%20FDPROT%3AFEPROT%3AFOPT%3AFSEC(0xFE%20%3D%20unsecured)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3Band%20the%20flash%20section%20is%20-%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3EMEMORY%0A%7B%0Aint_flash_config%20%3A%20ORIGIN%20%3D%200x00000400%2C%20LENGTH%20%3D%200x00000010%20%0A%7D%0ASECTIONS%0A%7B%0A.flash_config%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ALIGN(4)%20%20%20%20%20%20%3A%20%26gt%3B%20int_flash_config%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3EWhat%20would%20be%20the%20possible%20cause%20of%20this%20situation%20and%20ways%20to%20get%20the%20controller%20properly%20working%20again%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks%20in%20advance!!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2291698%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Stuck%20in%20Reset%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2291698%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThe%20issue%20occurred%20because%20flash%20config%20words%20were%20cleared%20in%20startup.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2127454%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Stuck%20in%20Reset%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2127454%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%2F251693%22%20target%3D%22_blank%22%3E%40Satyajit_Patil%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20check%20the%20reset%20signal%20using%20an%20oscilloscope%3F%20Measure%20the%20reset%20pin%20directly%20and%20share%20an%20image%20of%20the%20waveform%20you%20observe.%20We%20expect%20to%20see%20a%20signal%20similar%20to%20the%20one%20attached%2C%20with%20the%20reset%20line%20toggling%20as%20shown.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22VaneB_0-1751479151415.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22VaneB_0-1751479151415.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F345803i56B96BDA6D473878%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22VaneB_0-1751479151415.png%22%20alt%3D%22VaneB_0-1751479151415.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAdditionally%2C%20could%20you%20try%20a%20process%20that%20has%20worked%20for%20me%20and%20other%20customers%20experiencing%20similar%20behavior%3F%20To%20re-flash%20your%20MCU%2C%26nbsp%3Bkeep%20the%20reset%20button%20pressed%20while%20trying%20to%20flash%20it%20with%20a%20blink%20example.%20It%20might%20fail%20and%20ask%20if%20you%20want%20to%20retry.%20When%20that%20happens%2C%20release%20the%20reset%20button%20and%20then%20try%20again%20to%20load%20the%20program%20under%20that%20prompt.%20After%20doing%20this%2C%20the%20program%20should%20load%20successfully%20and%20the%20board%20should%20recover.%3C%2FP%3E%0A%3CP%3EIf%20the%20issue%20persists%20after%20trying%20the%20steps%20above%2C%20please%20let%20me%20know.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20VaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E