Content originally posted in LPCWare by faizal on Wed Jun 22 05:10:16 MST 2011
Hello,
Im very new to micro-controller world. As part of my internship program, I want to program lpc114 for ssp loopback mode. I use the example code in LPCXpresso Example Projects for LPC1114/302. I changed
#define LOOPBACK_MODE 1
#define SSP_SLAVE0
#define TX_RX_ONLY0
Then I changed :
#define USE_CS1
#define SSP_DEBUG1
I used SSP_DEBUG=1 because I want to use hyperterminal to check whether it works or not. The problem is when i want to debug ssp, I got error said that Undefined Reference for UARTInit(),UARTsend() in the file ssp_main.c.
I don't really understand the problem because at the top of ssp_main.c, we've already included uart.h :
#if SSP_DEBUG
#include "uart.h"
#endif
I've verified in folder called "driver",there are file uart.c and uart.h Please help me with this problem.
Thanks,
Faizal