Skip to main content
Visitor II
June 5, 2020
Question

STM32MP157AAC, custom board with SD card

  • June 5, 2020
  • 1 reply
  • 770 views

SDMMC is on the board, pinout of SD differs from Evaluation board by SDMMC1_D2 pin (PE6 instead of PC10). Using STM32Cube I generated dts files for u-boot and tf-a for new SD pinout

What should I do next?

Best regards

    This topic has been closed for replies.

    1 reply

    Visitor II
    June 5, 2020

    Well, use the generated DTS files, I guess?

    So check out the sources, change the relevant files with the ones you have generated, rebuild and test.

    Agree, this is not done in 2 hours!

    IFadeAuthor
    Visitor II
    June 5, 2020

    Hello, thank you for reply!

    I used this article https://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Developer_Package and generated tf-a.stm32 and u-boot.stm32 files with my custom config.

    I tried to flash partition tf-a.stm32 (because this will be a first partition for trusted package) via STM_Programmer_CLI, so I connected to the target but the processor doesn't respond when I tried to download tf-a partition

    As I understand initially we have to initialize periphery such as USART for terminal output and SD card driver to correctly read image from SD card =) The question is - where is located a code with this INITIAL driver settings for the MPU which initialize SD card drivers?

    Best regards