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:
- Start debug session
- Open memory view at a certain address above 0x80000000, i.e. 0x800b5dc0
- Store memory to file, I save a hex file of 61440 bytes
- 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
- 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
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:
Expected behavior: hex file loads without issues.
Using MCUXpresso
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