| Author |
Message |
|
|
Posted: Jun 03, 2011 - 01:00 PM |
|


Joined: Apr 24, 2007
Posts: 135
Location: Birkerød, Denmark
|
|
Hi,
Just about the only thing we use AVR Studio 4 for, is to program AVRs with .elf files. This is mainly done by production workers, who should never fiddle around with fuses and such.
The only reason for me to try out AVR Studio 5 is that there are some errors in AStudio4 I'd like to see fixed. AStudio5, however, doesn't seem to support .elf files, even if the program mysteriously takes something like 5 times the disk space of AStudio4...
For now, I'll have to uninstall AStudio5 and reinstall the old one. Does anyone know if (and maybe when) AStudio5 will be able to handle .elf files in the same way that AStudio4 did?
There are three scenarios for our production line:
1. Automated programming. The test software testing the PCB with a mounted AVR will also program the microcontroller, using the STK500.exe tool.
2. Manual programming. The production worker can click an icon, starting a batch file, which in turn will run the STK500.exe tool.
3. Manual programming with non-released firmware. The production worker will program a microcontroller with a specific .elf file, for which no batch file has been made. This is for development and special situations only.
Can anyone recommend a good and easy alternative to AStudio4 and 5, which can do the stuff I've described above?
Best regards,
ErikT |
_________________ You're absolutely right. This member is stupid. Please help.
|
| |
|
|
|
|
|
Posted: Jun 03, 2011 - 02:12 PM |
|


Joined: Jun 15, 2008
Posts: 1762
Location: North Carolina USA
|
|
| I had an error with the beta trying to write the readonly signature, but removing the .signature section allowed the .elf to program. That was added to the list of bugs to fix. |
|
|
| |
|
|
|
|
|
Posted: Jun 03, 2011 - 02:24 PM |
|


Joined: Jul 18, 2005
Posts: 62324
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
|
Quote:
Can anyone recommend a good and easy alternative to AStudio4 and 5, which can do the stuff I've described above?
avrdude perhaps? But exactly what are the "some errors in AStudio4 I'd like to see fixed" in AS4's copy of STK500.exe? |
_________________
|
| |
|
|
|
|
|
Posted: Jun 03, 2011 - 02:41 PM |
|


Joined: Apr 24, 2007
Posts: 135
Location: Birkerød, Denmark
|
|
AStudio4 build 700 (SP2) can't read .elf files that are placed in read-only directories. That was fixed in build 716 (SP3), but then an error was introduced in STK500.exe.
When programming with STK500.exe under the build 716 installation, the program reports "programming failed" even though everything went well. I've had some communication with Atmel about this, and after I sent them an .elf file, they were able to reproduce the error. But then AStudio5 was on its way, so it wouldn't be fixed in AStudio4.
I'll take a look at avrdude to see if it's something we can use. Thanks for the tip. |
_________________ You're absolutely right. This member is stupid. Please help.
|
| |
|
|
|
|
|
Posted: Jun 03, 2011 - 02:42 PM |
|


Joined: Jul 18, 2005
Posts: 62324
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
Have you tried 4.19?
www.atmel.no/beta_ware/
Quote:
Bug Fixes
13075 - avrdragon.exe not able generate .cac file in Windows 7 64 bit
13735 - AVRISPmkII: STK500 command line utility doesn't correctly verify fuses for ELF files
12257 - Only SP1 includes QT600Upgrade, SP2 and SP3 does not include
|
_________________
|
| |
|
|
|
|
|
Posted: Jun 03, 2011 - 03:04 PM |
|


Joined: Apr 24, 2007
Posts: 135
Location: Birkerød, Denmark
|
|
Hey clawson – you're a god!
13735 – that's my bug report right there! I wasn't aware that they were working on a new version 4. In fact, I didn't even know about that page.
I'll download it now, and try it out next week. Never ever try something new on a friday afternoon... if it doesn't work, it might disturb (or even ruin) your weekend.
Thanks a lot!  |
_________________ You're absolutely right. This member is stupid. Please help.
|
| |
|
|
|
|
|
Posted: Jun 03, 2011 - 03:58 PM |
|


Joined: Jul 18, 2005
Posts: 62324
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
Erik,
Note that there's apparently a serious fault in 4.19 in the area of simulator. If you don't use it then no worries but do not be surprised if you do use the simulator and find problems.
Cliff |
_________________
|
| |
|
|
|
|
|
Posted: Jun 04, 2011 - 09:49 AM |
|


Joined: Apr 24, 2007
Posts: 135
Location: Birkerød, Denmark
|
|
No worries at all. We only use AStudio for programming AVRs first time. After that, we upload through a bootloader. So the use is really limited.
That's the main reason I got a bit scared when I saw that AStudio5 had become > 700 MB bloatware.
I'll take a closer look at AVRDude soon.
Thanks again! |
_________________ You're absolutely right. This member is stupid. Please help.
|
| |
|
|
|
|
|
Posted: Jun 07, 2011 - 05:05 PM |
|


Joined: Mar 01, 2001
Posts: 4953
Location: Rocky Mountains
|
|
A note about avrdude: It doesn't have support for ELF files. Yet.
It's definitely a feature that we want to add for avrdude, but, as always, we're short of resources. |
_________________ Eric Weddington
Marketing Manager
Open Source & Community
Atmel
|
| |
|
|
|
|
|