I have a problem to compile simple salvo test project. Compiler generates errors:
Warning[000] : function clear_common is never called
Warning[000] : function clear_ram is never called
Error[000] D:Program FilesSalvosrcinittask.obj 15 : Fixup overflow in expression (loc 0x86 (0x28+94), size 1, value 0x100)
Error[000] D:Program FilesSalvosrcsched.obj 18 : Fixup overflow in expression (loc 0x14C (0x148+4), size 1, value 0x100)
Code looks like this:
#include "salvo.h"
_OSLabel(TaskA1)
_OSLabel(TaskB1)
void TaskA( void )
{
for (;
{
OS_Yield(TaskA1);
}
}
void TaskB( void )
{
for (; 
{
OS_Yield(TaskB1);
}
}
void main( void )
{
OSInit();
OSCreateTask(TaskA, OSTCBP(1), 10);
OSCreateTask(TaskB, OSTCBP(2), 10);
for (; 
OSSched();
}
salvocfg.h:
#define OSENABLE_IDLING_HOOK TRUE
#define OSTASKS 3
#define OSEVENTS 0
And sources of my project:
Init.c
Inittask.c
main3.c
mem.c
qinst.c
sched.c
util.c
I don´t have any problems when i use picc compiler
I use hitech picc-18 v8.20 with salvo pro v3.2.3 and 18F452 (mplab v6.50). Any help will be usefull.
Regards,
Teijo