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


 

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