cancel
Showing results for 
Search instead for 
Did you mean: 

Strange PANIC message on STM32MP135F

arifbalik
Associate II

We had a custom board with STM32MP135F series MPU on it, we just rolled out a new revision because we didn't connected PDR pin and it wasnt able to start after reset. But everything was booting correctly and all systems were working. Now in our new revision, we just fixed the PDR and added the emmc but when I try to boot with all debug and log levels maxed, I get this error on my console and nothing else;

 

 

 

 

PANIC at PC : 0x2ffee107

Exception mode=0x00000016 at: 0x2ffee107

 

 

 

 
I'm not sure this is TF-A output because all debug logging is allowed. It seems like its panicking at the end of SYSRAM

I suspected my clock settings but the parts has not been changed, its the same crystal and same device tree settings should work.

Also I'm able to boot with UART/USB mode and connect to device with UART (USB also doesnt work in this mode somehow), I can even load DDR utility binary with STM32Programmer CLI, but after the code downloads to target I loose connection and can't access DDR utility program.

Also I can not connect via STLink v3 (both with programmer or cubeide), target voltage is not detected (I just use GND, SWCLK and SWIO) and target can not be found.

Again these were all working but since PDR change and emmc, I can only connect to device with UART4.

I'm now stuck and can't debug the system anymore. Any ideas would be appreciated

EDIT: I managed to get boot rom trace and everything looks okay

 

< @ 00053446 | [INFO] - BOOTCORE_BootRomChipVer ( 0x00010101 ) >
< @ 00055798 | [INFO] - BOOTCORE_BootRomCutVer ( 0x00000101 ) >
< @ 00057710 | [INFO] - BOOTCORE_BootRomMaskVer ( 0x00000000 ) >
< @ 00059586 | [INFO] - BOOTCORE_BootRomVer ( 0x00000300 ) >
< @ 00063684 | [INFO] - BOOTCORE_HwResetPOR >
< @ 00074322 | [INFO] - BOOTCORE_OtpModeOtpSecured >
< @ 00080564 | [INFO] - BOOTCORE_BootPinsValueRead ( 0x00000000 ) >
< @ 00082814 | [INFO] - BOOTCORE_ChipModeSecOpen >
< @ 00087454 | [INFO] - BOOTCORE_LogicalResetSystem >
< @ 00090314 | [INFO] - BOOTCORE_BootActionSecureBootProcess >
< @ 00146376 | [INFO] - BOOTCORE_WkAroundEXTIResetValues >
< @ 00200634 | [INFO] - BOOTCORE_BootPinsValueRead ( 0x00000000 ) >
< @ 00204286 | [INFO] - BOOTCORE_BootCfgOtpWordValue ( 0x00000000, 0x00000000, 0x00000000 ) >
< @ 00206802 | [INFO] - BOOTCORE_BootPinsFirstSelSerial >
< @ 00208682 | [INFO] - BOOTCORE_OtpPrimarySrcForceNothing >
< @ 00210524 | [INFO] - BOOTCORE_OtpSecondarySrcForceNothing >
< @ 00212318 | [INFO] - BOOTCORE_BootPinsOverridesOtp ( 0x00000001 ) >
< @ 00214590 | [INFO] - BOOTCORE_OtpBootSrcDisableMaskVal ( 0x00000000 ) >
< @ 00216662 | [INFO] - BOOTCORE_OtpBootUartInstanceDisableMaskVal ( 0x00000000 ) >
< @ 00219422 | [INFO] - BOOTCORE_eMmcUseSingle128KBytesBootPartition ( 0x00000000 ) >
< @ 00223318 | [INFO] - BOOTCORE_BootCfgAfmuxOtpWord1Value ( 0x00000000 ) >
< @ 00225670 | [INFO] - BOOTCORE_BootCfgAfmuxOtpWord2Value ( 0x00000000 ) >
< @ 00228070 | [INFO] - BOOTCORE_BootCfgAfmuxOtpWord3Value ( 0x00000000 ) >
< @ 00230836 | [INFO] - BOOTCORE_BootCfgHseValue ( 0x00000000 ) >
< @ 00235522 | [INFO] - BOOTCORE_EnabledSrcMaskVal ( 0x00000640 ) >
< @ 00238372 | [INFO] - BOOTCORE_BootModeSECUREBOOT >
< @ 00640554 | [INFO] - BOOTCORE_StartupWaitTime ( 0x00002700 ) >
< @ 00643134 | [INFO] - BOOTCORE_NoCpuPllOtpBitValue ( 0x00000000 ) >
< @ 00645218 | [INFO] - BOOTCORE_Pll12StartBegin >
< @ 00647138 | [INFO] - BOOTCORE_Pll12StartNotDisabledByOtpBit >
< @ 00650156 | [INFO] - BOOTCORE_Pll1Started >
< @ 00653582 | [INFO] - BOOTCORE_Pll1Locked >
< @ 00655718 | [INFO] - BOOTCORE_Pll2Started >
< @ 00660800 | [INFO] - BOOTCORE_Pll2Locked >
< @ 00663380 | [INFO] - BOOTCORE_CkMpuSsSwitchedOnPll1 >
< @ 00665629 | [INFO] - BOOTCORE_CkAxiSsSwitchedOnPll2 >
< @ 00666328 | [INFO] - BOOTCORE_Pll12StartEnd >
< @ 00667061 | [INFO] - BOOTCORE_Pll12StartReqStatusPllStarted >
< @ 00667744 | [INFO] - BOOTCORE_ConfigureSRAMsForDownload >
< @ 00669324 | [INFO] - BOOTCORE_FingerPrintValue ( 0x00000001, 0x3E2248E2 ) >
< @ 00686490 | [INFO] - BOOTCORE_HseNoBypass >
< @ 00733567 | [INFO] - BOOTCORE_HseFrequencyDetected ( 0x00000018 ) >
< @ 00734951 | [INFO] - USB_Init >
< @ 00807889 | [INFO] - BOOTCORE_PllUsbLocked >
< @ 04401423 | [INFO] - UART_PeripheralSerialBootLoopStart >
< @ 81568074 | [INFO] - UART_Selection ( 0x00000004 ) >

 



1 ACCEPTED SOLUTION

Accepted Solutions
arifbalik
Associate II

It turns out we had a faulty LSE crystal instead of HSE, and nowhere it did give any errors in bootrom, probably TFA failed here in this case 

View solution in original post

1 REPLY 1
arifbalik
Associate II

It turns out we had a faulty LSE crystal instead of HSE, and nowhere it did give any errors in bootrom, probably TFA failed here in this case