AVRStudio4

I am using the AVRStudio4 to create .hex files, but I find that it is inserting code before the object I am trying to create. I used AVRStudio once before, but an earlier version and had great results programming with my current setup. However, the old version that worked has been lost. When I try to export, I have to use CVAVR and go into terminal mode. The files created by the new studio fail to complete a programming of a chip, and files created by the old system load fine. What I have found is that the new version inserts :020000020000FC at the beginning of every .hex file, and this makes my programmer puke. I presume the programmers Atmel intended to drive use this initial code to set up for some common purpose, which my programmer, a DIY K122, also from Atmel doesnt like it. Does anyone here know a setting in the new studio I need to set? I have looked at everything I can find. This is the freeware version, and is not supported by Atmel. TIA

Reply to
uguess
Loading thread data ...

On Thu, 29 Jul 2004 04:00:05 GMT, snipped-for-privacy@nowhere.net wrote in comp.arch.embedded:

Can't you write a little command line program in (C, BASIC, Perl, whatever you like) that will copy a text file (that's all an Intel hex file really is) to a new file, verifying that the first line contains ":020000020000FC", and leaving that line out of the copy?

You could add it to your makefile and it would add a fraction of a second or so to your build.

Sometimes the simplest solution, especially if you are a programmer, is to roll your own.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html
Reply to
Jack Klein

You can ask the programmers of AVR Studio in one of the forums at the Avrfreaks website, and they do support Studio. Are you aware that Studio4 uses Jtag to download the file to the devices? You can also use PonyProg from Lancos to d/load to the chip via the ISP, which works well.

formatting link
formatting link

Reply to
dmm

Thanks, I checked out avrfreaks. Good URL. I already have the chip programmer so would just as soon stick with what I have. This is really an inconvenience more than anything else, I use notepad to strip it off and re save the file. It gets the job done, but it's a bit irritating, especialy when I forget. :)

Reply to
uguess

Too true. I just felt their was some option I had not yet visited to change. Up to now, I have just used notepad to strip out the offending line, and resaved it. It's really just a nuisance more than anything else.

Reply to
uguess

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.