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


Cannot compile simplest project

Hi ! I create simplest project:
C-project for Ac6 STM32 MCU GCC
Series: STM32F4
Board: STM32F407G-DISC1
No firmware (to simplify, when I select StdPeriph or Cube HAL, result the same)

Path to SystemWorkbench is standart: C:\Ac6\SystemWorkbench\
Path to workspace: C:\Projects
Project name: test

I.e. all paths not contains whitespaces or other odd symbols.
When I try to build, see in console:
=====
14:57:37 **** Build of configuration Debug for project test ****
make all
process_begin: CreateProcess(NULL, echo “Building file: ../startup/startup_stm32.s”, ...) failed.
make (e=2): Не удается найти указанный файл.

make: *** startup/startup_stm32.o Error 2

14:57:37 Build Finished (took 197ms)
=====

I already saw talk about the same error - http://www.openstm32.org/forumthread241Question
But there error was with project path, includes whitespaces. All my paths does not includes whitespaces. But I have the same error.

Can somebody help ?

Regards
Eugene

Hi it is I’m once more :-)
Yet another bug.
I install SystemWorkbench on linux (Debian 8 64-bit).
Test project (with StdPeriph) was compiled well. But when I try to download binary to board and debud, I got message:
===
Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:3333

Error message from debugger back end:
localhost:3333: Время ожидания соединения истекло.
localhost:3333: Время ожидания соединения истекло.
===

Red/green LED near mini-usb slot (it shows wether board connected) not blinks and lights with red only. I tried different settings, but result was the same :-(

Finally I install and config GNU ARM C/C++ OpenOCD Debugging from http://gnuarmeclipse.sourceforge.net/updatesQuestion, as describes in http://ctrl-v.biz/blog/8Question (sorry, article in Russian language). With OpenOCD Debugging debugger works well.

In this way I have:
1) Project for STMF407-DISCOVERY automatically creates wit all necessary external dependences and settings (configuring procedure in http://ctrl-v.biz/blog/8Question very-very awful :-( )
2) Project builds without errors
3) Project downloads to board
4) Project executes under debugger.

But at first I use another debugging plugin (GNU ARM C/C++ OpenOCD Debugging), and at second, I still cannot build project with Windows version.

Can somebody help ?


Hi again ! :-)
Noboby want answer me :-( But I find the next bug:
File startup_stm32.s which SystemWorkbench places into StdPeriph projects is incorrect. It contains only basic, minimal interrupt handlers table. And if your program uses interrupts, it gets exception UsageFault_Handler. Correct startup file with all defined interrupt handlers startup_stm32f4xx.s is in ./STMF407-DISCOVERY/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Source/Templates/gcc_ride7 in standart library from ST.

Now the most interest. I try to find file named “startup_stm32.s” in ~/.ac6/SW4STM32/firmwares (linux distribution), to change by hand it content to correct one. And I can not find it !!! But I find there folder ./SW4STM32/firmwares/STM32F4xx_DSP_StdPeriph_Lib_V1.6.1/Libraries/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7 which contains correct startup file startup_stm32f40xx.s !

So help me please, what must I do, to make SystemWorkbench to place correct startup to project automatically ? Of course I can do it by hand. But it is better when IDE do it itself.

P.S. Despite of many bugs (how many them I’ll find in future ! ) great thank for developers ! SystemWorkbench is the only free software, which I make to work without many troubles (under linux. I still cannot do it for windows). Now I use also Atollic TrueStudio (windows), but it is not free.


 

Newest Forum Posts

  1. SPI on Nucleo_STMH533RE by royjamil, 20:13
  2. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  3. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  5. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  6. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  8. Build a project in "release" mode by tang, 2025-02-20 10:36
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35
  10. Fail to debug in Win 11 C/C++ by mortenlund, 2024-12-26 20:27

Last-Modified Blogs