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


Can't program STM32F103C8T6 chip in System Workbench

Hi everyone,

I’m fairly new to STM32s, and am using the CubeMX/System Workbench workflow on Ubuntu. I am able to successfully program an STM32F4 board from within System Workbench, but can’t for my STM32VLDISCOVERY board. First issue is that the chip in CubeMX is not the same as the one on my board; no worries, I just created a new project selecting the STM32F103C8Tx MCU in CubeMX as this is the chip on my board. I then open this in System Workbench, add a HAL I2C command into the I2C1 interrupt vector function (as I’m trying to use the STM32F103 board as a I2C slave to the STM32F4 I2C master), build, and then attempt to Program Chip. Unfortunately this does not work, I get the following output:

01:31:58 **** Programming project F103C8Tx_enc_count on chip ****
/home/seeyou/Tools/STMWorkbench/plugins/fr.ac6.mcu.externaltools.openocd.linux64_1.14.0.201705091103/tools/openocd/bin/openocd -f stm32.flash.2488537720185710377.cfg -s /home/seeyou/Documents/stcubemx_projects/F103C8Tx_enc_count/F103C8Tx_enc_count -s /home/seeyou/Tools/STMWorkbench/plugins/fr.ac6.mcu.debug_2.0.0.201705161428/resources/openocd/st_scripts -c "program Debug/F103C8Tx_enc_count.elf verify reset exit" 
Open On-Chip Debugger 0.10.0-dev-00278-ga53935e-dirty (2017-05-09-09:16)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 4000 kHz
adapter_nsrst_delay: 100
Info : clock speed 4000 kHz
Error: open failed (no matching adapter found)
in procedure 'program' 
in procedure 'init' called at file "embedded:startup.tcl", line 473
in procedure 'ocd_bouncer'
** OpenOCD init failed **
shutdown command invoked


01:31:58 Build Finished (took 118ms)


I have attempted changing the ‘Board’ in the Properties >> C/C++ Build >> Settings >> Target menu, and get the same result for all MCUs, except for if I select the board as STM32VLDISCOVERY, which gives the following output instead:

01:33:29 **** Programming project F103C8Tx_enc_count on chip ****
/home/seeyou/Tools/STMWorkbench/plugins/fr.ac6.mcu.externaltools.openocd.linux64_1.14.0.201705091103/tools/openocd/bin/openocd -f stm32.flash.5789452468013495987.cfg -s /home/seeyou/Documents/stcubemx_projects/F103C8Tx_enc_count/F103C8Tx_enc_count -s /home/seeyou/Tools/STMWorkbench/plugins/fr.ac6.mcu.debug_2.0.0.201705161428/resources/openocd/st_scripts -c "program Debug/F103C8Tx_enc_count.elf verify reset exit" 
Open On-Chip Debugger 0.10.0-dev-00278-ga53935e-dirty (2017-05-09-09:16)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
embedded:startup.tcl:21: Error: Unknown param: 
, try one of: -irlen, -irmask, -ircapture, -enable, -disable, -expected-id, or -ignore-version
in procedure 'script' 
at file "embedded:startup.tcl", line 60
at file "stm32.flash.5789452468013495987.cfg", line 28
in procedure 'swj_newdap' called at file "/home/seeyou/Tools/STMWorkbench/plugins/fr.ac6.mcu.debug_2.0.0.201705161428/resources/openocd/st_scripts/target/stm32f1x.cfg", line 65
in procedure 'hla' called at file "/home/seeyou/Tools/STMWorkbench/plugins/fr.ac6.mcu.debug_2.0.0.201705161428/resources/openocd/st_scripts/target/swj-dp.tcl", line 28
in procedure 'ocd_bouncer' 
at file "embedded:startup.tcl", line 21

01:33:29 Build Finished (took 110ms)


Any help or direction to a tutorial on how to setup System Workbench would be greatly appreciated. Please ask if I need to supply more information. I have been searching but have found nothing, and am stumped as the STM32F4 simply worked from the get-go.

Thanks in advance,
LXL15

Hi,

Sorry but the STM32VLDISCOVERY board has an STlink V1 and SW4STM32 doesn’t support it.


 

Newest Forum Posts

  1. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 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