eclipse-cdt-cloud / eclipse-cdt-cloud/vscode-memory-inspector

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

Open
#172 3 comments 0 reactions 1 assignee Claimed by @madalinbucur View on GitHub
bug
Dominant language
TypeScript
Stars
17
Forks
25
Avg merge
3d 22h
Merged PRs (30d)
8

Description

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: https://github.com/Marus/cortex-debug/issues/1225

[0x800b5dc0_61440.zip](https://github.com/user-attachments/files/27959746/0x800b5dc0_61440.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.