2024-01-22 07:04 AM
Online run successful (FSBLA_Sdmmc1_A7, MP13-BSP_BasicTemplates, DDRInit-A7).Successfully burned SD card, but it did not run。
Using chip STM32MP135DAE7。
Modified #define USE_STPMIC1x 1U to #define USE_STPMIC1x 0U, Other unchanged.
The starting position of SD card 128LGA has the same data。
What checks do I need to perform? The chip used is different from the official board(use STM32MP135DAE7)。
2024-01-23 02:49 AM
Hi @dubujian ,
I understand you are doing your board bring-up with a STM32MP135DAE7 and I catch already an important difference which is discrete power vs PMIC right ?
Unfortunately this can hardly be as straight forward.
FSBLA is dedicated to MP13-DK board and have to be adapted tune to your hardware.
A first step would likely be to make the FSBLA project work on your bord using engineering mode. (loaded by CubeIDE)
Please refer to :
STM32CubeMP13 Package - Getting started - stm32mpu
Hope it help
Olivier
2024-01-23 05:54 AM
Hi @dubujian ,
If you are sure your application did not start at all (i.e. BootROM fall back to USB/UART boot), maybe try top get boot traces. You might have HW issues (boot pins, SDMMC1 or else).
https://wiki.st.com/stm32mpu/wiki/STM32_MPU_ROM_trace_analyzer#On_STM32MP13x_lines
Regards.
2024-01-23 07:30 AM
In engineering mode, FSBLA_Sdmmc1_A7 program can light the LED light, currently because the PF15 pin is connected to the JTAG (TMS) and SD_DETECT of the SD card at the same time, resulting in SD card insertion, can not run in engineering mode.
However, after the FSBLA_Sdmmc1_A7.stm32 was burned into the SD card and started from the SD card, the LED light did not turn on. Not sure if the program is started by ROM.
Plan to disconnect SD_DETECT temporarily on the hardware, run FSBLA_Sdmmc1_A7 program completely and successfully in engineering mode, and test again.
If the FSBLA_Sdmmc1_A7 program starts successfully in SD card mode, the LED should light up (the LED can light up in engineering mode).
2024-01-26 06:58 PM
Hi, May I ask if there is any follow-up? I am in the same situation as you.
2024-01-27 05:48 AM
At present, in engineering mode, FSBLA_Sdmmc1_A7 runs successfully, can copy application program (MP13-BSP_BasicTemplates) from SD card LBA640 location to DDR, and the application program runs normally in DDR. The serial port information added in MP13-BSP_BasicTemplates is displayed normally.
However, when the boot mode is switched to the SD card, FSBLA_Sdmmc1_A7 cannot be started by ROM after power-on.
At present, the SD card can be read, judging that the SD card is working normally, and the BOOT mode check is also normal; I want to according to your description (https://wiki.st.com/stm32mpu/wiki/STM32_MPU_ROM_trace_analyzer#On_STM32MP13x_lines) content. I created a new rom_trace_analyzer.py file on Ubuntu and copied the python script, but I'm still going through the process, what else can I check?
2024-01-29 07:50 AM
At present, in engineering mode, FSBLA_Sdmmc1_A7 runs successfully, can copy application program (MP13-BSP_BasicTemplates) from SD card LBA640 location to DDR, and the application program runs normally in DDR. The serial port information added in MP13-BSP_BasicTemplates is displayed normally.
However, when the boot mode is switched to the SD card, FSBLA_Sdmmc1_A7 cannot be started by ROM after power-on.
At present, the SD card can be read, judging that the SD card is working normally, and the BOOT mode check is also normal; I want to according to your description (https://wiki.st.com/stm32mpu/wiki/STM32_MPU_ROM_trace_analyzer#On_STM32MP13x_lines) content. I created a new rom_trace_analyzer.py file on Ubuntu and copied the python script, but I'm still going through the process, what else can I check?
2024-01-29 11:03 PM
Hi @dubujian
could you share the result of bootrom trace (to be sure the fail is at bootrom loading FSBL or rather FSBL is crashing) ?
Steps to get it are:
openocd -f board/stm32mp13x_dk.cfg -c 'init;halt;dump_image traces.bin 0x30001638 4096;resume;shutdown'
python3 rom_trace_analyzer.py traces.bin
Regards.