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


C++ base class

HI,
I am beginning with STM32 and english is not my natural language.

I have created a new C++ project. In it I want to create classes. In the menu : New - class opens a window where we can give the name of the class, its source name ... I can’t have the ‘finish’ button active. In fact I think it want a base class. I click to ADD. It opens a new window, I uncheck ‘struct’, I write ‘*’ in the search section and I wait .... wait ....wait may be one hour without any result.

First question : is there a base class for STM32 development ? I mean a ‘super base class’ from who all other classes inherit.
Second question : if there is none, how can I create one ? I mean : I can write
‘public class my_base_class() { ...] in a .cpp file but can this class be recognize by the IDE ?

Jean in Grenoble France

Hi Jean,

There is not a base class for STM32 development.
To add a C++ class, right click on the project -> New -> Class:
Make sure to enter the right source folder (e.g projectname/src)
The class name (this will fill automatically the header and source files)
The finish button will be enabled as soon as you enter the class name.

You can also create manually the .cpp file, the IDE will automatically detect it as a source file if it was placed in a source folder (like projectname/src)

Regards,
Roy
Ac6

Hi Roy,

I did what you said. This time I got an error :
Folder ‘/GVC_TEST1_CCPP/Src’ is not a source folder.
As, in this folder, there are some .c files but no .cpp or .cc, I started a brand new project based on ‘STM32 cube file (.ioc) because I have one and then I got the error :

This file has been generated with STM32CubeMX version ‘5.6.1’.Your current STM32CubeMX version is ‘5.6.0’.
Please check for update: Help > Check for Updates

My cube version is 5.6.1; how can it find it is 5.6.0 ? I donwloaded the cube and ide the same day perhaps last week or the week before. What update must I do in cube or in IDE ?

Jean very upset and near to give up


 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 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