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


fixed mcu type per project

The mcu type and board is greyed and not editable after project generation.

http://s3.postimg.org/jwdmiy903/SW4_STM32_mcu_select.pngQuestion

from my undertanting the board is just linked to some symbol (that can be changed by hand )
Cpu type inderectly set compile flags ie
“-mcpu=cortex-m0plus” or -“-mcpu=cortex-m4 ”

ok It make sense that inital value match the initial generated code and selection .
I can undertand beginer user should not play with that but advanced user need this.

As is it is impossible to copy export and reuse project to different mcu type
It is also impossile to have project with multiple configuration targerting different mcu.
Ok ther’s quite a lot of extra dependencies on cpu/mcu type to take care about but it’s manageable (include path and hal src set per configuration and build variable)

I’ll apreciate that mcu could be set in c/c++ compiler tab or MCU Settings tabs (at least what passed to compiler type I don’t care much if board is greyed as that can be changed in c/c++ path & symbol)

Rigth now i had to edit .cproject and change it that by hand

or value=”STM32F401RETx”

Hi,

You can change the board and the mcu in Properties > C/C++ Build > Settings > Target tab. But as you said, the symbols and dependencies need to be changed by youself.

Hope it answer your need.

Regards,
Kevin.


Thanks i see the tab but look like it has no effect
even if change the mcu family and type it always turn back to inital value (.cproject change seam to realy take effect)
and build is always perform usign intial mcu type

the warning seam appropriate ;)
Changing target on existing executable or static library C/C+ + project is highly NOT recommanded, dependencies and options might not be valid anymore. You have to manually reconfigure the project.


I don’t understand why it has no effect for you. I just retried and it works for me.
Did you push on the “Apply” button to reconfigure the project ?

Regards,
Kevin.


i do not have aplly button only ok/cancel?
obviously i use ok;)

http://s24.postimg.org/xczuv07n9/SW4_STM32_mcu_target.pngQuestion

i’m on win7-64 eclispe luna plugin detail below

ARM Compiler for MCU (for Windows 32 bits) 1.1.0.201503101257 fr.ac6.feature.mcu.externaltools.armnone.win32.feature.group Ac6
Eclipse IDE for C/C++ Developers 4.4.1.20150109-0740 epp.package.cpp null
External Tools for Windows (32 bits) 1.1.0.201503121115 fr.ac6.feature.mcu.externaltools.win32.feature.group Ac6
GNU ARM C/C++ Cross Compiler 1.12.1.201412191510 ilg.gnuarmeclipse.managedbuild.cross.feature.group Liviu Ionescu
GNU ARM C/C++ Generic Cortex-M Project Template 1.2.3.201412191510 ilg.gnuarmeclipse.templates.cortexm.feature.group Liviu Ionescu
GNU ARM C/C++ OpenOCD Debugging 2.1.1.201412191510 ilg.gnuarmeclipse.debug.gdbjtag.openocd.feature.group Liviu Ionescu
GNU ARM C/C++ STM32Fx Project Templates 2.2.3.201412191510 ilg.gnuarmeclipse.templates.stm.feature.group Liviu Ionescu
OpenOCD (for Windows 32 bits) 1.1.0.201503101257 fr.ac6.feature.mcu.externaltools.openocd.win32.feature.group Ac6
OpenSTM32 IDE 1.1.0.201503101252 fr.ac6.feature.mcu.ide.feature.group Ac6
OpenSTM32 Linker Script editor 1.1.0.201503101252 fr.ac6.feature.mcu.ldscript.feature.group Ac6
OpenSTM32 Remote debugging support 1.1.0.201503121115 fr.ac6.feature.mcu.debug.feature.group Ac6
STM32CubeMX 4.6.0.201501201329 com.st.microxplorer.feature.group STMicroelectronics


A project with no board selected might not be supported yet.

Kevin.


Thanks that was it Without selecting a board no way to change cpu type .
Any plan to get this fixed ?

I noticed changing type is not causing a clean or rebuild of object only link is oden again
maybe a missing a make dpedencies ?


 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  2. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  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. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  10. Build a project in "release" mode by tang, 2025-02-20 10:36

Last-Modified Blogs