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


missing 'Ac6 STM32 Debugging' Debug configuration in Debug perspective

Italy

Hi Giangiacomo, try at first to open debugger and report errors you experience:
get focus on project explorer then
point project name and click right button
select DebugAs-> Debug Configurations

When window pane open press Debug button on bottom then report what is on both problem pop up and console output too.
check picture, in this case error is fine, wrong CPU.

Also try the commands stlink-server and openocd at terminal, see if they where installed and executable too.
If they fail maybe execution right or USB access is not set.

Best regards
Roberto


... and this is Debug Configuration panel in System Workbench for STM32 that I’ve just installed on Linux box.

Here I can Debug with no effrort.

I’ll make do having both eclipse and System Workbench for STM32 and target debugging with System Workbench for STM32 only.

Not much of a problem here.

Giangiacomo

Italy

Hi Giangiacomo, this is fine but two more detail are expected from your side:
Debug tab configuration, check “software reset” and not “connect under reset”.
What happen when you press DEBUG button, as shown by me. Console output can be of help to pinpoint where it can fail debug process.
Check snapshot
Regards
Roberto

Ciao Roberto,
I’ve did as You said, see attached image,
still I cannot have printf in ‘Console’ of System Workbench for STM32 via ITM.

I defined __io_putchar function, overwriting weak definition, like this:

FENCEif !defined ( BSP_LCD_USE )
int __io_putchar (const char ch)
{
uint32_t ch_ = (uint32_t)ch;

return (int) ITM_SendChar ( ch_ );
}
FENCEendif

since my STM32F746-DISCOVERY board has an LCD, with LCD I don’t need it.

What can be done next to have debug printf on System Workbench for STM32 Console ?

Italy

Hi GianGiacomo, from your last word seems you solved first debug issue. (Access to debug hardware)

Second one, aka “ITM_Send_Char”, sorry I never used it on STM32, I plan to buy soon an LCD board like your then I can test how it work.
In cases close to your, I prefer UDP send than using SWO. I plan to start some test on LCD board near end of January.
Regards
Roberto

Hi Roberto,
You’re right, I can debug on Linux/Lubuntu 64-bit and I can go further.
Thank You,
Giangiacomo


 

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