Jump to content
Sign in to follow this  
Masy

Compilation Bug ?

Recommended Posts

Good Day,

 

I had completed my files with BoostC version 6.89. It's all ok !

 

One day i had update the version 6.89 of BoostC with 6.90 so i compiled the file the firmware did not run more.

I had open both the files asm version 6.89 and 6.90 show the code differents:

 

Version 6.89 OK.

 

label323

MOVF gbl_timescritte, W

XORLW 0x0C

BTFSS STATUS,Z

GOTO label326

BCF STATUS, RP0

BCF gbl_BaseClock+D'1',5

 

 

Version 6.90 wrong

 

label323

MOVLW 0x00

XORLW 0x0C

BTFSS STATUS,Z

GOTO label326

BCF STATUS, RP0

BCF gbl_BaseClock+D'1',5

 

I tried to compile without optimization and has placed the issue

 

Bye

 

Masy

Share this post


Link to post
Share on other sites
Can you provide C code that generated bad assembly?

 

Regards,

Pavel

 

Thank's Pavel for your answer

 

The code c is below and the code that generete bug is in bold :

 

while(((AlarmFlag & 00001111b) == 0) && FIRSTHEAT == 0) // Se non ci sono allarmi tranne calcare

{

if (Pulsante_aspirazione == PREMUTO) //dopo 10 secondi basta warning

{

if (timexitwarming >= 10)

{

timexitwarming = 0;

FIRSTHEAT = 1;

tmescritte = 0;

}

}

else

{

timexitwarming = 0;

}

 

if (tmescritte == temposcritte)

{

SYNCDISP = 0;

while(SYNCDISP == 0)

{};

if (WRSTATE == 0)

{

lcd_clear();

lprintf("PUSH THE ORANGE ");

lcd_gotoxy(0,1);

lprintf(" SWITCH ");

WRSTATE = 1;

tmescritte = 0;

}

else

{

lcd_clear();

lprintf(" PLEASE WAIT ");

lcd_gotoxy(0,1);

lprintf(" FOR STEAM ");

WRSTATE = 0;

tmescritte = 0;

}

}

Alarm_check();

Check_livello_caldaia();

Check_termico();

Check_pressostato();

Timing_adjust();

if(CHECKLED == 1)

{

Led_state_check();

Led_change();

CHECKLED = 0;

tmescritte ++;

}

}

Share this post


Link to post
Share on other sites

Thanks for reporting. The problem is now fixed and the fix will be available in the next release.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...