[STM32H735]: Can't access all device memory #1158
Labels
code/feature-request
code/feedback
component/st-util
os/windows
programmer/STLINK/V3
V3SET / V3MODS / V3MINI / V3MINIE / V3E / V3EC
status/resolved
status/resolved-verified
target/stm32h7
Milestone
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.
The text was updated successfully, but these errors were encountered: