A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/stlink-org/stlink/pull/1158 below:

Can't access all device memory · Issue #1158 · stlink-org/stlink · GitHub

When attaching to this board I can not read all the memory regions,
Specifically AXIRAM, SRAM1, SRAM2, SRAM4 (possibly others)

running in verbose mode I noticed the regions missing from the XML output

2021-07-10T23:55:34 DEBUG gdb-server.c: send: m<?xml version="1.0"?><!DOCTYPE memory-map PUBLIC "+//IDN gnu.org//DTD GDB Memory Map V1.0//EN" "http://sourceware.org/gdb/gdb-memory-map.dtd"><memory-map> <memory type="rom" start="0x00000000" length="0x100000"/> <memory type="ram" start="0x20000000" length="0x20000"/> <memory type="flash" start="0x08000000" length="0x100000"> <property name="blocksize">0x20000</property> </memory> <memory type="ram" start="0x40000000" length="0x1fffffff"/> <memory type="ram" start="0xe0000000" length="0x1fffffff"/> <memory type="rom" start="0x1ff00000" length="0x20000"/> <memory type="rom" start="0x1ffff800" length="0x10"/></memory-map>

RM RM0468 page 133 has the following

0x38800000 -
0x38800FFF Backup SRAM

0x38000000 -
0x38003FFF SRAM4

0x30004000 -
0x30007FFF SRAM2

0x30000000 -
0x30003FFF SRAM1

0x24020000 -
0x2404FFFF RAM shared between ITCM and AXI

0x24000000 -
0x2401FFFF AXI SRAM

Doing an examine of SRAM4 produces the following output

2021-07-11T00:08:25 ERROR gdb-server.c: cannot recv: -2 2021-07-11T00:08:25 DEBUG common.c: *** stlink_run *** 2021-07-11T00:08:25 DEBUG common.c: *** stlink_read_reg 2021-07-11T00:08:25 DEBUG common.c: (16) *** 2021-07-11T00:08:25 DEBUG usb.c: r_idx (16) = 0x61000000

I have another board (STM32H743 NUCLEO-144) that has these same regions + more and these reads work. I noticed in the XML output it included these other regions. Looking in gdb-server.c, I do not see a mapping for this chipid and it seems to be using the default.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4