MCXN547VNLT power on reset problem

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

MCXN547VNLT power on reset problem

Jump to solution
1,824 Views
plac
Contributor I

I am debugging a proprietary board based on MCXN547VNLT.

During the MCU power-up sequence, I do not see the “kCMC_PORReset” flag in the SRS register.
So I inspected the MCU reset signal and saw two resets on the pin (see attached oscillogram: blue signal is the pin Reset and yellow signal is the VCC).

Has anyone else seen and resolved a similar issue?
This issue prevents me from detecting the first power-up of the MCU in my application.

Labels (2)
0 Kudos
Reply
1 Solution
1,642 Views
Habib_MS
NXP Employee
NXP Employee

Hello @plac,
The CMPA is designed to control certain boot behaviors, and misconfiguration can lead to unexpected resets during the boot flow. It’s possible that the issue you observed was related to an error in the boot sequence that caused the MCU to reset differently.

To prevent this from happening, you can overwrite the CMPA with your own configurations (which, as I understand, you already did). You can find more detailed information in Chapter 8.5: Customer Manufacturing/Factory Programmable Area (CMPA) of the Security Reference Manual.
BR
Habib

View solution in original post

0 Kudos
Reply
6 Replies
1,790 Views
Habib_MS
NXP Employee
NXP Employee

Hello @plac,
In order to try a pinpoint if the issue is related to hardware, could you please confirm that your design follows the required sequence mentioned in the chapter 2.5 in the datasheet ? 

please verify if the 100 nF capacitor mentioned in the “HMI Interfaces” section of the UG10092: MCXNx4x Hardware Design Guide | NXP Semiconductors is properly included.


BR
Habib

0 Kudos
Reply
1,758 Views
plac
Contributor I

Thank you for your help.

In our design, the VDD_P2, VDD_P4, VDD_ANA, and VDD_BAT pins are connected to VDD. VDD_P3 is left floating (port P3 is not used).

VDD_CORE rises well after VDD (see attached oscillogram: channel 2 = MCU_RESET_B pin, channel 1 = VDD, channel 3 = VDD_CORE).

On the reset pin, we have a capacitance of 100nf and a resistance of 10K (the 100 Ohm resistor R193 and switch SW1 are not present).

0 Kudos
Reply
1,723 Views
Habib_MS
NXP Employee
NXP Employee

Hello @plac,
The reason the MCU_RESET_B behaves this way is that during reset, the RESET_b drives low until the MCU completes initialization, at which point the RESET_b pin is released. If the RESET_b pin asserts externally, then the MCU remains in reset until the RESET_b input is pulled high. As mentioned in the chapter 38.3.5.1 called "Reset sources" in the RM.
In order to support you better, could you provide me the following information?
-The code you are using to read the CMC register and the value it returns.
- Previously, were you able to observe the SRS[POR] bit? If so, could you share the changes you made in either software or hardware?

BR
Habib

0 Kudos
Reply
1,683 Views
plac
Contributor I

Hello,
The RESET_b pin is not controlled externally except when VDD is applied by the RC network. If you look at the oscillogram provided in my previous reply, you can see that the RESET_b pin is forced low by the ROM code.
I just ran a test by invalidating the CMPA region parameters. To do this, I cleared the BOOT_CFG [HEADER] register. By doing this, I no longer have the double reset and I can see that the SRS[POR] bit is set to 1.
So I assume that the CMPA region configuration is not correct? Do you have an explanation for this problem?
Thank you.

0 Kudos
Reply
1,677 Views
plac
Contributor I

I just read through the Security Reference Manual, and I noticed that the CMPA[FLASH_REMAP_SIZE] field is not set to zero. When I set this field to zero, I no longer get this double reset. Can you explain why? The answer is not clear in the SRM document in chapter 8.3.1.1.1 Boot flow.

0 Kudos
Reply
1,643 Views
Habib_MS
NXP Employee
NXP Employee

Hello @plac,
The CMPA is designed to control certain boot behaviors, and misconfiguration can lead to unexpected resets during the boot flow. It’s possible that the issue you observed was related to an error in the boot sequence that caused the MCU to reset differently.

To prevent this from happening, you can overwrite the CMPA with your own configurations (which, as I understand, you already did). You can find more detailed information in Chapter 8.5: Customer Manufacturing/Factory Programmable Area (CMPA) of the Security Reference Manual.
BR
Habib

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2288827%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMCXN547VNLT%20power%20on%20reset%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2288827%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20debugging%20a%20proprietary%20board%20based%20on%20MCXN547VNLT.%3C%2FP%3E%3CP%3EDuring%20the%20MCU%20power-up%20sequence%2C%20I%20do%20not%20see%20the%20%E2%80%9CkCMC_PORReset%E2%80%9D%20flag%20in%20the%20SRS%20register.%3CBR%20%2F%3ESo%20I%20inspected%20the%20MCU%20reset%20signal%20and%20saw%20two%20resets%20on%20the%20pin%20(see%20attached%20oscillogram%3A%20blue%20signal%20is%20the%20pin%20Reset%20and%20yellow%20signal%20is%20the%20VCC).%3C%2FP%3E%3CP%3EHas%20anyone%20else%20seen%20and%20resolved%20a%20similar%20issue%3F%3CBR%20%2F%3EThis%20issue%20prevents%20me%20from%20detecting%20the%20first%20power-up%20of%20the%20MCU%20in%20my%20application.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2288827%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EBoard%20Design%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EBoot%20ROM%7CBooting%20%7C%20Flash%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2289254%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCXN547VNLT%20power%20on%20reset%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2289254%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20your%20help.%3C%2FP%3E%3CP%3EIn%20our%20design%2C%20the%20VDD_P2%2C%20VDD_P4%2C%20VDD_ANA%2C%20and%20VDD_BAT%20pins%20are%20connected%20to%20VDD.%20VDD_P3%20is%20left%20floating%20(port%20P3%20is%20not%20used).%3C%2FP%3E%3CP%3EVDD_CORE%20rises%20well%20after%20VDD%20(see%20attached%20oscillogram%3A%20channel%202%20%3D%20MCU_RESET_B%20pin%2C%20channel%201%20%3D%20VDD%2C%20channel%203%20%3D%20VDD_CORE).%3C%2FP%3E%3CP%3EOn%20the%20reset%20pin%2C%20we%20have%20a%20capacitance%20of%20100nf%20and%20a%20resistance%20of%2010K%20(the%20100%20Ohm%20resistor%20R193%20and%20switch%20SW1%20are%20not%20present).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2288974%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCXN547VNLT%20power%20on%20reset%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2288974%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%2F227885%22%20target%3D%22_blank%22%3E%40plac%3C%2FA%3E%2C%3CBR%20%2F%3EIn%20order%20to%20try%20a%20pinpoint%20if%20the%20issue%20is%20related%20to%20hardware%2C%20could%20you%20please%20confirm%20that%20your%20design%20follows%20the%20required%20sequence%20mentioned%20in%20the%20chapter%202.5%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fdata-sheet%2FMCXNP184M150F70.pdf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Edatasheet%3C%2FA%3E%26nbsp%3B%3F%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3Eplease%20verify%20if%20the%20100%E2%80%AFnF%20capacitor%20mentioned%20in%20the%20%E2%80%9CHMI%20Interfaces%E2%80%9D%20section%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.nxp.com%2Fbundle%2FUG10092%2Fpage%2Ftopics%2Fhmi_interfaces.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EUG10092%3A%20MCXNx4x%20Hardware%20Design%20Guide%20%7C%20NXP%20Semiconductors%3C%2FA%3E%26nbsp%3Bis%20properly%20included.%3C%2FDIV%3E%0A%3CP%3E%3CBR%20%2F%3EBR%3CBR%20%2F%3EHabib%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2289705%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCXN547VNLT%20power%20on%20reset%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2289705%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F227885%22%20target%3D%22_blank%22%3E%40plac%3C%2FA%3E%2C%3CBR%20%2F%3EThe%20reason%20the%20MCU_RESET_B%20behaves%20this%20way%20is%20that%20during%20reset%2C%20the%20RESET_b%20drives%20low%20until%20the%20MCU%20completes%20initialization%2C%20at%20which%20point%20the%20RESET_b%20pin%20is%20released.%20If%20the%20RESET_b%20pin%20asserts%20externally%2C%20then%20the%20MCU%20remains%20in%20reset%20until%20the%20RESET_b%20input%20is%20pulled%20high.%20As%20mentioned%20in%20the%20chapter%2038.3.5.1%20called%20%22Reset%20sources%22%20in%20the%20RM.%3CBR%20%2F%3EIn%20order%20to%20support%20you%20better%2C%20could%20you%20provide%20me%20the%20following%20information%3F%3CBR%20%2F%3E-The%20code%20you%20are%20using%20to%20read%20the%20CMC%20register%20and%20the%20value%20it%20returns.%3CBR%20%2F%3E-%20Previously%2C%20were%20you%20able%20to%20observe%20the%20SRS%5BPOR%5D%20bit%3F%20If%20so%2C%20could%20you%20share%20the%20changes%20you%20made%20in%20either%20software%20or%20hardware%3F%3C%2FP%3E%0A%3CP%3EBR%3CBR%20%2F%3EHabib%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2290150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCXN547VNLT%20power%20on%20reset%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20just%20read%20through%20the%20Security%20Reference%20Manual%2C%20and%20I%20noticed%20that%20the%20CMPA%5BFLASH_REMAP_SIZE%5D%20field%20is%20not%20set%20to%20zero.%20When%20I%20set%20this%20field%20to%20zero%2C%20I%20no%20longer%20get%20this%20double%20reset.%20Can%20you%20explain%20why%3F%20The%20answer%20is%20not%20clear%20in%20the%20SRM%20document%20in%20chapter%208.3.1.1.1%20Boot%20flow.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2290110%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCXN547VNLT%20power%20on%20reset%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290110%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3EThe%20RESET_b%20pin%20is%20not%20controlled%20externally%20except%20when%20VDD%20is%20applied%20by%20the%20RC%20network.%20If%20you%20look%20at%20the%20oscillogram%20provided%20in%20my%20previous%20reply%2C%20you%20can%20see%20that%20the%20RESET_b%20pin%20is%20forced%20low%20by%20the%20ROM%20code.%3CBR%20%2F%3EI%20just%20ran%20a%20test%20by%20invalidating%20the%20CMPA%20region%20parameters.%20To%20do%20this%2C%20I%20cleared%20the%20BOOT_CFG%20%5BHEADER%5D%20register.%20By%20doing%20this%2C%20I%20no%20longer%20have%20the%20double%20reset%20and%20I%20can%20see%20that%20the%20SRS%5BPOR%5D%20bit%20is%20set%20to%201.%3CBR%20%2F%3ESo%20I%20assume%20that%20the%20CMPA%20region%20configuration%20is%20not%20correct%3F%20Do%20you%20have%20an%20explanation%20for%20this%20problem%3F%3CBR%20%2F%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2290463%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCXN547VNLT%20power%20on%20reset%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290463%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%2F227885%22%20target%3D%22_blank%22%3E%40plac%3C%2FA%3E%2C%3CBR%20%2F%3EThe%20CMPA%20is%20designed%20to%20control%20certain%20boot%20behaviors%2C%20and%20misconfiguration%20can%20lead%20to%20unexpected%20resets%20during%20the%20boot%20flow.%20It%E2%80%99s%20possible%20that%20the%20issue%20you%20observed%20was%20related%20to%20an%20error%20in%20the%20boot%20sequence%20that%20caused%20the%20MCU%20to%20reset%20differently.%3C%2FP%3E%0A%3CP%3ETo%20prevent%20this%20from%20happening%2C%20you%20can%20overwrite%20the%20CMPA%20with%20your%20own%20configurations%20(which%2C%20as%20I%20understand%2C%20you%20already%20did).%20You%20can%20find%20more%20detailed%20information%20in%20Chapter%208.5%3A%20Customer%20Manufacturing%2FFactory%20Programmable%20Area%20(CMPA)%20of%20the%20Security%20Reference%20Manual.%3CBR%20%2F%3EBR%3CBR%20%2F%3EHabib%3C%2FP%3E%3C%2FLINGO-BODY%3E