-
Notifications
You must be signed in to change notification settings - Fork 263
Open
Description
Description
I'm trying to debug the M4 core of the STM32MP157C using a JLINK probe. The chip is in ENGINEERING mode, so the A7 core shouldn't interfere. The project uses CMAKE.
When I use Stm32CubeIde the debug is done correctly. On startup, the breakpoint on the main is correct and step-by-step works.
When I use VScode with cortex-debug, I can have a breakpoint on the startup.s but once I do a run or a step by step, the chip goes into hard fault (PC = 0x08).
Given that the 2 configurations use exactly the same tools, I wonder if the problem might be with the cortex-debug plugin?
Thanks for your support.
Environment
- Cortex-Debug Version 1.12.1
- OS: Linux Ubuntu 24.10
- GDB Version: stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.jlink.linux64_2.4.0.202501261557
- Compiler Toolchain Version: stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug JLink",
"cwd": "${workspaceRoot}",
"executable": "/home/user/repo/ceva_4dot0_needleless_stm32mp157c_m4_cmake/build-debug_mg_lnx/ceva_4dot0_needleless_stm32mp157c_m4_cmake.elf", // CMake.
// "executable": "/home/user/app/cubeIdeWorkspace/debugger_with_cubeIde_cmake/build/ceva_4dot0_needleless_stm32mp157c_m4_cmake.elf", // CubeIde.
"request": "launch",
"type": "cortex-debug",
"servertype": "jlink",
"device": "STM32MP15xx_M4",
"interface": "swd",
// "preLaunchTask": "CMake: build",
"runToEntryPoint": "main",
// "breakAfterReset" : true,
// "liveWatch": {
// "enabled": true,
// "samplesPerSecond": 4
// },
"showDevDebugOutput": "raw",
"swoConfig": {
"enabled": false,
},
"serverArgs": [
"-speed", "4000", // kHz.
"-vd", // Verify download.
],
"numberOfProcessors": 2,
"targetProcessor": 0, // 0 = M4.
}
]
}
cortex-debug Console
Cortex-Debug: VSCode debugger extension version 1.12.1 git(652d042). Usage info: https://github.com/Marus/cortex-debug#usage
"configuration": {
"name": "Debug JLink",
"cwd": "/home/user/repo/ceva_4dot0_needleless_stm32mp157c_m4_cmake",
"executable": "/home/user/repo/ceva_4dot0_needleless_stm32mp157c_m4_cmake/build-debug_mg_lnx/ceva_4dot0_needleless_stm32mp157c_m4_cmake.elf",
"request": "launch",
"type": "cortex-debug",
"servertype": "jlink",
"device": "STM32MP15xx_M4",
"interface": "swd",
"runToEntryPoint": "main",
"showDevDebugOutput": "raw",
"swoConfig": {
"enabled": false,
"source": "probe",
"decoders": []
},
"serverArgs": [
"-speed",
"4000",
"-vd"
],
"numberOfProcessors": 2,
"targetProcessor": 0,
"__configurationTarget": 6,
"gdbServerConsolePort": 55878,
"pvtAvoidPorts": [],
"chainedConfigurations": {
"enabled": false
},
"debuggerArgs": [],
"rttConfig": {
"enabled": false,
"decoders": []
},
"graphConfig": [],
"preLaunchCommands": [],
"postLaunchCommands": [],
"preAttachCommands": [],
"postAttachCommands": [],
"preRestartCommands": [],
"postRestartCommands": [],
"preResetCommands": [],
"postResetCommands": [],
"serverpath": "/opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.jlink.linux64_2.4.0.202501261557/tools/bin/JLinkGDBServer",
"toolchainPath": "/opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/",
"toolchainPrefix": "arm-none-eabi",
"gdbPath": "/opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/arm-none-eabi-gdb",
"objdumpPath": "/opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/arm-none-eabi-objdump",
"extensionPath": "/home/user/.vscode/extensions/marus25.cortex-debug-1.12.1",
"registerUseNaturalFormat": true,
"variableUseNaturalFormat": true,
"pvtVersion": "1.12.1",
"__sessionId": "4b00fcdf-afb0-408a-b3b9-56c545daab70",
"pvtShowDevDebugOutput": "raw"
}
Reading symbols from /opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/arm-none-eabi-objdump --syms -C -h -w /home/user/repo/ceva_4dot0_needleless_stm32mp157c_m4_cmake/build-debug_mg_lnx/ceva_4dot0_needleless_stm32mp157c_m4_cmake.elf
Reading symbols from /opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/arm-none-eabi-nm --defined-only -S -l -C -p /home/user/repo/ceva_4dot0_needleless_stm32mp157c_m4_cmake/build-debug_mg_lnx/ceva_4dot0_needleless_stm32mp157c_m4_cmake.elf
Launching GDB: /opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/arm-none-eabi-gdb -q --interpreter=mi2
1-gdb-version
Launching gdb-server: /opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.jlink.linux64_2.4.0.202501261557/tools/bin/JLinkGDBServer -singlerun -nogui -if swd -port 50000 -swoport 50002 -telnetport 50004 -device STM32MP15xx_M4 -speed 4000 -vd
Please check TERMINAL tab (gdb-server) for output from /opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.jlink.linux64_2.4.0.202501261557/tools/bin/JLinkGDBServer
Finished reading symbols from objdump: Time: 16 ms
-> =thread-group-added,id="i1"
-> ~"GNU gdb (GNU Tools for STM32 13.3.rel1.20240926-1715) 14.2.90.20240526-git\n"
-> ~"Copyright (C) 2023 Free Software Foundation, Inc.\n"
-> ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
-> ~"\nType \"show copying\" and \"show warranty\" for details.\n"
-> ~"This GDB was configured as \"--host=x86_64-linux-gnu --target=arm-none-eabi\".\n"
-> ~"Type \"show configuration\" for configuration details.\n"
-> ~"For bug reporting instructions, please see:\n"
-> ~"<https://www.gnu.org/software/gdb/bugs/>.\n"
-> ~"Find the GDB manual and other documentation resources online at:\n <"
-> ~"http://www.gnu.org/software/gdb/documentation/>.\n\n"
-> ~"For help, type \"help\".\n"
-> ~"Type \"apropos word\" to search for commands related to \"word\".\n"
-> 1^done
2-gdb-set mi-async on
-> 2^done
3-interpreter-exec console "set print demangle on"
Finished reading symbols from nm: Time: 27 ms
-> 3^done
4-interpreter-exec console "set print asm-demangle on"
-> =cmd-param-changed,param="print asm-demangle",value="on"
-> 4^done
5-enable-pretty-printing
-> 5^done
6-interpreter-exec console "source /home/user/.vscode/extensions/marus25.cortex-debug-1.12.1/support/gdbsupport.init"
-> 6^done
7-interpreter-exec console "source /home/user/.vscode/extensions/marus25.cortex-debug-1.12.1/support/gdb-swo.init"
-> =cmd-param-changed,param="language",value="c"
-> =cmd-param-changed,param="language",value="auto"
-> 7^done
8-interpreter-exec console "set output-radix 0xa"
-> ~"Output radix now set to decimal 10, hex a, octal 12.\n"
Output radix now set to decimal 10, hex a, octal 12.
-> 8^done
9-interpreter-exec console "set input-radix 0xa"
-> ~"Input radix now set to decimal 10, hex a, octal 12.\n"
Input radix now set to decimal 10, hex a, octal 12.
-> 9^done
10-file-exec-and-symbols "/home/user/repo/ceva_4dot0_needleless_stm32mp157c_m4_cmake/build-debug_mg_lnx/ceva_4dot0_needleless_stm32mp157c_m4_cmake.elf"
-> 10^done
11-target-select extended-remote localhost:50000
-> =thread-group-started,id="i1",pid="42000"
-> =thread-created,id="1",group-id="i1"
-> ~"0x00000008 in g_pfnVectors ()\n"
0x00000008 in g_pfnVectors ()
-> *stopped,frame={addr="0x00000008",func="g_pfnVectors",args=[],arch="armv7e-m"},thread-id="1",stopped-threads="all"
mi2.status = stopped
Program stopped, probably due to a reset and/or halt issued by debugger
-> 11^connected
12-interpreter-exec console "monitor halt"
-> 12^done
13-interpreter-exec console "monitor reset"
-> @"Resetting target\r\n"
Resetting target
-> 13^done
14-target-download
-> 14+download,{section=".isr_vector",section-size="920",total-size="1124904"}
-> 14+download,{section=".isr_vector",section-sent="920",section-size="920",total-sent="920",total-size="1124904"}
-> 14+download,{section=".text",section-size="86084",total-size="1124904"}
-> 14+download,{section=".text",section-sent="79680",section-size="86084",total-sent="80600",total-size="1124904"}
-> 14+download,{section=".rodata",section-size="11984",total-size="1124904"}
-> 14+download,{section=".ARM",section-size="8",total-size="1124904"}
-> 14+download,{section=".init_array",section-size="4",total-size="1124904"}
-> 14+download,{section=".fini_array",section-size="4",total-size="1124904"}
-> 14+download,{section=".data",section-size="1616",total-size="1124904"}
-> 14^done,address="0x10001564",load-size="100620",transfer-rate="1173408",write-rate="8385"
15-interpreter-exec console "monitor reset"
-> @"Resetting target\r\n"
Resetting target
-> 15^done
Returning dummy thread-id to workaround VSCode issue with pause button not working
Returning dummy stack frame to workaround VSCode issue with pause button not working: {"threadId":1,"startFrame":0,"levels":20}
16-break-insert -t --function main
-> 16^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x1000191a",func="main",file="/home/user/repo/ceva_4dot0_needleless_stm32mp157c_m4_cmake/CM4/Core/Src/main.c",fullname="/home/user/repo/ceva_4dot0_needleless_stm32mp157c_m4_cmake/CM4/Core/Src/main.c",line="78",thread-groups=["i1"],times="0",original-location="-function main"}
17-exec-continue --all
-> 17^running
-> *running,thread-id="all"
mi2.status = running
cortex-debug Terminal
[2025-03-13T08:31:19.366Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
/opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.jlink.linux64_2.4.0.202501261557/tools/bin/JLinkGDBServer -singlerun -nogui -if swd -port 50000 -swoport 50002 -telnetport 50004 -device STM32MP15xx_M4 -speed 4000 -vd
SEGGER J-Link GDB Server V8.12c Command Line Version
JLinkARM.dll V8.12c (DLL compiled Jan 22 2025 13:03:44)
Command line: -singlerun -nogui -if swd -port 50000 -swoport 50002 -telnetport 50004 -device STM32MP15xx_M4 -speed 4000 -vd
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 50000
SWO raw output listening port: 50002
Terminal I/O port: 50004
Accept remote connection: yes
Generate logfile: off
Verify download: on
Init regs on start: off
Silent mode: off
Single run mode: on
Target connection timeout: 0 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: STM32MP15xx_M4
Target device parameters: none
Target interface: SWD
Target interface speed: 4000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link V11 compiled Feb 20 2025 16:24:17
Hardware: V11.00
S/N: 821010761
Feature(s): GDB
Checking target voltage...
Target voltage: 3.30 V
Listening on TCP/IP port 50000
Connecting to target...
Halting core...
Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
GDB client (conn. 10) requested target.xml from GDB Server
Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x00000000
Read register 'r1' (4 bytes) from hardware: 0x00000000
Read register 'r2' (4 bytes) from hardware: 0x00000000
Read register 'r3' (4 bytes) from hardware: 0x00000000
Read register 'r4' (4 bytes) from hardware: 0x00000000
Read register 'r5' (4 bytes) from hardware: 0x00000000
Read register 'r6' (4 bytes) from hardware: 0x00000000
Read register 'r7' (4 bytes) from hardware: 0x00000000
Read register 'r8' (4 bytes) from hardware: 0x00000000
Read register 'r9' (4 bytes) from hardware: 0x00000000
Read register 'r10' (4 bytes) from hardware: 0x00000000
Read register 'r11' (4 bytes) from hardware: 0x00000000
Read register 'r12' (4 bytes) from hardware: 0x00000000
Read register 'sp' (4 bytes) from hardware: 0x00010000
Read register 'lr' (4 bytes) from hardware: 0xFFFFFFFF
Read register 'pc' (4 bytes) from hardware: 0x08000000
Read register 'xpsr' (4 bytes) from hardware: 0x00000001
Read 4 bytes @ address 0x00000008 (Data = 0xE7FEE7FE)
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x00000008)
Received monitor command: reset
Resetting target
Downloading 920 bytes @ address 0x00000000 - Verified OK
Downloading 16064 bytes @ address 0x10000000 - Verified OK
Downloading 15824 bytes @ address 0x10003EC0 - Verified OK
Downloading 16064 bytes @ address 0x10007C90 - Verified OK
Downloading 15824 bytes @ address 0x1000BB50 - Verified OK
Downloading 15904 bytes @ address 0x1000F920 - Verified OK
Downloading 6404 bytes @ address 0x10013740 - Verified OK
Downloading 11984 bytes @ address 0x10015048 - Verified OK
Downloading 8 bytes @ address 0x10017F18 - Verified OK
Downloading 4 bytes @ address 0x10017F20 - Verified OK
Downloading 4 bytes @ address 0x10017F24 - Verified OK
Downloading 1616 bytes @ address 0x10017F28 - Verified OK
Writing register 'pc' = 0x10001564
Received monitor command: reset
Resetting target
Reading 64 bytes @ address 0x10001900
Read 2 bytes @ address 0x1000191A (Data = 0xF36F)
Setting breakpoint @ address 0x1000191A, Kind = 2, Type = THUMB, BPHandle = 0x0001
Starting target CPU...
cubeIde Console
SEGGER J-Link GDB Server V8.12c Command Line Version
JLinkARM.dll V8.12c (DLL compiled Jan 22 2025 13:03:44)
Command line: -port 50000 -s -device STM32MP15xx_M4 -endian little -speed 4000 -if swd -vd
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 50000
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: yes
Generate logfile: off
Verify download: on
Init regs on start: off
Silent mode: off
Single run mode: on
Target connection timeout: 0 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: STM32MP15xx_M4
Target device parameters: none
Target interface: SWD
Target interface speed: 4000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link V11 compiled Feb 20 2025 16:24:17
Hardware: V11.00
S/N: 821010761
Feature(s): GDB
Checking target voltage...
Target voltage: 3.30 V
Listening on TCP/IP port 50000
Connecting to target...
Halting core...
Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
GDB client (conn. 12) requested target.xml from GDB Server
Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x00000000
Read register 'r1' (4 bytes) from hardware: 0x00000000
Read register 'r2' (4 bytes) from hardware: 0x00000000
Read register 'r3' (4 bytes) from hardware: 0x00000000
Read register 'r4' (4 bytes) from hardware: 0x00000000
Read register 'r5' (4 bytes) from hardware: 0x00000000
Read register 'r6' (4 bytes) from hardware: 0x00000000
Read register 'r7' (4 bytes) from hardware: 0x00000000
Read register 'r8' (4 bytes) from hardware: 0x00000000
Read register 'r9' (4 bytes) from hardware: 0x00000000
Read register 'r10' (4 bytes) from hardware: 0x00000000
Read register 'r11' (4 bytes) from hardware: 0x00000000
Read register 'r12' (4 bytes) from hardware: 0x00000000
Read register 'sp' (4 bytes) from hardware: 0x00010000
Read register 'lr' (4 bytes) from hardware: 0xFFFFFFFF
Read register 'pc' (4 bytes) from hardware: 0x08000000
Read register 'xpsr' (4 bytes) from hardware: 0x00000001
Read 4 bytes @ address 0x00000008 (Data = 0xE7FEE7FE)
Received monitor command: ReadAPEx 0x2000000 0xF8
O.K.:0xE00FF003
Received monitor command: ReadMemAP 0x2000000 0xE00FFFD0 0x8 0x0
O.K.:0x00000000,0x00000000,0x00000000,0x00000000,0x00000050,0x00000004,0x0000000A,0x00000000
Connected to 127.0.0.1
GDB client (conn. 13) requested target.xml from GDB Server
Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x00000000
Read register 'r1' (4 bytes) from hardware: 0x00000000
Read register 'r2' (4 bytes) from hardware: 0x00000000
Read register 'r3' (4 bytes) from hardware: 0x00000000
Read register 'r4' (4 bytes) from hardware: 0x00000000
Read register 'r5' (4 bytes) from hardware: 0x00000000
Read register 'r6' (4 bytes) from hardware: 0x00000000
Read register 'r7' (4 bytes) from hardware: 0x00000000
Read register 'r8' (4 bytes) from hardware: 0x00000000
Read register 'r9' (4 bytes) from hardware: 0x00000000
Read register 'r10' (4 bytes) from hardware: 0x00000000
Read register 'r11' (4 bytes) from hardware: 0x00000000
Read register 'r12' (4 bytes) from hardware: 0x00000000
Read register 'sp' (4 bytes) from hardware: 0x00010000
Read register 'lr' (4 bytes) from hardware: 0xFFFFFFFF
Read register 'pc' (4 bytes) from hardware: 0x08000000
Read register 'xpsr' (4 bytes) from hardware: 0x00000001
Read 4 bytes @ address 0x00000008 (Data = 0xE7FEE7FE)
Received monitor command: reset
Resetting target
Received monitor command: reset
Resetting target
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x00000008)
Downloading 920 bytes @ address 0x00000000 - Verified OK
Downloading 16064 bytes @ address 0x10000000 - Verified OK
Downloading 15824 bytes @ address 0x10003EC0 - Verified OK
Downloading 16064 bytes @ address 0x10007C90 - Verified OK
Downloading 15824 bytes @ address 0x1000BB50 - Verified OK
Downloading 15904 bytes @ address 0x1000F920 - Verified OK
Downloading 6404 bytes @ address 0x10013740 - Verified OK
Downloading 11984 bytes @ address 0x10015048 - Verified OK
Downloading 8 bytes @ address 0x10017F18 - Verified OK
Downloading 4 bytes @ address 0x10017F20 - Verified OK
Downloading 4 bytes @ address 0x10017F24 - Verified OK
Downloading 1616 bytes @ address 0x10017F28 - Verified OK
Writing register 'pc' = 0x10001564
Read 4 bytes @ address 0xE000ED14 (Data = 0x00000200)
Read 4 bytes @ address 0x10001564 (Data = 0x4685480D)
Read 2 bytes @ address 0x10001564 (Data = 0x480D)
Reading register 'msp' = 0x00000100
Reading register 'psp' = 0x00000000
Downloading 4 bytes @ address 0xE000ED14 - Verified OK
Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x00000000
Read register 'r1' (4 bytes) from hardware: 0x00000000
Read register 'r2' (4 bytes) from hardware: 0x00000000
Read register 'r3' (4 bytes) from hardware: 0x00000000
Read register 'r4' (4 bytes) from hardware: 0x00000000
Read register 'r5' (4 bytes) from hardware: 0x00000000
Read register 'r6' (4 bytes) from hardware: 0x00000000
Read register 'r7' (4 bytes) from hardware: 0x00000000
Read register 'r8' (4 bytes) from hardware: 0x00000000
Read register 'r9' (4 bytes) from hardware: 0x00000000
Read register 'r10' (4 bytes) from hardware: 0x00000000
Read register 'r11' (4 bytes) from hardware: 0x00000000
Read register 'r12' (4 bytes) from hardware: 0x00000000
Read register 'sp' (4 bytes) from hardware: 0x00010000
Read register 'lr' (4 bytes) from hardware: 0xFFFFFFFF
Read register 'pc' (4 bytes) from hardware: 0x64150010
Read register 'xpsr' (4 bytes) from hardware: 0x00000001
Read 4 bytes @ address 0x10001564 (Data = 0x4685480D)
Read 2 bytes @ address 0x10001564 (Data = 0x480D)
Reading register 'msp' = 0x00000100
Reading register 'psp' = 0x00000000
Read 4 bytes @ address 0xE000EDFC (Data = 0x01000000)
Downloading 4 bytes @ address 0xE000EDFC - Verified OK
Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x00000000
Read register 'r1' (4 bytes) from hardware: 0x00000000
Read register 'r2' (4 bytes) from hardware: 0x00000000
Read register 'r3' (4 bytes) from hardware: 0x00000000
Read register 'r4' (4 bytes) from hardware: 0x00000000
Read register 'r5' (4 bytes) from hardware: 0x00000000
Read register 'r6' (4 bytes) from hardware: 0x00000000
Read register 'r7' (4 bytes) from hardware: 0x00000000
Read register 'r8' (4 bytes) from hardware: 0x00000000
Read register 'r9' (4 bytes) from hardware: 0x00000000
Read register 'r10' (4 bytes) from hardware: 0x00000000
Read register 'r11' (4 bytes) from hardware: 0x00000000
Read register 'r12' (4 bytes) from hardware: 0x00000000
Read register 'sp' (4 bytes) from hardware: 0x00010000
Read register 'lr' (4 bytes) from hardware: 0xFFFFFFFF
Read register 'pc' (4 bytes) from hardware: 0x64150010
Read register 'xpsr' (4 bytes) from hardware: 0x00000001
Read 4 bytes @ address 0x10001564 (Data = 0x4685480D)
Read 2 bytes @ address 0x10001564 (Data = 0x480D)
Reading register 'msp' = 0x00000100
Reading register 'psp' = 0x00000000
Reading 64 bytes @ address 0x10001900
Read 2 bytes @ address 0x1000191A (Data = 0xF005)
Setting breakpoint @ address 0x1000191A, Kind = 2, Type = THUMB, BPHandle = 0x0001
Starting target CPU...
...Breakpoint (set by 'GDB') reached @ address 0x1000191A
Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x00000210
Read register 'r1' (4 bytes) from hardware: 0x50060210
Read register 'r2' (4 bytes) from hardware: 0x481E0210
Read register 'r3' (4 bytes) from hardware: 0x25000010
Read register 'r4' (4 bytes) from hardware: 0x481E0210
Read register 'r5' (4 bytes) from hardware: 0x00000000
Read register 'r6' (4 bytes) from hardware: 0x00000000
Read register 'r7' (4 bytes) from hardware: 0x00000000
Read register 'r8' (4 bytes) from hardware: 0x00000000
Read register 'r9' (4 bytes) from hardware: 0x00000000
Read register 'r10' (4 bytes) from hardware: 0x00000000
Read register 'r11' (4 bytes) from hardware: 0x00000000
Read register 'r12' (4 bytes) from hardware: 0x00000000
Read register 'sp' (4 bytes) from hardware: 0xF8FF0310
Read register 'lr' (4 bytes) from hardware: 0x9B150010
Read register 'pc' (4 bytes) from hardware: 0x1A190010
Read register 'xpsr' (4 bytes) from hardware: 0x00000061
Removing breakpoint @ address 0x1000191A, Size = 2
Read 4 bytes @ address 0x1000191A (Data = 0xFD7FF005)
cubeIde DebuggerConsole
New UI allocated
GNU gdb (GNU Tools for STM32 13.3.rel1.20240926-1715) 14.2.90.20240526-git
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) 0x00000008 in g_pfnVectors ()
Temporary breakpoint 1, main ()
at /home/user/repo/ceva_4dot0_needleless_stm32mp157c_m4_cmake/CM4/Core/Src/main.c:78
78 mainApp_preHalInit();
(gdb)
Metadata
Metadata
Assignees
Labels
No labels