When MCU enter APP from bootloader for the second time , initialization of clock is abnormal

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

When MCU enter APP from bootloader for the second time , initialization of clock is abnormal

Jump to solution
2,135 Views
LuoSi
Contributor I

There is a requirement is that keep an IO high level when APP jump to the bootloader, so it is not feasibile to enter Bootloader by software reset.

It is normal for the first time to enter APP from Bootloader.I deinitialize all peripheral such as PIT, SPI before entering bootloader and bootloader will enter APP again. When MCU enter APP from bootloader for the second time, it will stuck at initialzing. I used the library functions offered by IDE. These pictures shows how I find the problem.

 

1.I find it stuck at here.

LuoSi_11-1715927008462.png

 

LuoSi_4-1715926233966.png

2.Then stuck at here in picture 1 function

LuoSi_5-1715926316880.png

3.Then stuck at here in picture 2 function

LuoSi_6-1715926356787.png

4.Then stuck at here in picture 3 function

LuoSi_7-1715926412080.png

5.And finally I found here. It seems that the cycle is waiting a register status until timeout.

LuoSi_8-1715926471975.png

6.Then I checked the address of this register, and found out what is the cycle wating for.

LuoSi_9-1715926764250.png

LuoSi_10-1715926813693.png

LuoSi_12-1715927014672.png

But I dont know why this bit stuck at "Mode transition is on going ". Besides, I tried to reduced the TIMEOUT value in picture 5, then the project will stuck at initializing PIT, or SPI, or the others peripheral.

 

0 Kudos
Reply
1 Solution
2,035 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

OK, so I expect you still have some peripheral active which is sourcing the clock like CAN or PWM.

Gate clocks to those, usually the peripherals have in control register freeze bit so similar.

Best regards,

Peter

View solution in original post

0 Kudos
Reply
4 Replies
2,006 Views
davidaccess
Contributor I

When dealing with a requirement to keep an IO high level while transitioning from an application (APP) to a bootloader, it is crucial to manage the peripheral states and initialization sequences carefully. Here are some steps and considerations to address the issue where the MCU gets stuck during the second entry into the APP from the bootloader:

  1. Peripheral Deinitialization:

    • Ensure that all peripherals are properly deinitialized before jumping to the bootloader. This includes disabling interrupts and resetting peripheral registers to their default states.
  2. Memory and Stack Management:

    • Verify that the stack and heap are correctly managed during the transition. Any stack corruption or improper memory allocation can cause the MCU to get stuck.
  3. Bootloader and Application Separation:

    • Make sure that the bootloader and application code are well separated in memory and that the vector table is correctly set up when transitioning between them.
  4. Hardware Initialization:

    • During the second entry into the APP, ensure that all hardware components are re-initialized correctly. Sometimes peripherals may require a complete reset to work properly after being used by the bootloader.
  5. Debugging:

    • Use debugging tools to step through the code and identify where the initialization process gets stuck. Implement a functional Hard Fault Handler to catch any faults and provide more information about the failure.
  6. Library Functions:

    • If you are using library functions provided by the IDE, ensure they are compatible with your bootloader and application setup. Sometimes, custom initialization routines may be necessary.

For more detailed troubleshooting, you can refer to community discussions on similar issues. For example, a user on the NXP community faced a similar problem where the MCU got stuck during initialization when entering the APP from the bootloader for the second time (source).

By carefully managing peripheral states, memory, and initialization sequences, you can ensure a smooth transition between the bootloader and application, even with the requirement to keep an IO high level.

0 Kudos
Reply
2,088 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

You mode transition is stuck because you have active some periphery which is supplied by PLL.

Try to do mode transition to IRC clock and then to your application settings.

Make sure all peripherals are not clocked by you application clock when you request mode transition.

petervlna_0-1716362919246.png

Best regards,

Peter

 

0 Kudos
Reply
2,040 Views
LuoSi
Contributor I

Hi

I've tried as you said.I reset MC_RUN_PC_n, MC_LP_PC_n and ME_PCTL_n before requesting mode transition but  mode transition is still stuck.

LuoSi_0-1716854905897.png

 

