Skip to main content
RatheeshT
Associate III
January 18, 2021
Solved

SPC5 Studio v6.0 - warning/issue "Type 'uint32_t' could not be resolved

  • January 18, 2021
  • 5 replies
  • 6275 views

I have installed SPC5 Studio version 6.0 on my Windows 10 PC and compiled sample code.

When compiling the project , i got below warning/issue "Type 'uint32_t' could not be resolved"

Q1: Can you give the solution for this?

This topic has been closed for replies.
Best answer by Erwan YVIN

Hello Rthan ,

it is a preprocessor configuration issue.

You should configure CDT in order to pick stdint.h.

it is located in c:\SPC5Studio-6.0\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.XXXXXXXXX\toolchain\

Best Regards

Erwan

5 replies

Tesla DeLorean
Guru
January 18, 2021

Need to include a file that defines the type or do so yourself.

Should be in stdint.h shouldn't it?

Check what include trees you pull in via config files, etc.

Check the Include Paths and ordering the compiler is using.​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
RatheeshT
RatheeshTAuthor
Associate III
January 18, 2021

Thankyou for the quick response, I am new to SPC5 studio, so i am not aware of this much.

Pls find the attached screenshot for analyzing/understanding the issue in detail.

Pls give your input about this issue

Erwan YVIN
Erwan YVINBest answer
ST Employee
February 2, 2021

Hello Rthan ,

it is a preprocessor configuration issue.

You should configure CDT in order to pick stdint.h.

it is located in c:\SPC5Studio-6.0\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.XXXXXXXXX\toolchain\

Best Regards

Erwan

RatheeshT
RatheeshTAuthor
Associate III
March 25, 2021

Hi Erwan,

Thanks for your response.

I understands that it is preprocessor issue.

Can you guide me that what is CDT ? and how can i configure this on my project?

RatheeshT
RatheeshTAuthor
Associate III
April 9, 2021

Hi Erwan,

The above screenshot shows the property screen of the project.

Is CDT equal to PATH in above screen? or Guide me the procedure to CDT configuration?

PChia.2237
Senior
July 2, 2021

Hi, i am newbee too, but i have solve 'uint32_t, 'uint16_t' 'uint8_t doing:

Right click on SPC5XXXXXTestApplication ->Properties

Under C/C++ General->Path and Symbols

Selec Tab Includes, then GNU C->Add..

write C:\SPC5Studio-6.0\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.20200908161514\toolchain\include

I hope help somebody

Mike Lo
Associate
March 14, 2022

Really useful!!! TNX SO MUCH!!! you won the heven!!!

VGani.1
Associate III
July 5, 2021

Hi PChia.2237

I have the include you mentioned, but I still have an error. "Type 'bool' could not be resolved". Asking for includes <stddef.h>,<stdbool.h>.

Looking for any suggestions. Thanks in advance.

PChia.2237
Senior
July 5, 2021

Yes, the something with this folder:

C:\SPC5Studio-6.0\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.20200908161514\toolchain\lib\gcc\powerpc-eabivle\4.9.4\include

You welcome. The problem is for SPC5 Studio 6. Version 5.8 has no this type of problem.

Associate II
August 22, 2024

Thank you so much for the answer. It really helped. 

For others to refer to his solution, you can refer to the below screenshot. |

I added only one directory and it resolved: 

 

C:/SPC5Studio-6.0/eclipse/plugins/com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.20200908161514/toolchain/lib/gcc/powerpc-eabivle/4.9.4/include

 

asn_0-1724334471986.png