Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Missing `uint8_t` definitions when using Nucleo-64 L452RE and STM32Duino (Read 317 times)
Bambo
Member
***
Offline


Posts: 146
Location: Liverpool, UK
Joined: Jan 13th, 2020
Missing `uint8_t` definitions when using Nucleo-64 L452RE and STM32Duino
Feb 6th, 2020 at 1:24pm
Print Post  
Hi,

I have a strange problem when building using the STM32 nucleo-64 board, it doesn't seem to find the uint8_t types?


Quote:
Error compiling project sources
Debug build failed for project 'SAIN'
Current_Sensor_Hardware_Device_Unit_Test.cpp:1: from
 
error_source.h: 137:3: error: 'uint8_t' does not name a type
   137 |   uint8_t m_StackIndex = 0
   |   ^~~~~~



Here is the complete verbose build log: https://pastebin.com/ZjWD213H
« Last Edit: Feb 6th, 2020 at 2:01pm by Bambo »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Missing `uint8_t` definitions when using Nucleo-64 L452RE and STM32Duino
Reply #1 - Feb 6th, 2020 at 2:06pm
Print Post  
I see a lot of audio_manager.h errors in your build output.
  
Back to top
IP Logged
 
Bambo
Member
***
Offline


Posts: 146
Location: Liverpool, UK
Joined: Jan 13th, 2020
Re: Missing `uint8_t` definitions when using Nucleo-64 L452RE and STM32Duino
Reply #2 - Feb 6th, 2020 at 2:08pm
Print Post  
Tim@Visual Micro wrote on Feb 6th, 2020 at 2:06pm:
I see a lot of audio_manager.h errors in your build output.


Yeah i'm in the process of fixing these bugs, but the uint8_t type not being found is a bit strange right?
  
Back to top
 
IP Logged
 
Bambo
Member
***
Offline


Posts: 146
Location: Liverpool, UK
Joined: Jan 13th, 2020
Re: Missing `uint8_t` definitions when using Nucleo-64 L452RE and STM32Duino
Reply #3 - Feb 6th, 2020 at 2:10pm
Print Post  
Also sorry to bother you but how do i add additional includes to the project without them disappearing? One of the libraries i'm using can't find an include.
« Last Edit: Feb 6th, 2020 at 2:11pm by Bambo »  
Back to top
 
IP Logged
 
Bambo
Member
***
Offline


Posts: 146
Location: Liverpool, UK
Joined: Jan 13th, 2020
Re: Missing `uint8_t` definitions when using Nucleo-64 L452RE and STM32Duino
Reply #4 - Feb 6th, 2020 at 2:15pm
Print Post  
Here's an output log from the Arduino IDE too:

https://pastebin.com/qv1s6uvr
  
Back to top
 
IP Logged
 
Bambo
Member
***
Offline


Posts: 146
Location: Liverpool, UK
Joined: Jan 13th, 2020
Re: Missing `uint8_t` definitions when using Nucleo-64 L452RE and STM32Duino
Reply #5 - Feb 6th, 2020 at 2:23pm
Print Post  
intellisense can find all these types no problem, but the compilation can't find them
  
Back to top
 
IP Logged
 
Bambo
Member
***
Offline


Posts: 146
Location: Liverpool, UK
Joined: Jan 13th, 2020
Re: Missing `uint8_t` definitions when using Nucleo-64 L452RE and STM32Duino
Reply #6 - Feb 6th, 2020 at 2:25pm
Print Post  
It's also missing:

F() and String and other arduino specific types?
  
Back to top
 
IP Logged
 
Bambo
Member
***
Offline


Posts: 146
Location: Liverpool, UK
Joined: Jan 13th, 2020
Re: Missing `uint8_t` definitions when using Nucleo-64 L452RE and STM32Duino
Reply #7 - Feb 6th, 2020 at 4:02pm
Print Post  
It fixes itself if i add #include <cstdio> to the top of each file.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Missing `uint8_t` definitions when using Nucleo-64 L452RE and STM32Duino
Reply #8 - Feb 6th, 2020 at 8:36pm
Print Post  
So you have the same error when trying to build your code in the Arduino IDE?
  
Back to top
IP Logged
 
Bambo
Member
***
Offline


Posts: 146
Location: Liverpool, UK
Joined: Jan 13th, 2020
Re: Missing `uint8_t` definitions when using Nucleo-64 L452RE and STM32Duino
Reply #9 - Feb 7th, 2020 at 11:20am
Print Post  
Yeah it did show while compiling on the arduino IDE too, not sure why, it must be something to do with STM32Duino?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Missing `uint8_t` definitions when using Nucleo-64 L452RE and STM32Duino
Reply #10 - Feb 7th, 2020 at 11:31am
Print Post  
Yes that or with your code. I think it is best to submit a simple example project with any build issues otherwise we have to spend too much time guessing if it is your code or somethhing else. You mention "other files" so I assume you mean .cpp or .h files? I also assume you know how to #include the "arduino.h" and other core files.

To avoid confusion with intellisense there is a new release in the forum releases section with some intellisense improvements for stm32.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint