cancel
Showing results for 
Search instead for 
Did you mean: 

Problems Using the DDR Test Suite SYSRAM Loading on an STM32MP157F-DK2

TD_P1
Visitor

Hello,

I am preparing to develop a custom board based on the STM32MP15 series MPU and getting accustomed to the DDR testing procedures in the STM32Cube ecosystem with an STM32MP157F-DK2 evaluation board. However, I am running into issues with the SYSRAM loading option which seems to be the necessary method for DDR testing new, custom boards designed around the STM32MP157 MPU.

Firstly, I am able to run the DDR Test Suite in STM32CubeIDE or STM32CubeMX after importing the STM32DDRFW-UTIL-main\DDR_Tool\STM32MP157C-DK2 project into STM32CubeIDE. I am able to run the test firmware on the evaluation board with the "Debug As" option (with boot switches set to Engineering Mode), and then I am able go to a new .ioc project file made for the STM32MP157F-DK2 (peripherals initialized in their default modes) and use the DDR Test Suite via the "DDR Interactive" mode with no issues. Similarly, I can open a serial connection in TeraTerm via the ST-LINK COM port and run the DDR tests there as well.

However, when trying to do the same procedure without previously running the firmware in the STM32CubeIDE, and instead using the SYSRAM Loading option, the connection fails. My procedure for this is:

  1. Create a new CubeMX project (.ioc) for the STM32MP157F-DK2 (initializing params to their default configs)
  2. Generate code
  3. Open project in STM32CubeIDE
  4. Navigate to the DDR Test Suite in the Tools tab
  5. Set the boot mode to "Load from USB" (Boot0 = 0, Boot1 = 0, Boot2 = 0)
  6. Check SYSRAM Loading box
  7. Point to STM32CubeProgrammer executable
    1. TD_P1_0-1736283145862.png
  8. Select USB in Port Selection
  9. Select the DDR utilities binary file (from: STM32DDRFW-UTIL-main\Binaries\STM32MP157C-DK2_DDR_UTILITIES_A7\STM32MP157C-DK2_DDR_UTILITIES_A7.stm32)
  10. Verify the DDR Test Suite matches Fig. 354 in UM1718
    1. TD_P1_1-1736283169587.png
  11. Attach USB-C power cable, USB-A to USB-Micro ST-LINK connection, and USB-C connection between CN7 and the PC
  12. Press board's RESET button
  13. Select the COM port attached to the ST-LINK (UART4) Micro-USB connector under DDR Interactive
  14. Press "Connect" button
  15. Get error window:

    1. TD_P1_7-1736283529880.png

I have similarly tried SYSRAM loading with the UART option selected and with the device in Engineering Mode instead (Boot0 = 0, Boot1 = 0, Boot2 = 1). It appears that the SYSRAM loading is functional at first:

TD_P1_8-1736283826170.png

But then the same error is shown once it completes:

TD_P1_7-1736283529880.png

Is this the correct way to emulate board bring-up (specifically DDR testing)? Are there any issues with this procedure?

------------------------------------------------------------------------

Here is some information on my development environment:

  • Operating System: Windows 11
  • STM32CubeMX Version: 6.13.0
  • STM32CubeIDE Version: 1.17.0
  • STM32CubeProgrammer Version: 2.18.0

Other reference documents used:

 

 

0 REPLIES 0