sal0w / CC3200-ili9341-LCD-display

CC3200 LCD/ TFT display ILI9341
https://www.integratedcircuitdesign.com/
1 stars 1 forks source link

ERRORs with grlib.h #1

Open 1sorgen opened 6 years ago

1sorgen commented 6 years ago

Hi,

I am using CC3200 interfacing ili9341-LCD. I have copied your project files and i am stuck with below ERRORs. Please help me how to resolve these issues.

"C:/TI/CC3200SDK_1.1.0/cc3200-sdk/grlib/grlib.h", line 59: error #20: identifier "int16_t" is undefined "C:/TI/CC3200SDK_1.1.0/cc3200-sdk/grlib/grlib.h", line 88: error #20: identifier "int32_t" is undefined "C:/TI/CC3200SDK_1.1.0/cc3200-sdk/grlib/grlib.h", line 180: error #20: identifier "uint8_t" is undefined "C:/TI/CC3200SDK_1.1.0/cc3200-sdk/grlib/grlib.h", line 793: error #20: identifier "bool" is undefined "C:/TI/CC3200SDK_1.1.0/cc3200-sdk/grlib/grlib.h", line 754: error #91: function returning function is not allowed "C:/TI/CC3200SDK_1.1.0/cc3200-sdk/grlib/grlib.h", line 754: error #170: a function type is not allowed here "C:/TI/CC3200SDK_1.1.0/cc3200-sdk/grlib/grlib.h", line 519: error #80: expected a type specifier

Thanks, Kumar

sal0w commented 6 years ago

HI Kumar,

I believe you have linked the grlib library with the project. In Texas Instruments microcontrollers are divided into two categories TivaWare™ and Stellaris®. Data types are different for both the categories CC3200 is a Stellaris®based board.

DATA TYPE IN TivaWare

int32_t a = 3443 // 32 bit integer

DATA TYPE IN Stellaris

unsigned long a = 344 // 32 bit integer

Adding grlib for STELLARIS will resolve your issue. The below link is the user manual for grlib for STELLARIS http://www.ti.com/lit/ug/spmu018p/spmu018p.pdf

Thanks and Regards, Akash Salow http://www.salow.co/