Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
aurelienr
PostPosted: Sep 01, 2011 - 05:49 PM
Rookie


Joined: Jul 28, 2010
Posts: 28


Hello,
I'm trying to make work the AVR1605 bootloader for Xmega.
I'm working under Codevision compiler with an ATxmega128A1, and compiler supplies a compatible modified code of the Atmel bootloader AVR1605.
I have started tests and the following functions work : read signature, read fuse, erase a device, eeprom program, eeprom read.

But the programmer fails when I try to read or program FLASH. It tells me "Programmer page size is not set". I don't know if the error come from the bootloader firmware or from the AVROSP !

But the page size (512) is defined in the bootloader firmware !
Moreover, the correct page size is also indicated in the device XML file (512). But not in the reduce version created by AVROSP when finding the device.

Do you have an idea ?


Thanks
Aurelien
PS : I have also downloaded AVROSPII.547 but it does not seem to support this device ? The XML files are provided by AVR Studio 5.0.
 
 View user's profile Send private message  
Reply with quote Back to top
aurelienr
PostPosted: Sep 01, 2011 - 06:46 PM
Rookie


Joined: Jul 28, 2010
Posts: 28


Well...I have downloaded the last version of AVROSP (atmel website is a little messy), and now I can read and program whole device.
The only function that does not work is flash dump.
The operation starts well, but after some time the shell indicates "Setting address for programming operation failed ! Programmer did not return CR after 'A'- command".
I don't know why it want to program something...

Aurelien
 
 View user's profile Send private message  
Reply with quote Back to top
aurelienr
PostPosted: Sep 01, 2011 - 06:55 PM
Rookie


Joined: Jul 28, 2010
Posts: 28


Just a remark : I said that fuse reading was working, but the bootloader provided by Atmel does not include the full fuse reading/writing. It can handle only 3 bytes, while there are 6 bytes in Xmega...
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Sep 01, 2011 - 07:53 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62281
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

I said that fuse reading was working, but the bootloader provided by Atmel does not include the full fuse reading/writing

Fuse WRITING? From a BOOTLOADER? Do the Xmegas have some feature the other AVRs don't then?

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits