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++ using STM32

Hello!
I have the following problem:
- I have used some sample code provided by ST from which I was able to
compile and run the graphic display demonstration (with ST logo and butterfly
animation).
- I have added a class for the LCD, which takes care of the whole initialization
and until here everything works fine, the code that was in main() is now in the
LCD class file, but it doesn’t cause any problem.

Now here is the problem:
- I wanted to add a class in stm32469i_discovery_lcd.h / .cpp.
Just to make it simple, I first added this
class Brol {
public:
Brol(){}
virtual ~Brol(){}
protected:
private:
};
I have put it outside of the ifdef cplusplus extern “C” area, but the IDE
says that class not a type. Here is the exact message.
../Utilities/STM32469I-Discovery/stm32469i_discovery_lcd.h:154:1: error: unknown type name ‘class’
class Brol

Does anybody have an idea why class is understood in some parts and not in
some other parts of the program?

Thanks,

Pascal

Please test that compiler is C++ (g++), but not C (gcc). That is my guess.

 

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