cancel
Showing results for 
Search instead for 
Did you mean: 

SPC5Studio build failure

ssk
Associate II
Posted on January 19, 2015 at 10:45

Hello,

I am trying to build a project created using SPC5Studio Wizard. The steps used are File->New->SPC5Studio Wizard. Afte this I selected SPC560D-DIS as the product line. Then selected all the drivers with OSLess version. I selected all the available applications for this configuration. I tried building one of the application - SPC560Dxx OS-Less Test Application for Discovery, it is giving following errors,

- Symbol 'NULL' could not be resolved

- Symbol 'uint32_t' could not be resolved

- Symbol 'int32_t' could not be resolved

- Symbol 'uint16_t' could not be resolved

- Symbol 'uint8_t' could not be resolved

Similar errors for different defines used in main.c file are there. Few errors are for the functions used like osalThreadSleepMilliseconds().

Can you please help me resolve these? Is any project setting/configuration missing?

Your earliest help in this regard will be highly appreciated.

Thanks in advance for all your help.

Mike.

#virtual-timer #virtual-timer #spc5studio-build #spc56-examples
1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee
Posted on January 27, 2015 at 11:03

Hello Mike ,

CDT ''preprocessor'' built-in does not find the include PATH of the hightec compiler

It is just a preprocessor but not an issue for the compilation 😉

if you want to remove these errors

in

C/C++ general ==> Preprocesseur Include

you should add these 2 directories :

C:\SPC5Studio\eclipse\plugins\com.st.tools.spc5.tools.hightec_1.0.0.201306281422\hightec\lib\gcc\ppc-ht-eabi\4.6.3\include

C:\SPC5Studio\eclipse\plugins\com.st.tools.spc5.tools.hightec_1.0.0.201306281422\hightec\ppc-ht-eabi\include

cf screenshot

Best Regards

Erwan

________________

Attachments :

2015-01-27_110209.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006qWZu&d=%2Fa%2F0X0000000boO%2FhTDK6GqLn4AoLqSUsLyPRSN0FYQZ2ysQPYEMOozlhZQ&asPdf=false

View solution in original post

18 REPLIES 18
ssk
Associate II
Posted on January 21, 2015 at 11:03

Is it required to create the example code projects keeping the default location for the path? I came across one of posts on this forum mentioning the importance of default workspace path. Is this the reason for failing to build the example codes when created with different path?

Thanks in advance for any help.

Mike.
ssk
Associate II
Posted on January 23, 2015 at 12:56

I an new user for SPC series MCU and also for its toolchain. I am using SPC560D30L3 series with SPC5Studio for my project. I am going through different posts on this forum to understand the issues you all are facing. I am trying to understand the example codes as well mentioned in respective posts. I am finding it difficult to locate/find the source files mentioned in few of the posts. e.g one post mentions about a file 'hal_lld.c' for knowing the vector handlers. I tried locating this file but was unable to. Please clarify what am I missing? Am I required to build all the examples? I tried that as well but still not able to locate it. Please guide me.

Thanks for your any help.

Mike.
Erwan YVIN
ST Employee
Posted on January 27, 2015 at 11:03

Hello Mike ,

CDT ''preprocessor'' built-in does not find the include PATH of the hightec compiler

It is just a preprocessor but not an issue for the compilation 😉

if you want to remove these errors

in

C/C++ general ==> Preprocesseur Include

you should add these 2 directories :

C:\SPC5Studio\eclipse\plugins\com.st.tools.spc5.tools.hightec_1.0.0.201306281422\hightec\lib\gcc\ppc-ht-eabi\4.6.3\include

C:\SPC5Studio\eclipse\plugins\com.st.tools.spc5.tools.hightec_1.0.0.201306281422\hightec\ppc-ht-eabi\include

cf screenshot

Best Regards

Erwan

________________

Attachments :

2015-01-27_110209.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006qWZu&d=%2Fa%2F0X0000000boO%2FhTDK6GqLn4AoLqSUsLyPRSN0FYQZ2ysQPYEMOozlhZQ&asPdf=false
Erwan YVIN
ST Employee
Posted on January 27, 2015 at 11:05

my.st.com has rejected my attachment

Screenshot inside

Best regards

Erwan

________________

Attachments :

2015-01-27_110209.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006qWUC&d=%2Fa%2F0X0000000boJ%2FE0UCAGycg9FTeZs86IND8HPgxT3OI_.VFoJjv0by8sw&asPdf=false
ssk
Associate II
Posted on January 28, 2015 at 14:51

Thanks Erwan for the reply.

Mike.

ssk
Associate II
Posted on February 09, 2015 at 10:51

Hello,

For two of the test applications,

1. SPC560Dxx OS-Less CAN Test Application and 

2. SPC560Dxx OS-Less CAN Test Application for Discovery,

when tried to build, giving an error as function 'osalVTSet' is missing. I tried locating it for the workspace but not found. Whihc file holds this function? What inclusion is required for it?

Thanks in advance for your earliest reply.

Mike.
Erwan YVIN
ST Employee
Posted on February 17, 2015 at 15:12

Hello Mike ,

Could you confirm your SPC5Studio version ?

OSAL compilation issue has been corrected in the last version.

Best regards

                   Erwan

ssk
Associate II
Posted on February 18, 2015 at 05:57

Hello Erwan,

I am using SPC5Studio v3.3.1.

I am waiting for your help to get the latest version as the PC (with SPC5Studio installed on it) do not have web connectivity to download the latest ver.

Thanks.

Mike.

ssk
Associate II
Posted on February 25, 2015 at 15:11

Hello Erwan,

I am using SPC5Studio v3.4.2. I am still facing the error as function osalVTSet is missing. I am attaching the test application herewith. Please clarify.

Thanks.

Mike.

________________

Attachments :

SPC560Dxx_OS-Less_CAN_Test_Application.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006qYYt&d=%2Fa%2F0X0000000bp2%2F4.6WnU_kJjlrjDCzrTBqgv4tpYwncpPTu33nFJs3fx4&asPdf=false