Pumpkin, Inc.

Pumpkin User Forums

Picc-18 compile problem

For issues specific to Microchip's PICmicro® MCUs, including compilers (e.g. HI-TECH PICC & PICC-18, Microchip MPLAB®-C18) and IDEs (e.g. Microchip MPLAB®).

Picc-18 compile problem

Postby aek » Wed Aug 11, 2004 12:37 am

Hello.

I can't tell from what you've posted what the problem(s) are ... can you email support a complete project?

Normally, fixup errors are due to accidentally including a bankn #define in the salvocfg.h ... but You don;t seem to be doing that there ...

------------------

-------
aek
aek
 
Posts: 1862
Joined: Sat Aug 26, 2000 11:00 pm

Re: Picc-18 compile problem

Postby Tkk » Wed Aug 11, 2004 3:21 am

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

Tkk
 
Posts: 6
Joined: Tue Jun 15, 2004 11:00 pm
Location: Oulu, Finland

Re: Picc-18 compile problem

Postby Tkk » Thu Aug 12, 2004 11:06 am

Problem solved! I create completely new project( this time i don´t used project wizard) and insert OSLOC_ALL near in salvocfg.h file. I'm not sure what i did wrong in my first project but now it's working!

regards,

Teijo

Tkk
 
Posts: 6
Joined: Tue Jun 15, 2004 11:00 pm
Location: Oulu, Finland


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 1 guest