cancel
Showing results for 
Search instead for 
Did you mean: 

Debug SPL with OpenOCD

gianlucarenzi
Associate III

I would like to bring up the openocd and gdb debugger on a custom board with STM32MP157D processor with 1 GB (2x512MB 16 bit DDR3 chips) x 32 bit. The modified device-tree and SPL gives me the following issue:

U-Boot SPL 2022.01-rc3 (Sep 07 2022 - 16:35:59 +0200)
RAM: EK470 DDR3-DDR3L 32bits 533000kHz
stm32mp1_clk rcc@50000000: stm32mp1_clk_disable: id clock 228 has been disabled
stm32mp1_clk rcc@50000000: stm32mp1_clk_enable: id clock 220 has been enabled
stm32mp1_clk rcc@50000000: stm32mp1_clk_enable: id clock 222 has been enabled
stm32mp1_clk rcc@50000000: stm32mp1_clk_enable: id clock 226 has been enabled
stm32mp1_clk rcc@50000000: stm32mp1_clk_enable: id clock 229 has been enabled
stm32mp1_clk rcc@50000000: stm32mp1_clk_enable: id clock 224 has been enabled
id=15 clock = 1fc4ef40 : 533000 kHz
stm32mp1_clk rcc@50000000: computed rate for id clock 224 is 533000000 (parent is PLL2_R)
stm32mp1_clk rcc@50000000: stm32mp1_clk_enable: id clock 228 has been enabled
get_ram_size(c0000000, 40000000)
info.size: 4
DDR invalid size : 0x4, expected 0x40000000
DRAM init failed: -22
### ERROR ### Please RESET the board ###

I would like to debug if the PMIC is driving the SDRAM Chips correctly...

1 REPLY 1
Olivier GALLIEN
ST Employee

Hi @gianlucarenzi (Community Member)​ ,

I notice : u-boot 2022-01-rc3 as bootloader and using SPL

Likely Vanilla U-boot version not yet integrated and ST no more support SPL for MP1.

I recommend you to use an OpenSTLinux delivery to get better support.

STM32 MPU OpenSTLinux release note - v4.0.0 - stm32mpu

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.