Yahoo Groups archive

AVR-Chat

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

Thread

Re: Mega128 apparently losing programming

Re: Mega128 apparently losing programming

2009-09-23 by STEVEN

Tim,

Have you got anything else connected to the Isp Lines, some peripheral or other, i have had units with ATMega 16/168 where the eeprom has been "Erased" and the soloution was to free up these lines and or set the boot fuses so that code cannot be reprogrammed without erasing the device.


Regards

--- In AVR-Chat@yahoogroups.com, "Tim Mitchell" <tim@...> wrote:
Show quoted textHide quoted text
>
> Strange one...
> 
> We designed a board using a Mega128 which has been assembled, programmed
> and tested in a small batch by an assembly company. The programming was
> done using an AVR-ISP mk2.
> 
> The customer has returned several of the boards because they don't work.
> On checking it seems that the mega128 has become completely blank - even
> the fuse bits are set to the factory defaults.
> 
> Has anyone ever heard of this happening before? I never have.
> 
> -- 
> Tim Mitchell
> tim@... http://www.sabretechnology.co.uk
> Sabre Technology (Hull) Ltd, 3a Newlands Science Park, Hull
> HU6 7TQ Registered in England and Wales no.3131504
> t:01482 801003 f:01482 801078
>

Mega128 apparently losing programming

2009-09-23 by Tim Mitchell

Strange one...

We designed a board using a Mega128 which has been assembled, programmed
and tested in a small batch by an assembly company. The programming was
done using an AVR-ISP mk2.

The customer has returned several of the boards because they don't work.
On checking it seems that the mega128 has become completely blank - even
the fuse bits are set to the factory defaults.

Has anyone ever heard of this happening before? I never have.

-- 
Tim Mitchell
tim@sabretechnology.co.uk http://www.sabretechnology.co.uk
Sabre Technology (Hull) Ltd, 3a Newlands Science Park, Hull
HU6 7TQ Registered in England and Wales no.3131504
t:01482 801003 f:01482 801078

Re: [AVR-Chat] Mega128 apparently losing programming

2009-09-23 by Emerson Santos

Hi people ...

I´m a newbie in AVR USART , and i have a problem that i can understand.. I
make a code below

...

#asm("SEI");

main
while (1)
      {

       WR_SERIAL(0x04);

      };
}

....


unsigned char WR_SERIAL(unsigned char dado)
{

      if (!(UCSRA & (1<<UDRE)) )
        {
          return;
        }

       UDR = dado;


}

interrupt [USART_TXC] void usart_tx_isr(void)
{
 OK=~OK;
 for(;;);
}

...

Yes, is a ingenous and simple code, the usart is set in 4800, no parity, 8
bits ... etc etc

My problem is that the interruption is working if i run my program with JTAG
e AVRSTUdio (I run in a ATmega32) in steoping mode... but out the AVRStudio
.. nothing happening the TX is working all time and not have a stop that i
like.

I read the DS and the thing really is like the DS , but works only in the
AStudio ...

Thanks for any help and sorry for my bad english :)

Emerson


[Non-text portions of this message have been removed]

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.