Hi Diana,
Thanks for you quick reply. We got the link error as follow:

myfunc.c
#include "myfunc.h"
unsigned char TI1_CountUp;
unsigned char foo(void)
{
return TI1_CountUp;
}
myfunc.h
#ifndef MYFUNC_H_
#define MYFUNC_H_
extern unsigned char TI1_CountUp;
unsigned char foo(void);
#endif /* MYFUNC_H_ */
Event.c
#include "Cpu.h"
#include "Events.h"
/* User includes (#include below this line is not maintained by Processor Expert) */
#include "Board_B0005_v100.h"
#include "myfunc.h"
............
void TI1_OnInterrupt(void)
{
/* Write your code here ... */
++TI1_CountUp;
}
............
main.c
/* Including needed modules to compile this module/procedure */
#include "Cpu.h"
#include "Events.h"
.........
/* User includes (#include below this line is not maintained by Processor Expert) */
#include "myfunc.h"
.........
void main(void)
{
........
/* Write your code here */
for(;;)
{
do{} while(!AS1_GetTxComplete());
AS1_SendChar(TI1_CountUp);
}
}
How to resolve the issue:
ERROR L1822: Symbol __copy in file C:/....../FLASH/Sources\main_c.obj is undefined
Best regards,
Aaron