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 - BUG In hex file generation

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

BUG In hex file generation (by Nasr)
Dear Sir,

When i increase number of persistent variable from one to six in atmega8, hex file generated is 23kb in size, but atmega8 has only 8kb flash. The generated code does not fit inside the flash. What could be the issue. Kindly help.

Thank You
Mon Aug 11 2014, 06:33:03, download attachment sample1.ld
(no subject) (by Magno Medeiros (Brasil))
Friend, I loaded hex file in your software that I use (progisp) and only gave 8,678k, little more than the ability of the ATmega8. then believe that if you get 1 or 2 retitrar tenporizadorres your program fits. see the attached image
Mon Aug 11 2014, 09:16:58, download attachment eeeeeeeeeeeee.png
(no subject) (by MGP)
I cannot test your program, i only have pic's, but you can delete rung 2 and save flash memory.

It's not necessary to declare the variables in advance.
Mon Aug 11 2014, 13:37:12, download attachment sample1_less_code.ld
(no subject) (by Dzairo)
Hi Nasr.
I compile your program in my version of LDmicro .. and final sieze is 6796bytes.. then your program is possible fit to atmega8 .. but I compile your program in my special version LDmicro that generate file to C and then compile under winavr..


regards..
Tue Aug 12 2014, 05:27:49
hexfile (by Nasr)
Hi MGP,

Thank you all for replying. But still i face the same issue. Attached is the hex file generated for sample1_less_code.ld using ldmicro.
Wed Aug 13 2014, 00:38:00, download attachment sample1.hex
(no subject) (by Nasr)
Dear Dzairo and Magno Medeiros

Can you upload the 6kb and 8kb generated hex file so i can check that with my hardware.

regards
Wed Aug 13 2014, 05:38:08
Compilation.. (by Dzairo)
Hi.
Here is your program .. compiled , and source code generated by my experimental LDmicro version ..

If you want *.hex file OK .. but if you want compile then you need have to installed WinAVR ...
If you don't have it then download from this web page:

http://sourceforge.net/projects/winavr/?source=typ_redirect

My experimental version have new function and existing elements are optimized ..

regards
Wed Aug 13 2014, 14:31:17, download attachment Experimental_LDmicro_C_4.zip
(no subject) (by Magno Medeiros (Brasil))
Hello Nasr, as you Pedio, is attached the hex. but note that although it shows 24k, when you load this file into the program to write to the chip, as has just sent you 8,678k image. also note that even if you want to save that file is still greater than the capacity of the ATmega8 which is 8,192k as shown in PROGISP I use. you would have to slightly decrease your program. The other option is that the friend suggests you Dzairo. Good luck!
Wed Aug 13 2014, 19:07:19, download attachment HEX Nasr.hex
(no subject) (by [email protected])
use atmega168 or atmega328 ... or my experimental version

regards
Thu Aug 14 2014, 02:35:45
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):