News:

;) This forum is the property of Proton software developers

Main Menu

unexplained ASM FSR0H error

Started by Yves, Oct 13, 2021, 12:25 PM

Previous topic - Next topic

Yves

Hello all,

I had a perfectly compiling and working code. But now 4 months later after had updated to to "Corrections made in version 4.0.0.9 of Positron8. (September 2021) update", I am getting a ASM error:

ASMERROR:Error(115) C:\NACN TIMER\A.s 1731:Duplicate label ("FSR0H" or redefining symbol that cannot be redefined)

ASMERROR:Error(115) C:\NACN TIMER\A.s 1735:Duplicate label ("FSR0H" or redefining symbol that cannot be redefined)

ASM ERROR: ASSEMBLER ERRORS.HEXfile not created

I'm using 18F25k22 chip. The code too long to publish here but contains:

On_Hardware_Interrupt GoTo ISR_Handler ' Point to interrupt handler

and the handler is:
'------------------------------------------------------
ISR_Handler:
Context Save
If INTCONbits_T0IF = 1 Then ' Was it a Timer0 overflow that triggered the interrupt?
    Inc Time
    Clear INTCONbits_T0IF ' Clear the Timer0 overflow flag
EndIf
   
Context Restore  ' Exit the interrupt, restoring registers
''-------------------------------------------------------   
both are a .INC subroutine.

My question is what is creating this error now. The code use to work perfectly with Proton and previous version of Positron before. Where must I look and maybe reshuffle? Many thanks in advance.
cheers,

Yves
 

 
Yves


Yves

Thank you Les

it was in the Include "SSD1306_Def_v1.11.inc", problem solved. renames the Dim FSR0 As FSR0L.Word to
Dim wFSR0  As FSR0L.Word.

Best regards,

Yves
Yves