Forums

how to use EmbOSView OS_sendString and OS_SetRxCallback

Started by lori April 14, 2004
Somebody help me!
I want to use EmbOSView instead of hyperterminal to send data to the
EVBM16CEmulator. I use Tasking EDE. I made some code but there is
something wrong with it.
does anybody know this? please teach me.thanks.

Main.c
#include "EMBOS\inc\RTOS.H"
#include "GUI.h"
...
void Task0(void) {
  
  while (1) {
    GUI_X_OnRx(U0RB);
    OS_Delay (10);
		  OS_Delay (10);

  }
}
...
GUI.c
#include "GUI.h"
#include "..\EMBOS\inc\RTOS.H"

void GUI_X_OnRx(OS_U8 Data)
{
   OS_SendString(data);
}
void GUI_X_Init()
{
	OS_SetRxCallback(&GUI_X_OnRx);
}
...
build:
lkm16 E208 (0): Found unresolved external(s):
            _GUI_X_OnRx - (main.obj)
            _GUI_X_Init - (main.obj)
Are you sure that GUI.c is member of the project you are trying to build ?
Can you make sure that the source module GUI.c is compiled wihtout error ?

If the linker complains unresolved externals this is a definite sign that
there is no object file containing any of the named variables or functions.

/jan

P.S.:
I guess this is a question for
support.eu@altium.com or support@segger.com


lori <lori_ye@hotmail.com> schrieb in im Newsbeitrag:
270b7cc8.0404141313.181468f1@posting.google.com...
> Somebody help me! > I want to use EmbOSView instead of hyperterminal to send data to the > EVBM16CEmulator. I use Tasking EDE. I made some code but there is > something wrong with it. > does anybody know this? please teach me.thanks. > > Main.c > #include "EMBOS\inc\RTOS.H" > #include "GUI.h" > ... > void Task0(void) { > > while (1) { > GUI_X_OnRx(U0RB); > OS_Delay (10); > OS_Delay (10); > > } > } > ... > GUI.c > #include "GUI.h" > #include "..\EMBOS\inc\RTOS.H" > > void GUI_X_OnRx(OS_U8 Data) > { > OS_SendString(data); > } > void GUI_X_Init() > { > OS_SetRxCallback(&GUI_X_OnRx); > } > ... > build: > lkm16 E208 (0): Found unresolved external(s): > _GUI_X_OnRx - (main.obj) > _GUI_X_Init - (main.obj)