LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView gives "Invalid Declaration" errors

Hello there, I am trying to compile a "stm32f10x" project using old generic template project found on the forums (for example, here) and I have gotten around some errors.

 

 

however I am experiencing an error when compiling which says:

 

"

C:\Program Files\National Instruments\LabVIEW 2010\CCodeGen\include\os\rtx\LVDefs_plat.h(98): error:  #256: invalid redeclaration of type name "int8" (declared at line 157 of "C:\Program Files\National Instruments\LabVIEW 2010\CCodeGen\analysis\development\include\fundtypes.h")

Target not created
Status: Build failed.

"

 

I have tried commenting out the lines which declares the int8 variable, however by commenting one out it gives more errors  (as the type is used within the file)

 

I am using

-Windows 7

-National Instruments LabView 2010

-Keil uVision 4.14

-J-tag/J-link device

-STM32F103RB chip

 

 

 

Any help would be appreciated. thanks

 

 

 

0 Kudos
Message 1 of 6
(6,910 Views)

Hi PongoBeer,

 

There was a thread a while back that discussed this issue.  Have you seen this and tried the troubleshooting steps that were listed?  Also,  can you specify which file you commented out "int8" in?

 

 

Thanks

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 2 of 6
(6,906 Views)

hey there, i did try some of the things mentioned in the thread, however it was still not working

 

 

 

and I have tried commenting the declaration in both files, but each gave erros, however just now i have removed "stm32f10x_tim1" from the targetconfig file and the program seems to not come up with that error. however a new error has appeared that says:

 

 

[2:18:33 PM] Status: Error

linking...

.\Obj\LabVIEW.axf: Error: L6406E: No space in execution regions with .ANY selector matching stm32f10x.o(HEAP).

.\Obj\LabVIEW.axf: Error: L6407E: Sections of aggregate size 0x8000 bytes could not fit into .ANY selector(s).

 

Target not created

 

Status: Build failed.

0 Kudos
Message 3 of 6
(6,898 Views)

Hi Pongo,

 

Were you able to resolve this issue or are you still stuck?  If you were able to figure out, what did you do?

 

Have a great day,

 

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 4 of 6
(6,876 Views)

hey there, i am still stuck on this problem and haven't touched Labview at all ever since

0 Kudos
Message 5 of 6
(6,868 Views)

I have got the exact build error, has anyone got a solution?

0 Kudos
Message 6 of 6
(6,663 Views)