hi, i compiled the sample progarm given by keil named RTX_ex1... i just included the printf() function to indicate which task running but when i debug its not printing in any of the serial terminal.... description: os =rtx processor=LPC2124
CODE:
#include <RTL.h> #include <stdio.h>
OS_TID id1, id2;
__task void task1 (void); __task void task2 (void);
__task void task1 (void)
{
id1 = os_tsk_self ();
id2 = os_tsk_create (task2, 1);
for (;;)
printf("task 1 running");
os_evt_set (0x0004, id2);
os_evt_wait_or (0x0004, 0xffff);
os_dly_wait (5);
}
__task void task2 (void)
printf("task 2 running");
os_dly_wait (2);
os_evt_set (0x0004, id1);
int main (void)
os_sys_init (task1);
Where is you code that implements a serial port? Bradford
Look for a "Hello World" example in the examples folders. Bradford
i included the files retaget.c and serial.c to that project but still its not showing anything.....when debugging its got struck in printf() statment
sorry i got the point from that hello world program...we have to initialise the serial port...now its running successfully.....
Thanks a lot.......
can you tell me what are all the changes we have to make in this project to run in lpc1768...
In simulator printf function is working by adding the function SER_init()...but the same is not working in target hardware lpc1768...how to make printf() working in board