You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please find issue report I'm experiencing with coretx-debug v1.12.1 using it with
VSCode v1.88.1 under Ubuntu LTS v22.04 with NUCLEO-WL55JCx board
when trying to run \sample\basic\blinky demo from zephyr-sdk-0.16.5-1
Describe the bug
NUCLEO-WL55JCx is working fine with STM32CudeIDE, have updated STLINK debugger to V3J14M5.
Zephyr-SDK installation is working fine with FRDM-K64F boards with VSCode using MCUXpresso plugin.
I can also flash and manually GDB debug Blinky example on NUCLEO-WL55JCx board with west. west flash and west debug all work are expected using "openocd" version 0.11.0+dev-00728-gb6f95a16c (2024-02-17-23:51) from Zephyr SDK.
But I can't do source level debugging using cortex-debug neither with "stlink" nor with "openocd"
(gdb)
1-gdb-version
~"GNU gdb (Zephyr SDK 0.16.5-1) 12.1\n"
~"Copyright (C) 2022 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-build_pc-linux-gnu --target=arm-zephyr-eabi\".\n"
~"Type \"show configuration\" for configuration details.\n"
~"For bug reporting instructions, please see:\n"
~"<https://github.com/zephyrproject-rtos/sdk-ng/issues>.\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
Zephyr west debug output
--west debug: rebuilding
ninja: noworktodo.
--west debug: usingrunneropenocd--runners.openocd: OpenOCDGDBserverrunningonport3333; nothreadinfoavailableOpenOn-ChipDebugger0.11.0+dev-00728-gb6f95a16c (2024-02-17-23:51)
LicensedunderGNUGPLv2Forbugreports, read
http://openocd.org/doc/doxygen/bugs.html
Info : Theselectedtransporttookoverlow-leveltargetcontrol. TheresultsmightdiffercomparedtoplainJTAG/SWD
Info : DEPRECATEDtargeteventtrace-config; useTPIUevents {pre,post}-{enable,disable}
srst_onlyseparatesrst_nogatesrst_open_drainconnect_deassert_srstInfo : clockspeed500kHz
Info : STLINKV3J14M5 (APIv3) VID:PID 0483:374EInfo : Target voltage: 3.270839GNUgdb (ZephyrSDK0.16.5-1) 12.1Copyright (C) 2022FreeSoftwareFoundation, Inc.
LicenseGPLv3+: GNUGPLversion3orlater<http://gnu.org/licenses/gpl.html>Thisisfreesoftware: youarefreetochangeandredistributeit.
ThereisNOWARRANTY, totheextentpermittedbylaw.
Type"show copying"and"show warranty"fordetails.
ThisGDBwasconfiguredas"--host=x86_64-build_pc-linux-gnu --target=arm-zephyr-eabi".
Type"show configuration"forconfigurationdetails.
Forbugreportinginstructions, please see:
<https://github.com/zephyrproject-rtos/sdk-ng/issues>.FindtheGDBmanualandotherdocumentationresourcesonline at:
<http://www.gnu.org/software/gdb/documentation/>.Forhelp, type"help".
Type"apropos word"tosearchforcommandsrelatedto"word"...
Readingsymbolsfrom /home/XXXXXXX/zephyrproject/zephyr/build/zephyr/zephyr.elf...
Info : [stm32wlx.cpu0] Cortex-M4r0p1processordetectedInfo : [stm32wlx.cpu0] targethas6breakpoints, 4watchpoints
Info : startinggdbserverforstm32wlx.cpu0on3333Info : Listeningonport3333forgdbconnectionsTargetNameTypeEndianTapNameState------------------------------------------------------------------0*stm32wlx.cpu0hla_targetlittlestm32wlx.cpurunningtargethaltedduetodebug-request, current mode: Thread
xPSR: 0x41000000pc: 0x08000a6epsp: 0x20000c20Info : Listeningonport6333fortclconnections
Info : Listeningonport4444fortelnetconnectionsRemotedebuggingusing :3333Info : accepting 'gdb' connectionontcp/3333Info : deviceidcode=0x10036497 (STM32WLE/WL5x-Rev 'unknown' : 0x1003)
Info : RDPlevel0 (0xAA)
Info : flashsize=256kbytesInfo : flash mode : single-bank
Info : deviceidcode=0x10036497 (STM32WLE/WL5x-Rev 'unknown' : 0x1003)
Info : RDPlevel0 (0xAA)
Info : OTPsizeis1024bytes, baseaddressis0x1fff7000arch_cpu_idle () at /home/XXXXXXX/zephyrproject/zephyr/arch/arm/core/cortex_m/cpu_idle.S:139139cpsiei
Info : Unabletomatchrequestedspeed500kHz, using200kHzInfo : Unabletomatchrequestedspeed500kHz, using200kHztargethaltedduetodebug-request, current mode: Thread
xPSR: 0x01000000pc: 0x08000830msp: 0x20001040Loadingsectionrom_start, size0x138lma0x8000000Loadingsectiontext, size0x33d8lma0x8000138Loadingsection .ARM.exidx, size0x8lma0x8003510Loadingsectioninitlevel, size0x68lma0x8003518--Type<RET>formore, qtoquit, ctocontinuewithoutpaging--Loadingsectiondevice_area, size0xa0lma0x8003580Loadingsectionsw_isr_table, size0x1f0lma0x8003620Loadingsectionrodata, size0x308lma0x8003810Loadingsectiondatas, size0x5clma0x8003b18Loadingsectiondevice_states, size0x10lma0x8003b74Loadingsection .last_section, size0x4lma0x8003b84
Info : Unabletomatchrequestedspeed500kHz, using200kHzInfo : Unabletomatchrequestedspeed500kHz, using200kHztargethaltedduetodebug-request, current mode: Thread
xPSR: 0x01000000pc: 0x08000830msp: 0x20001040Startaddress0x08000830, loadsize15240Transferrate: 417bytes/sec, 1524bytes/write.
(gdb) runTheprogrambeingdebuggedhasbeenstartedalready.
Startitfromthebeginning? (yorn) yStartingprogram: /home/XXXXXXX/zephyrproject/zephyr/build/zephyr/zephyr.elf
Info : Unabletomatchrequestedspeed500kHz, using200kHzInfo : Unabletomatchrequestedspeed500kHz, using200kHztargethaltedduetodebug-request, current mode: Thread
xPSR: 0x01000000pc: 0x08000830msp: 0x20001040
I'm able to execute (gdb) run and see LED blinking
Any support or help is highly appreciated.
Thank You!
The text was updated successfully, but these errors were encountered:
VeniaminGH
changed the title
Fail source level debugging Zephyr Blinky build on NUCLEO-WL55JCx
Could not start GDB process while debugging Zephyr Blinky build on NUCLEO-WL55JCx
Apr 14, 2024
Dear All,
Please find issue report I'm experiencing with coretx-debug v1.12.1 using it with
VSCode v1.88.1 under Ubuntu LTS v22.04 with NUCLEO-WL55JCx board
when trying to run \sample\basic\blinky demo from zephyr-sdk-0.16.5-1
Describe the bug
NUCLEO-WL55JCx is working fine with STM32CudeIDE, have updated STLINK debugger to V3J14M5.
Zephyr-SDK installation is working fine with FRDM-K64F boards with VSCode using MCUXpresso plugin.
I can also flash and manually GDB debug Blinky example on NUCLEO-WL55JCx board with
west
.west flash
andwest debug
all work are expected using "openocd" version 0.11.0+dev-00728-gb6f95a16c (2024-02-17-23:51) from Zephyr SDK.But I can't do source level debugging using cortex-debug neither with "stlink" nor with "openocd"
To Reproduce
Steps to reproduce the behavior:
VSCode Terminal Output for "openocd" servertype
VSCode Termial Output for "stlink" servertype
Expected behavior
I expect to be able to do source level debugging of Zephyr blinky demo on NUCLEO-WL55 board but instead I'm getting this error:
Screenshots
Environment:
Please include
launch.json
VSCode workspace is literally followed this https://github.com/KozhinovAlexander/zephyr_vscode_workspace.
Below is the content of
launch.json
I added the following to
Zephyr.code-workspace
after reading #598, but it did not helped.Adding it to
launch.json
makes no difference.Attach text from
Debug Console
stlink server type output
openocd server type output
Both outputs are fundamentally the same
Additional context
Manual execution of of the following works as expected. I do get all symbols and version info
both produce about 50kb files
produce the following output
Zephyr
west debug
outputI'm able to execute (gdb) run and see LED blinking
Any support or help is highly appreciated.
Thank You!
The text was updated successfully, but these errors were encountered: