Resets from unknown sources MCXN947

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

Resets from unknown sources MCXN947

155 Views
robert_hines
Contributor III

I have a device with an MCXN947.  It's running FreeRTOS.  Using LPTMR, it periodically goes into power-down mode, wakes up on the timer interrupt, maybe does a few things, then goes back into power-down mode.  Something like this:

        vTaskSuspendAll();      // FreeRTOS
        PM_EnterLowPower(); // LPTMR interrupt will wake us up
        xTaskResumeAll();       // FreeRTOS


There's really only one other task running when it wakes up and it does some I2C comms.

The problem is that the processor occasionally resets (can't reliably reproduce).  The CMC SRS register reads 0x00004010, a warm SW reset.  Code isn't calling reset anywhere, maybe NXP's assert() or FreeRTOS's configASSERT().

Are there other internal sources could be causing a SW reset?

Labels (1)
0 Kudos
Reply
4 Replies

129 Views
robert_hines
Contributor III

The SSRS register reads 0x00004430, so the RSTACK bit is set; could ERR051704 cause that?

0 Kudos
Reply

46 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @robert_hines 

Yes, it is very likely related.
Please first refer to ERR051704 and ERR051993 for verification.
 
Alice_Yang_0-1789719190798.pngAlice_Yang_0-1789719190798.png

 

Also, SSRS contains cumulative status information, so it should be analyzed together with the current SRS value.
 
Thank you.
 
BR
Alice
0 Kudos
Reply

40 Views
robert_hines
Contributor III

Changing the active voltage to midvoltage (and high drive strength) and the low-power voltage to overdrive (and low drive strength) while dropping in and out of power-down mode once a second, did increase the number of resets, all of the form:

SRS 0x00004010
SSRS 0x00004430

It would be nice if NXP could describe the downstream effects of the errata so I could be more confident this is the source of these spurious resets.

0 Kudos
Reply

142 Views
robert_hines
Contributor III
Would this errata (MCXN_1P02G) cause resets?

ERR051704 DCDC: Failure changing to Low drive-strength mode
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2414386%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EResets%20from%20unknown%20sources%20MCXN947%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2414386%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20a%20device%20with%20an%20MCXN947.%26nbsp%3B%20It's%20running%20FreeRTOS.%26nbsp%3B%20Using%20LPTMR%2C%20it%20periodically%20goes%20into%20power-down%20mode%2C%20wakes%20up%20on%20the%20timer%20interrupt%2C%20maybe%20does%20a%20few%20things%2C%20then%20goes%20back%20into%20power-down%20mode.%26nbsp%3B%20Something%20like%20this%3A%3C%2FP%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%3EvTaskSuspendAll%3C%2FSPAN%3E%3CSPAN%3E()%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F%2F%20FreeRTOS%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%3EPM_EnterLowPower%3C%2FSPAN%3E%3CSPAN%3E(%3C%2FSPAN%3E%3CSPAN%3E)%3B%20%2F%2F%20LPTMR%20interrupt%20will%20wake%20us%20up%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%3ExTaskResumeAll%3C%2FSPAN%3E%3CSPAN%3E()%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%2F%2F%20FreeRTOS%3C%2FSPAN%3E%3C%2FDIV%3E%3CP%3E%3CBR%20%2F%3EThere's%20really%20only%20one%20other%20task%20running%20when%20it%20wakes%20up%20and%20it%20does%20some%20I2C%20comms.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20problem%20is%20that%20the%20processor%20occasionally%20resets%20(can't%20reliably%20reproduce).%26nbsp%3B%20The%20CMC%20SRS%20register%20reads%200x00004010%2C%20a%20warm%20SW%20reset.%26nbsp%3B%20Code%20isn't%20calling%20reset%20anywhere%2C%20maybe%20NXP's%20assert()%20or%20FreeRTOS's%20configASSERT().%3CBR%20%2F%3E%3CBR%20%2F%3EAre%20there%20other%20internal%20sources%20could%20be%20causing%20a%20SW%20reset%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2414386%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EMCXN%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2414516%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Resets%20from%20unknown%20sources%20MCXN947%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2414516%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F260376%22%20target%3D%22_blank%22%3E%40robert_hines%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3EYes%2C%20it%20is%20very%20likely%20related.%3C%2FDIV%3E%0A%3CDIV%3EPlease%20first%20refer%20to%20ERR051704%20and%20ERR051993%20for%20verification.%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_0-1789719190798.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_0-1789719190798.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_0-1789719190798.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F396559i5CF081B5CC028F17%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_0-1789719190798.png%22%20alt%3D%22Alice_Yang_0-1789719190798.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAlice_Yang_0-1789719190798.png%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAlice_Yang_0-1789719190798.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAlice_Yang_0-1789719190798.png%3C%2FSPAN%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3C%2FDIV%3E%0A%3CDIV%3EAlso%2C%20SSRS%20contains%20cumulative%20status%20information%2C%20so%20it%20should%20be%20analyzed%20together%20with%20the%20current%20SRS%20value.%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EThank%20you.%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EBR%3C%2FDIV%3E%0A%3CDIV%3EAlice%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2414420%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Resets%20from%20unknown%20sources%20MCXN947%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2414420%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThe%20SSRS%20register%20reads%200x00004430%2C%20so%20the%20RSTACK%20bit%20is%20set%3B%20could%20ERR051704%20cause%20that%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2414393%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Resets%20from%20unknown%20sources%20MCXN947%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2414393%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EWould%20this%20errata%20(MCXN_1P02G)%20cause%20resets%3F%3CBR%20%2F%3E%3CBR%20%2F%3EERR051704%20DCDC%3A%20Failure%20changing%20to%20Low%20drive-strength%20mode%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2414640%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Resets%20from%20unknown%20sources%20MCXN947%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2414640%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EChanging%20the%20active%20voltage%20to%20midvoltage%20(and%20high%20drive%20strength)%20and%20the%20low-power%20voltage%20to%20overdrive%20(and%20low%20drive%20strength)%20while%20dropping%20in%20and%20out%20of%20power-down%20mode%20once%20a%20second%2C%20did%20increase%20the%20number%20of%20resets%2C%20all%20of%20the%20form%3A%3CBR%20%2F%3E%3CBR%20%2F%3ESRS%200x00004010%3CBR%20%2F%3ESSRS%200x00004430%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20would%20be%20nice%20if%20NXP%20could%20describe%20the%20downstream%20effects%20of%20the%20errata%20so%20I%20could%20be%20more%20confident%20this%20is%20the%20source%20of%20these%20spurious%20resets.%3C%2FP%3E%3C%2FLINGO-BODY%3E