Skip to content

unable load back hex file dumped from address above 0x80000000, error from Memory Inspector: Could not apply memory from 'file.hex': Address passed to MemoryMap is negative #172

@madalinbucur

Description

@madalinbucur

Working on a IMXRT1170 board, I want to apply memory from file to an address that is above 0x80000000.
The address seems to be interpreted as signed and I get an error from memory inspector "Could not apply memory from 'file.hex': Address passed to MemoryMap is negative".

Steps to reproduce the behavior:

  1. Start debug session
  2. Open memory view at a certain address above 0x80000000, i.e. 0x800b5dc0
  3. Store memory to file, I save a hex file of 61440 bytes
  4. Try to load back same file (or another generated hex) to same address, I get an error:

Expected behavior: hex file loads without issues.

Using MCUXpresso

Image
  • OS: [Linux Ubuntu 22.04.1, Windows 11, using Remote Development packages]
  • GNU gdb (Ubuntu 12.1-0ubuntu1~22.04.2)
  • Zephyr SDK: 0.17.4
  • Cross-compiler: arm-zephyr-eabi-gcc 12.2.0 (C and C++)
  • Linker (GnuLd): ld.bfd 2.38

launch.json contents:
{
"configurations": [
{
"type": "mcuxpresso-debug",
"name": "Debug",
"request": "launch",
"cwd": "${workspaceFolder}",
"executable": {
"elf": ""
},
"stopAtSymbol": "main",
"probeSerialNumber": "1067662867",
"isAttach": false,
"skipBuildBeforeDebug": false,
"gdbInitCommands": [
"set remotetimeout 600",
"set debug-file-directory",
"set non-stop off"
],
"gdbServerConfigs": {
"linkserver": {},
"segger": {},
"pemicro": {}
},
"showDevDebugOutput": "none"
}
]
}

Debug Console writes this on memory save, nothing on memory load:

Reading 32768 bytes @ address 0x800B5DC0
Reading 28672 bytes @ address 0x800BDDC0

Reading 32768 bytes @ address 0x800B5DC0
Reading 28672 bytes @ address 0x800BDDC0

Already tried to report this in the wrong place: Marus/cortex-debug#1225

0x800b5dc0_61440.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions