LabVIEW Embedded

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 6 条)
7,573 次查看

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 项奖励
2 条消息(共 6 条)
7,569 次查看

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 项奖励
3 条消息(共 6 条)
7,561 次查看

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 项奖励
4 条消息(共 6 条)
7,539 次查看

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

0 项奖励
5 条消息(共 6 条)
7,531 次查看

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

0 项奖励
6 条消息(共 6 条)
7,326 次查看