cancel
Showing results for 
Search instead for 
Did you mean: 

How to enter DDR interactive mode by defining CONFIG_STM32MP1_DDR_INTERACTIVE ?

Arnas Celkys
Associate II

I am using stm32MP157F-DK eval board (on windows) and I would like to try the DDR testing tool on cubeMX. But this is my first time trying to do so - I try to follow steps in "U-Boot SPL: DDR interactive mode" (url: https://wiki.st.com/stm32mpu/wiki/U-Boot_SPL:_DDR_int). It states i should define this mode under CONFIG_STM32MP1_DDR_INTERACTIVE - but I dont understand when or how should I do that? Should this be done on full flashlayout_st-image-*** or should i just have boot running?

21 REPLIES 21
Arnas Celkys
Associate II

**********************Summary of solved issues************************

Huge thanks to, @Kevin HUBER​ , for all the help. If anybody will face similar issues I will just layout all the summary I did that helped me out.

  1. 1.Setting Linux on dedicated hardware rather than just VM - solved the issue of mass-storage not appearing on PC (when using VM) after the ums 0 mmc 0
  2. Updating Ubuntu to - 20.xx version solved the issue with SyntaxError: invalid syntax in SDcard population issues
  3. Always after selecting SDK make sure TF-A is installed - this solved the make or Makefile.sdk.all errors.
  4. Updating the boards current Flashlayout with trusted lates image from en.FLASH-stm32mp1-openstlinux-5-10-dunfell-mp1-21-11-17_tar_v3.1.0 - solved the missing FIP directory in U-boot interactive mode after command ums 0 mmc 0.

Following the information provided by @Kevin HUBER​  and these basic steps, i finally managed to access DDR interactive mode and do the the test on my custom board - and i am glad to say that ir passed all the tests :)

DDR test #0 (All) triggered with parameters: 1 128 0xC0000000

DDR test result: Pass

DDR test #1 (Simple DataBus) triggered with parameters: 0xC0000000

DDR test result: Pass

DDR test #2 (DataBusWalking0) triggered with parameters: 1 0xC0000000

DDR test result: Pass

DDR test #3 (DataBusWalking1) triggered with parameters: 1 0xC0000000

DDR test result: Pass

DDR test #4 (AddressBus) triggered with parameters: 4 0xC0000000

DDR test result: Pass

DDR test #5 (MemDevice) triggered with parameters: 4 0xC0000000

DDR test result: Pass

DDR test #6 (SimultaneousSwitchingOutput) triggered with parameters: 4 0xC0000000 

DDR test result: Pass

DDR test #7 (Noise) triggered with parameters: 0x00000000 0xC0000000

DDR test result: Pass

DDR test #8 (NoiseBurst) triggered with parameters: 128 0x00000000 0xC0000000

DDR test result: Pass

DDR test #9 (Random) triggered with parameters: 8 1 0xC0000000

DDR test result: Pass

DDR test #10 (FrequencySelectivePattern) triggered with parameters: 128 0xC0000000

DDR test result: Pass

DDR test #11 (BlockSequential) triggered with parameters: 4 1 0xC0000000

DDR test result: Pass

DDR test #12 (Checkerboard) triggered with parameters: 8 1 0xC0000000

DDR test result: Pass

DDR test #13 (BitSpread) triggered with parameters: 32 1 0xC0000000

DDR test result: Pass

DDR test #14 (BitFlip) triggered with parameters: 32 1 0xC0000000

DDR test result: Pass

DDR test #15 (WalkingOnes) triggered with parameters: 4 1 0xC0000000

DDR test result: Pass

DDR test #16 (WalkingZeroes) triggered with parameters: 4 1 0xC0000000

DDR test result: Pass

DDR test #17 (infinite read) triggered with parameters: 0xC0000000 0x00000000

DDR test result: Pass

DDR test #18 (infinite write) triggered with parameters: 0xC0000000 0x00000000

DDR test result: Pass

DDR test #20 (Check DQS timings margins)

DDR test result: Pass

Hi,

Yes, but only if you have working a working U-Boot or Linux on your board....

How to manually update bootloaders - stm32mpu

Then you can use these commands to update the target with any downloaded files, for example with linux command "scp".

How to compile the device tree with the Developer Package - stm32mpu

Patrick