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


CubeMX BUG report: CubeMX generated projects ALWAYS cause error when uploading via SW4STM32

Hi Ac6,

CubeMX generates projects and always concatinates project names with ’ Configuration’. This is bad and confuses the openOCD upload command interpreter.

When flashing (aka uploading), the ’ Configuration’ part ALWAYS results in errors because openOCD command interpreter does not accept blanks in filenames.

When uploading via SW4STM32 eclipse generates a command line as follows: /home/benoit/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.openocd.linux32_1.3.0.201507241119/tools/openocd/bin/openocd -f STM32F103C8T6_minimalsystem_PC13LED.cfg -s “/home/benoit/workspaceSTM32Fxx/PC13LED_stm32f103c8t6/SW4STM32/PC13LED_stm32f103c8t6 Configuration” -s /home/benoit/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.debug_1.3.0.201507241045/resources/openocd/scripts -c “program Debug/PC13LED_stm32f103c8t6 Configuration.elf verify exit”.

Because of the blank between projectname and ‘Configuration.elf’, ‘Configuration.elf’ is seen as a separate command argument. Hence the command interpreter does not understand ‘Configuration.elf’ as an argument. Hence the argument error.

Please completely eliminate the ’ Configuration’ concatination or replace it by ‘_Configuration’ in CubeMX. Do this and your openOCD implementation in SW4STM32 will manage the uploading of compiled CubeMX projects flawlessly. CubeMX is a promissing tool! Don’t squander it.

As long as Ac6 does not correct this filenaming problem in the next version of CubeMX, developers using CubeMX generated code will ALWAYS have to manually truncate the elf filename by cutting off the ’ Configuration’ part.

As long as Ac6 does not correct this filenaming problem autodidacts will continuously and unnecessarily suffer annoying ‘illegal arguments’ errors when uploading simple tryouts starting with CubeMX generated projects and clog the forum.

Greets!
Ben

France

Hi Ben,

I apologize for the inconvenience; however Ac6 is not responsible of the CubeMX tool; we report this problem several months ago to ST. A fix should be in an upcoming version of CubeMX but, in the mean time, you should rename the build artifact name to eliminate the ” Configuration” part, as indicated on Importing a STCubeMX generated project.

Best regards,

Bernard (Ac6)



stm32f3xx_hal_i2c.c
/* Disable ERRI, TCI, STOPI, NACKI, ADDRI, RXI, TXI interrupt */
__HAL_I2C_DISABLE_IT(hi2c,I2C_IT_ERRI | I2C_IT_TCI| I2C_IT_STOPI| I2C_IT_NACKI | I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_RXI );

I2C_IT_RXI | I2C_IT_RXI error
must be:
I2C_IT_RXI | I2C_IT_TXI ok

error generated cppchecklipse cppcheck 1.61


 

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