Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

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