Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 March 10, 2008 14:53:36

Sebastian B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Bootloader for m324p


Hi everyone,I have been trying to port one of the existing avr910 bootloaders(namely and ) to an ATmega324p without much success. They bothrespond after some tweaking of the UART sertip. I can use both of themwith avrdude. They even claim to succesfully write to flash whatever Ifeed them but in every case the application flash section is still all0xFF afterwards (verify fails and reading via ISP returns all 0xFF).I suppose the error is on my side, but just in case it saves sometrouble: Has anyone successfully used avr-libc's boot.h functions withan m324p? Are they expected to work?I will go ahead and compare the datasheet of m32 and m324p but I hopethat someone else might come up wiht something easier :-)Btw: I am using WinAVR-20071221 patched with avr-libc-1.6.1.

Tanks in advance,
Sebastian

http://www.siwawi.arubi.uni-kl.de/avr_projects/#avrprog_boothttp://www.lochraster.org/etherrape/#software_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#2 March 10, 2008 15:41:01

Neil D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Bootloader for m324p


Hi Sebastian,I got Peter Fleury's stk500v2 boot loader (http://jump.to/fleury)working on the m324p.As I recall it didn't take a huge amount of work. This work with avrdude.

Regards
Neil Davey

wrote:Hi everyone,I have been trying to port one of the existing avr910 bootloaders(namely and ) to an ATmega324p without much success. They bothrespond after some tweaking of the UART sertip. I can use both of themwith avrdude. They even claim to succesfully write to flash whatever Ifeed them but in every case the application flash section is still all0xFF afterwards (verify fails and reading via ISP returns all 0xFF).I suppose the error is on my side, but just in case it saves sometrouble: Has anyone successfully used avr-libc's boot.h functions withan m324p? Are they expected to work?I will go ahead and compare the datasheet of m32 and m324p but I hopethat someone else might come up wiht something easier :-)Btw: I am using WinAVR-20071221 patched with avr-libc-1.6.1.

Tanks in advance,
Sebastian

http://www.siwawi.arubi.uni-kl.de/avr_projects/#avrprog_boothttp://www.lochraster.org/etherrape/#software_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-l***@*ongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#3 March 10, 2008 19:42:55

Pink B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Bootloader for m324p


Sebastian Brückner sez,

> I have been trying to port one of the existing avr910
> bootloaders (namely and ) to an ATmega324p without
> much success.

I spent some time trying to port a boot loader to the the
Atmega324p and found it not really worthwhile. If you are
using WinAvr all the routines you need are there in boot.h
and they are portable.

> They even claim to succesfully write to flash whatever I
> feed them but in every case the application flash section
> is still all 0xFF afterwards (verify fails and reading
> via ISP returns all 0xFF).

One thing I found with the Atmega168 is that the uP is picky
about executing out of the boot sector when setting up the
write to flash, including writing to the page buffer.

> I suppose the error is on my side, but just in case it
> saves some trouble: Has anyone successfully used avr-libc's
> boot.h functions with an m324p? Are they expected to work?

I used them under the m168 but not the m324p.

Mr Foo



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

Board footer

Moderator control

Enjoy the 16th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support