Quan Nguyen

Help on Linking problem in CodeWarrior V6.3

Discussion created by Quan Nguyen on Sep 12, 2006
Latest reply on Sep 13, 2006 by Nouchi
Hi all,

I just want to write a simple program to test the UART on M5211DEMO board. This is the program:

#include <stdio.h>
#include "uart.h"

int main()
{
char c;

//initialize UART
uart_init (0, 83333, 19200, 0);
while(1)
{
//check to see if a character is present
if(uart_getchar_present(0))
{
c = uart_getchar (0);
}
}

return 1;
}

When I "Make" the project, I got a link error that it cannot recognize uart_init, uart_getchar_present, and uart_getchar. I already put #include "uart.h" at the top of the file. Is there anything I can do to fix this?

Thanks

Outcomes