2015-09-29 02:13 PM
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''2015-09-29 03:40 PM
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.