Failed to read memory at address

Sysprogs forums Forums VisualGDB Failed to read memory at address


This topic contains 1 reply, has 2 voices, and was last updated by  support 7 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #32912



    I’m new to visualGDB and trying to start with a blinking LED mbed project but I’m encountering the following error when I’m trying to run the program on the board.

    Error: 1282 5911 arm_adi_v5.c:561 mem_ap_read(): Failed to read memory at 0x20050004


    I’m using a SDP K1 and the latest version of visualgdb.

    Thank you.

    • This topic was modified 7 months, 3 weeks ago by  MLei.



    This error means that gdb requests the device to read the memory at address 0x20050004 and the device responds with an error. The address would normally be computed by OpenOCD based on the debug settings (e.g. device script) and the ELF file produced by the mbed build.

    The best way to troubleshoot it would be to recheck the device datasheet whether it’s a valid memory address (e.g. part of RAM). If it is, please double-check the OpenOCD debug scripts and settings for possible settings preventing memory reads from working. If it is not, please recheck the ELF file and the debug settings for possible hints pointing to the incorrect address.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.