Joined: 14 Jul 2004 Posts: 138 Location: Australia
Posted: Sat Jul 24, 2004 1:05 pm Post subject: Error:239 Invalid code sequence because of AVR hardware bug
I thought I have seen all error codes but this one???
Error : 239 Line : 262 Invalid code sequence because of AVR hardware bug [ 902]
Code:
sbrc, rXX, X 'skip next if bit in register clear call routine 'calls routine if bit is set
If I move routines around to bring the routine closer to the calling routine and change the code to
Code:
sbrc, rXX, X 'skip next if bit in register clear
rcall routine 'relative calls routine if bit is set
there is no error.
So it looks like the hardware bug is or was problems working out if the next instruction is 2 words or 3 words
According to the data sheet (mega 162) it should work in either case.
The same code in a lib works fine, but in a bas comes up with this error??
Is there really harware bugs?
Philm
The new Mega chips have solved this hardware error.
In the 1.11.7.5 beta the compiler will know which chips have this problem, and which chips do not.
Now, the compiler thinks every chip has this problem. _________________ Mark
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum