Masy 0 Posted December 5, 2008 Report Share Posted December 5, 2008 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 Quote Link to post Share on other sites
Pavel 0 Posted December 5, 2008 Report Share Posted December 5, 2008 Can you provide C code that generated bad assembly? Regards, Pavel Quote Link to post Share on other sites
Masy 0 Posted December 5, 2008 Author Report Share Posted December 5, 2008 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 ++; } } Quote Link to post Share on other sites
Pavel 0 Posted December 10, 2008 Report Share Posted December 10, 2008 We can't reproduce the problem from the code fragment you provided. Please send a complete project to support@sourceboost.com Regards, Pavel Quote Link to post Share on other sites
Pavel 0 Posted December 12, 2008 Report Share Posted December 12, 2008 Thanks for reporting. The problem is now fixed and the fix will be available in the next release. Regards, Pavel Quote Link to post Share on other sites
Recommended Posts
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.