Reading and writing RAM via ST-Link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-26 01:49 AM
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.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-29 02:53 AM
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-26 04:11 AM
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-26 06:53 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-27 04:56 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-28 11:55 PM
Unfortunly, there is SD card slot.
You asked "Are you talking about A7/linux world or M4/HAL?"
Did you mean I can do this on M4 coprocessor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-29 02:53 AM
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-29 07:48 AM
Yes, I started from this variant, but it is requires host side specific settings (such as DHCP/BOOTP and TFTP server)
Thank you