I have tested the IndCall example routine and if I compile it for the Atmel family there is a report of a system register error.
Compiler the last hot release
Thank for any help, Marco
Last edit: Marcoos 2014-06-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
IndCall worked for me a few weeks ago with the latest compiler and an ATmega328p. Perhaps there is a problem that only happens with a particular chip, could you please post your code Marco?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
'Flash an LED using an indirect call
'#chip 12F683
#chip mega328p
Dir PORTB.0 Out
'Create a word variable, and set it to the memory location of the
'Blink subroutine.
Dim FlashingSub As Word
FlashingSub = @Blink
'Main loop
Do
'Indirect call to subroutine at location FlashingSub
IndCall FlashingSub
Loop
'LED flashing subroutine
Sub Blink
PulseOut PORTB.0, 500 ms
Wait 500 ms
End Sub
bye
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Oops
I have built this in the SynWrite,
and if I generate the assembler with the icon command, all it is ok.
But if I compile with the asm and hex generator icon, the error appeare
Can this help?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
I have tested the IndCall example routine and if I compile it for the Atmel family there is a report of a system register error.
Compiler the last hot release
Thank for any help, Marco
Last edit: Marcoos 2014-06-16
IndCall worked for me a few weeks ago with the latest compiler and an ATmega328p. Perhaps there is a problem that only happens with a particular chip, could you please post your code Marco?
this is the modified test code of the help
bye
there are the error message
Errors have been found:
Error: GCASM: Symbol SYSREADA has not been defined
Error: GCASM: Symbol SYSREADA_H has not been defined
The message has been logged to the file Errors.txt.
there are the error message
Errors have been found:
Error: GCASM: Symbol SYSREADA has not been defined
Error: GCASM: Symbol SYSREADA_H has not been defined
The message has been logged to the file Errors.txt.
Oops
I have built this in the SynWrite,
and if I generate the assembler with the icon command, all it is ok.
But if I compile with the asm and hex generator icon, the error appeare
Can this help?
Fixed, thanks for reporting that problem Marco! There was a missing variable definition, which I have added to the stdbasic.h file as needed. Please try replacing the file you have with the one from here: https://sourceforge.net/p/gcbasic/code/124/tree/GCBASIC/trunk/include/lowlevel/stdbasic.h?format=raw
Another option, if you don't want to replace the file, is to add this line somewhere to your program:
Ok
work well, many thanhs
Marco