Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - " internal error at line 374 file 'avr.cpp' "

(you are viewing a thread; or go back to list of threads)

" 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
Fri Feb 19 2010, 09:19:49
(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.
Fri Feb 19 2010, 21:49:33
this file does not work (by David R)
I don't know what file Simon has but this file does the same thing.
Fri Feb 19 2010, 21:54:45, download attachment piecewise_table_test_AVR.ld
(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.
Fri Feb 19 2010, 22:13:44, download attachment ldmicro.zip
(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.
Fri Feb 19 2010, 22:26:20
no subject (by simon)
Hi

New ldmicro is ok .

Tanks Jonathan
Sun Feb 21 2010, 07:42:27, download attachment piecewise_table_test4.rar
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):