" internal error at line 374 file 'avr.cpp' " (by simon)
hi
i have this error on all AVR mcu , " internal error at line
374 file 'avr.cpp' " , when i use "piecewise linear table" with more of 1 points . With 1 points is ok , but when i set 2 points or more i get the error .
Maybe Jonathan have the answher ?
Thanks
(no subject) (by Jonathan Westhues)
Can you post your program?
That error occurs when a BRGE instruction got generated with a target address not within 63 instructions of the current instruction. I'm not entirely sure why that would happen, and a trivial example (compiled for the ATmega8) does not reproduce that problem.
this file does not work (by David R)
I don't know what file Simon has but this file does the same thing.
(no subject) (by Jonathan Westhues)
I see the problem. There really were more than 64 instructions within that if block, so it legitimately failed.
At some point, I should fix that issue properly with the AVR back end. But for now, I've modified the generated intermediate code to avoid the problem.
I've attached a test build, which compiles the program correctly. Let me know if you still see any problems.
(no subject) (by David R)
there is the problem with the piecewise linear table that started this side issue that maybe you could help with.?
D.