A register called MC_ME_DMTS as the picture below can see what state is currently. The value is the picture below when the stuck happen. But it is not clear to me that how to find the cause of stuck. Could you help me analyze it?

LuoSi_2-1716855424520.png

LuoSi_3-1716855523065.png

 

 

0 Kudos
Reply
2,036 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

OK, so I expect you still have some peripheral active which is sourcing the clock like CAN or PWM.

Gate clocks to those, usually the peripherals have in control register freeze bit so similar.

Best regards,

Peter

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1867747%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EWhen%20MCU%20enter%20APP%20from%20bootloader%20for%20the%20second%20time%20%2C%20initialization%20of%20clock%20is%20abnormal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1867747%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThere%20is%20a%20requirement%20is%20that%20keep%20an%20IO%20high%20level%20when%20APP%20jump%20to%20the%20bootloader%2C%20so%20it%20is%20not%26nbsp%3B%3CSPAN%3Efeasibile%20to%20enter%20Bootloader%20by%20software%20reset.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIt%20is%20normal%20for%20the%20first%20time%20to%20enter%20APP%20from%20Bootloader.I%26nbsp%3Bdeinitialize%20all%20peripheral%20such%20as%20PIT%2C%20SPI%20before%20entering%20bootloader%20and%20bootloader%20will%20enter%20APP%20again.%20When%20MCU%20enter%20APP%20from%20bootloader%20for%20the%20second%20time%2C%20it%20will%20stuck%20at%26nbsp%3Binitialzing.%26nbsp%3BI%20used%20the%20library%20functions%20offered%20by%20IDE.%20These%20pictures%20shows%20how%20I%20find%20the%20problem.%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E1.I%20find%20it%20stuck%20at%20here.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LuoSi_11-1715927008462.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LuoSi_11-1715927008462.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F279301iD5C9766018FBD732%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LuoSi_11-1715927008462.png%22%20alt%3D%22LuoSi_11-1715927008462.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LuoSi_4-1715926233966.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LuoSi_4-1715926233966.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F279287iF53602A2750215D5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LuoSi_4-1715926233966.png%22%20alt%3D%22LuoSi_4-1715926233966.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E2.Then%20stuck%20at%20here%20in%20picture%201%20function%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LuoSi_5-1715926316880.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LuoSi_5-1715926316880.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F279290i2B400A7EC38BB83B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LuoSi_5-1715926316880.png%22%20alt%3D%22LuoSi_5-1715926316880.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E3.Then%20stuck%20at%20here%20in%20picture%202%20function%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LuoSi_6-1715926356787.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LuoSi_6-1715926356787.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F279291iC682A69520D12ADF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LuoSi_6-1715926356787.png%22%20alt%3D%22LuoSi_6-1715926356787.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E4.Then%20stuck%20at%20here%20in%20picture%203%20function%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LuoSi_7-1715926412080.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LuoSi_7-1715926412080.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F279292iA10F2514C1814477%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LuoSi_7-1715926412080.png%22%20alt%3D%22LuoSi_7-1715926412080.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E5.And%20finally%20I%20found%20here.%20It%20seems%20that%20the%20cycle%20is%20waiting%20a%20register%20status%20until%20timeout.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LuoSi_8-1715926471975.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LuoSi_8-1715926471975.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F279293i65B309EF74ACE1A0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LuoSi_8-1715926471975.png%22%20alt%3D%22LuoSi_8-1715926471975.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E6.Then%26nbsp%3BI%20checked%20the%20address%20of%20this%20register%2C%20and%20found%20out%20what%20is%20the%20cycle%20wating%20for.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LuoSi_9-1715926764250.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LuoSi_9-1715926764250.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F279296iCA7BADA4C76EE2A4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LuoSi_9-1715926764250.png%22%20alt%3D%22LuoSi_9-1715926764250.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LuoSi_10-1715926813693.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LuoSi_10-1715926813693.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F279297iD1D905456540F46B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LuoSi_10-1715926813693.png%22%20alt%3D%22LuoSi_10-1715926813693.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LuoSi_12-1715927014672.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LuoSi_12-1715927014672.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F279302iF50E352EC2C7A117%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LuoSi_12-1715927014672.png%22%20alt%3D%22LuoSi_12-1715927014672.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EBut%20I%20dont%20know%20why%20this%20bit%20stuck%20at%20%22Mode%20transition%20is%20on%20going%20%22.%20Besides%2C%20I%20tried%20to%20reduced%20the%20TIMEOUT%20value%20in%20picture%205%2C%20then%20the%20project%20will%20stuck%20at%20initializing%20PIT%2C%20or%20SPI%2C%20or%20the%20others%26nbsp%3Bperipheral.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1878842%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20When%20MCU%20enter%20APP%20from%20bootloader%20for%20the%20second%20time%20%2C%20initialization%20of%20clock%20is%20abnormal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1878842%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWhen%20dealing%20with%20a%20requirement%20to%20keep%20an%20IO%20high%20level%20while%20transitioning%20from%20an%20application%20(APP)%20to%20a%20bootloader%2C%20it%20is%20crucial%20to%20manage%20the%20peripheral%20states%20and%20initialization%20sequences%20carefully.%20Here%20are%20some%20steps%20and%20considerations%20to%20address%20the%20issue%20where%20the%20MCU%20gets%20stuck%20during%20the%20second%20entry%20into%20the%20APP%20from%20the%20bootloader%3A%3C%2FP%3E%3COL%3E%3CLI%3E%3CP%3E%3CSTRONG%3EPeripheral%20Deinitialization%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CUL%3E%3CLI%3EEnsure%20that%20all%20peripherals%20are%20properly%20deinitialized%20before%20jumping%20to%20the%20bootloader.%20This%20includes%20disabling%20interrupts%20and%20resetting%20peripheral%20registers%20to%20their%20default%20states.%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3EMemory%20and%20Stack%20Management%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CUL%3E%3CLI%3EVerify%20that%20the%20stack%20and%20heap%20are%20correctly%20managed%20during%20the%20transition.%20Any%20stack%20corruption%20or%20improper%20memory%20allocation%20can%20cause%20the%20MCU%20to%20get%20stuck.%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3EBootloader%20and%20Application%20Separation%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CUL%3E%3CLI%3EMake%20sure%20that%20the%20bootloader%20and%20application%20code%20are%20well%20separated%20in%20memory%20and%20that%20the%20vector%20table%20is%20correctly%20set%20up%20when%20transitioning%20between%20them.%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3EHardware%20Initialization%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CUL%3E%3CLI%3EDuring%20the%20second%20entry%20into%20the%20APP%2C%20ensure%20that%20all%20hardware%20components%20are%20re-initialized%20correctly.%20Sometimes%20peripherals%20may%20require%20a%20complete%20reset%20to%20work%20properly%20after%20being%20used%20by%20the%20bootloader.%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3EDebugging%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CUL%3E%3CLI%3EUse%20debugging%20tools%20to%20step%20through%20the%20code%20and%20identify%20where%20the%20initialization%20process%20gets%20stuck.%20Implement%20a%20functional%20Hard%20Fault%20Handler%20to%20catch%20any%20faults%20and%20provide%20more%20information%20about%20the%20failure%3CA%20href%3D%22https%3A%2F%2Fwww.myaccountaccess.run%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E.%3C%2FA%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3ELibrary%20Functions%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CUL%3E%3CLI%3EIf%20you%20are%20using%20library%20functions%20provided%20by%20the%20IDE%2C%20ensure%20they%20are%20compatible%20with%20your%20bootloader%20and%20application%20setup.%20Sometimes%2C%20custom%20initialization%20routines%20may%20be%20necessary.%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3EFor%20more%20detailed%20troubleshooting%2C%20you%20can%20refer%20to%20community%20discussions%20on%20similar%20issues.%20For%20example%2C%20a%20user%20on%20the%20NXP%20community%20faced%20a%20similar%20problem%20where%20the%20MCU%20got%20stuck%20during%20initialization%20when%20entering%20the%20APP%20from%20the%20bootloader%20for%20the%20second%20time%20(%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FMPC5xxx%2FWhen-MCU-enter-APP-from-bootloader-for-the-second-time%2Ftd-p%2F1867747%2Fjump-to%2Ffirst-unread-message%22%20target%3D%22_blank%22%3Esource%3C%2FA%3E).%3C%2FP%3E%3CP%3EBy%20carefully%20managing%20peripheral%20states%2C%20memory%2C%20and%20initialization%20sequences%2C%20you%20can%20ensure%20a%20smooth%20transition%20between%20the%20bootloader%20and%20application%2C%20even%20with%20the%20requirement%20to%20keep%20an%20IO%20high%20level.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1875990%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20When%20MCU%20enter%20APP%20from%20bootloader%20for%20the%20second%20time%20%2C%20initialization%20of%20clock%20is%20abnormal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1875990%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EOK%2C%20so%20I%20expect%20you%20still%20have%20some%20peripheral%20active%20which%20is%20sourcing%20the%20clock%20like%20CAN%20or%20PWM.%3C%2FP%3E%3CP%3EGate%20clocks%20to%20those%2C%20usually%20the%20peripherals%20have%20in%20control%20register%20freeze%20bit%20so%20similar.%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3EPeter%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1875786%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20When%20MCU%20enter%20APP%20from%20bootloader%20for%20the%20second%20time%20%2C%20initialization%20of%20clock%20is%20abnormal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1875786%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3EI've%20tried%20as%20you%20said.I%20reset%20MC_RUN_PC_n%2C%20MC_LP_PC_n%20and%20ME_PCTL_n%20before%26nbsp%3B%3CSPAN%3Erequesting%20mode%20transition%20but%20%26nbsp%3Bmode%20transition%20is%20still%20stuck.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LuoSi_0-1716854905897.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LuoSi_0-1716854905897.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281031i40BFC046018949E0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LuoSi_0-1716854905897.png%22%20alt%3D%22LuoSi_0-1716854905897.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EA%20register%20called%26nbsp%3BMC_ME_DMTS%20as%20the%20picture%20below%20can%20see%20what%20state%20is%20currently.%20The%20value%20is%20the%20picture%20below%20when%20the%20stuck%20happen.%20But%20it%20is%20not%20clear%20to%20me%20that%20how%20to%20find%20the%20cause%20of%20stuck.%20Could%20you%20help%20me%20analyze%20it%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LuoSi_2-1716855424520.png%22%20style%3D%22width%3A%20438px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LuoSi_2-1716855424520.png%22%20style%3D%22width%3A%20438px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281033iA33121CAC74E2649%2Fimage-dimensions%2F438x20%3Fv%3Dv2%22%20width%3D%22438%22%20height%3D%2220%22%20role%3D%22button%22%20title%3D%22LuoSi_2-1716855424520.png%22%20alt%3D%22LuoSi_2-1716855424520.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LuoSi_3-1716855523065.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LuoSi_3-1716855523065.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281034i8D9510EE2FE80B7E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LuoSi_3-1716855523065.png%22%20alt%3D%22LuoSi_3-1716855523065.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1870371%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20When%20MCU%20enter%20APP%20from%20bootloader%20for%20the%20second%20time%20%2C%20initialization%20of%20clock%20is%20abnormal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1870371%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EYou%20mode%20transition%20is%20stuck%20because%20you%20have%20active%20some%20periphery%20which%20is%20supplied%20by%20PLL.%3C%2FP%3E%0A%3CP%3ETry%20to%20do%20mode%20transition%20to%20IRC%20clock%20and%20then%20to%20your%20application%20settings.%3C%2FP%3E%0A%3CP%3EMake%20sure%20all%20peripherals%20are%20not%20clocked%20by%20you%20application%20clock%20when%20you%20request%20mode%20transition.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22petervlna_0-1716362919246.png%22%20style%3D%22width%3A%20733px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22petervlna_0-1716362919246.png%22%20style%3D%22width%3A%20733px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280050iF313BEE86112DBDC%2Fimage-dimensions%2F733x445%3Fv%3Dv2%22%20width%3D%22733%22%20height%3D%22445%22%20role%3D%22button%22%20title%3D%22petervlna_0-1716362919246.png%22%20alt%3D%22petervlna_0-1716362919246.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPeter%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E