Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Olimex mega 128 - word of caution

2005-07-06 by Dave VanHorn

>
>I had considerable problems using ponyprog which mostly disappeared 
>when I used the CVAVR
>programming software. The rest disappeared when I switched to using 
>an STK500 for programming
>instead of a simple dongle. The Olimex mega128 boards always program ok now.


There is a fun little gotcha there, for the unaware..

When the AVR programmers let loose between program and verify, the 
code actually runs for a moment.
This can cause some really interesting things, when you interrupt it 
mid-process to go verify.
I had a case where it was wiping out data in an external storage device.
I had a line in the code to nuke it, which I would comment out when I 
didn't want that to happen, but between stopping emulation (Jtag ice) 
and programming, the ice would let the target run just long enough to 
start the "erase all" and POOF went my data.. This caused some 
anxious minutes till I worked out what was happening.

Now, that app has a short delay before the write happens, about 1s, 
which is long enough that the jtag reasserts control before the time expires.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.