src/flash/nor/core.h defines:

struct flash_bank {

...
    uint32_t base; /**< The base address of this bank */
    uint32_t size; /**< The size of this chip bank, in bytes */

Obviously this is limiting on targets that have 64-bit addresses. It’s even
worse than that, because when using this eg. with

flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME 0x10040000

OpenOCD tells gdb about memory as follows:

Debug: 3878 1070 gdb_server.c:393 gdb_put_packet_inner(): sending
packet '$l<memory-map>
<memory type="ram" start="0x0" length="0x20000000"/>
<memory type="ram" start="0x20000000" length="0xe0000000"/>
</memory-map>
#f6'

The result is that gdb will refuse to access any address above 0xffff_ffff.
Is anybody working on this issue, or has some quick thoughts on how to best
address it? (Otherwise I’ll just start changing uint32_t types to
target_addr_t, and fix whatever errors the compiler points out.)

Tim
​
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to