Skip to main content
axel101
Associate II
June 26, 2023
Solved

Reading and writing RAM via ST-Link

  • June 26, 2023
  • 1 reply
  • 3900 views

I am using STM32MP153 MPU on custom board.

Is it possible to read/write memory region using ST-Link connected via JTAG interface?

Most interesting if this is possible through some command line interface, perhaps my own C program using some API.

    This topic has been closed for replies.
    Best answer by Olivier GALLIEN

    Hi @axel101 ,

     

    > Did you mean I can do this on M4 coprocessor?

     

    No, for your use case it's no more valid. 

     

    I guess the remaining option is to load with serial only up to a specific Uboot implementing load of QSPI through ethernet. 

     

    Olivier 

     

     

    1 reply

    Olivier GALLIEN
    Technical Moderator
    June 26, 2023

    Hi @axel101 ,

    Can you elaborate a bit further what you would like to ? 

    Which RAM and from which Core ? Are you talking about A7/linux world or M4/HAL ? 

    CubeIDE allow you to interact with Memory while in debug ? Can it fit your need ?

    Thanks 

    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.
    axel101
    axel101Author
    Associate II
    June 26, 2023

    I am talking about A7/U-boot.
    Generaly I need to develop update procedure. As I understand, I can't flash QSPI image via ST-link.
    Since I heve only sertial port and JTAG the only way to flash QSPI image for is use STM32CubeProgrammer and uboot stm32 loader via serial port.
    But this way is very slow (10Mb image loads about 40 minutes)
    If I could write image to device RAM via ST-link I could develop special U-boot image which loads image from RAM to QSPI

    PatrickF
    Technical Moderator
    June 27, 2023

    Hi,

    One solution might be to enable an SD-Card boot which could start uBoot then copy image into QSPI from SD-Card partition or Ethernet.

    Regards.

    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.NEW ! Sidekick STM32 AI agent, see here