Pumpkin, Inc.

Pumpkin User Forums

BUG in HiTech compiler when using SALVO 3.0

If you think you've found a bug or other mistake in your Salvo distribution, post it here.

BUG in HiTech compiler when using SALVO 3.0

Postby luben » Sun Jul 21, 2002 5:58 am

Hello,

Here I'm sending the post from HiTech forum. I got unacceptable behaviour of HiTech compiler when I forgot to close the braces - the copiler just crashed!

Maybe you could easily locate where the guys of HiTech wronged.

...........................

I think that I got something like bug in HiTech.

I'm using SALVO 3 and when compiling the project I received multiple times - ILLEGAL OPERATION into CCP module and the Windows shut down the program CCP. Well, the MPLAB still remained working. But I think that CCP should not issue illegal operation, but just to report where is the mistake and what kind it is.

After I looked more carefully into my source I got very easy the problem - I skipped the closed brace into OS_Delay statement (here is the wrong code down)

//========
OSSignalMsg(MSG_Display, (OStypeMsgP)&INFORMA[0]);
OS_Delay(time_2s, _TASK_Program4; // to stay message on screen !!! with mistake - no brace

OSSignalMsg(MSG_Display, (OStypeMsgP)&READY[0]);
//========

The reported error was:
Compiling XEROXLCD.C:
Command line: "C:HT-PICBINPICC.EXE -FAKELOCAL -G -O -Zg -ICD -E -16F873 -C -IC:HT-PICWORKINGXEROXXEROXLCD -ic:salvo30inc -ic:salvo30src C:HT-PICWORKINGXEROXXEROXLCDXEROXLCD.C"
end of file within macro argument from line 677
Wrong number of macro arguments for "OS_Delay" - 0 instead of 2
The instruction at 00407067 referenced memory at ffffffff
The memory could not be read fromC:HT-PICBINcpp.exe: Error 0
Error[000] : Exec failed

... and after that - ILLEGAL OPERATION and the CCP crashes !!!!!

Anyway, after I located the roblem - everything is OK.

Best regards
Luben Hristov

luben
 
Posts: 324
Joined: Sun Nov 19, 2000 12:00 am
Location: Sofia, Bulgaria

Re: BUG in HiTech compiler when using SALVO 3.0

Postby aek » Sun Jul 21, 2002 6:05 am

Hi Luben.

I suspect that the problem lies in the PICC/PICC-18 preprocessor. I say this because OS_Delay() is a macro, and so leaving out a closing brace leads to rather unpredictable results.

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

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

Re: BUG in HiTech compiler when using SALVO 3.0

Postby luben » Sun Jul 21, 2002 6:19 am

Hello,

The bug appeared into PIC16 compiler... I didn't tested it yet with PIC18.

There is a problem when they have to locate the bug - they have to use full SALVO with sources, or at least the macro of OS_Delay(). I don't have rights to do this by myself... that's why I posted it here, if you can get the possible reason of the bug.

Regards
Luben

luben
 
Posts: 324
Joined: Sun Nov 19, 2000 12:00 am
Location: Sofia, Bulgaria


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron