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


problems with uint8_t, uint16_t and all others ----> (unknown type name 'uint8_t') when I compile

Hello,

I am french, sorry if the text is not clear.

I have create a STM32 project with STM32CubeMX and generate code for AC6 workbench. I use the STM32F302 Nucleo64 board from ST
The project has been compile with success in AC6.

I want to import some structures and variables from one header that i have use on STM8S105C4 . exemple herunder.
when I compile , I have many errors due to ---> unknown type name ‘int8_t’ or same for uint16_t and uint32_t.

------------------------
extern struct Memory_write_struct
{
uint8_t adresse; // addr 00
uint8_t nbbytes; // 1 à 128bytes max pour une page
uint16_t subaddr ; // adresse de départ d’écriture
uint8_t mois; //
uint8_t date; //
uint8_t heure; //
uint8_t minute; //
int8_t seconde; //
int16_t TempC ; // remontée temperature
int16_t Rh ; // remontée humidité
uint32_t Pression; // remontée pression
};
-----------------------

I dont understand why this type is unknown in STM32 ??

thanks for your answers.

Joël

Hi Joël,

Maybe it is just a standard header missing.
Check if the stdin.h is included in your code.

BR and Happy New Year,
Elliot

Hi Elliot,

you are right. one header is missing.I have added #include

  1. include
  2. include
  3. include


thanks.

Joël


Hi Elliot,

you are right. one header is missing.I have added stdint.h

include stdint.h
include string.h
include stdio.h

thanks.

Joël