Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


Installing Segger J-Link in AC6 System Workbench

I am trying to install a Segger J-Link to work with my installed System Workbench, the aim is to migrate my development from a nucleo development board (L452RE) onto my target board.


My installation.
Ubuntu 14.04 LTS
AC6 System Workbench on Eclipse Neon.3 (4.6.3)

I have installed the Segger J-Link binaries and can connect to my target using a command line instance of the JLinkGDBServer.
I have followed as much of the instructions at https://gnu-mcu-eclipse.github.io/debug/jlink/Question that I was able, but have not been able to get the workbench installation to recognise the J-Link.


Is there anyone who has successfully configured a Ubuntu based Workbench to use the Segger J-Link?

I have made some progress. I have tested from the J-Link command line and everything works as expected.

System Workbench now recognises the J-Link device, now my problem is that when I choose debug the most recently compiled binary (.elf) is loaded to my target and the program starts. Debugging is not enabled, the program continues to run and the debug window displays the following messages.

MyProgram GDB SEGGER J-Link Debugging
JLinkGDBServer
gdb
Semihosting and SWV

The Debugger console displays the following:
MyProgram GDB SEGGER J-Link Debugging ${cross_prefix}gdb${cross_suffix}(???)
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.3) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
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 “x86_64-linux-gnu”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type “help”.
Type “apropos word” to search for commands related to “word”.
Warning: the current language does not match this frame.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00000000 in ?? ()

      • stack smashing detected ***: gdb terminated



I am still looking for any suggestions.


Quite a bit of text disappeared when I posted that last message. There must be some formatting process I am unaware of. Any thing inside “left arrow” and “right arrow” is not shown.

(terminated)MyProgram GDB SEGGER J-Link Debugging
(terminated, exit value: 0)JLinkGDBServer
(terminated, exit value: -1)gdb
(terminated, exit value: 0)Semihosting and SWV


Changing the GDB Client Setup, executable path in the debugger configuration from ${cross_prefix}gdb${cross_suffix} to a direct path to the executable arm-none-eabi-gdb appears to have solved my issues.

 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs