cancel
Showing results for 
Search instead for 
Did you mean: 

IAR error Li 005

adrazer1980
Associate
Posted on September 29, 2015 at 23:13

I am trying to drive a KS0108 based LCD with a STM32L series micro-controller. I have the following source code:

#include ''KS0108.h''

#include ''graphic.h''

int main(void)

{

GLCD_Initialize();

GLCD_ClearScreen();

GLCD_GoTo(0,0);

GLCD_WriteString(''TEST'');

GLCD_GoTo(0,1);

GLCD_WriteString(''Program'');

GLCD_GoTo(0,2);

GLCD_WriteString(''For|'');

GLCD_GoTo(0,3);

GLCD_WriteString(''|                   |'');

GLCD_GoTo(0,4);

GLCD_WriteString(''Fun'');

GLCD_GoTo(0,5);

GLCD_WriteString(''|  STM32 Cortex-M3  |'');

GLCD_GoTo(0,6);

GLCD_WriteString(''|  microcontrollers |'');

GLCD_GoTo(0,7);

GLCD_WriteString(''+-------------------+'');

for( ; ; );

return 0;

}

I end up with the following errors,

1. Error[Li005]: no definition for ''GLCD_WriteCommand''

 2. Error[Li005]: no definition for ''GLCD_InitializePorts''

1 REPLY 1
Posted on September 30, 2015 at 00:40

Ok, so does the body code for those functions appear anywhere in the files you've pulled into the project, or is any of it dependent on defines you haven't provided? ie conditional compilation.

The error is asking ''where's the code?'', figure that out and you can resolve the errors.

Remember #include files just contain the prototype calling information, they usually don't have code in them, that would come from another .C or .LIB type file.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..