BootloadHID(Mega32A) write error at 0x7000

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
am2008
Posts: 2
Joined: Tue Mar 24, 2015 10:06 am

BootloadHID(Mega32A) write error at 0x7000

Postby am2008 » Wed Mar 25, 2015 10:13 am

Hello,

I'm using BootloadHID with Mega32A at 16Mhz. Bootloader got size 1688 bytes with 0x7800 start address.

Fuse set: LOW:0xef HIGH:0x9b (Boot Flash Size=2048 bytes)

Application flash section = 0x0000-0x77FF (30720 bytes). My hex file size 29416 bytes. Why i get write error after 0x7000? Please help.

Image

UPD. If image not visible, => https://drive.google.com/file/d/0B1Bfm2ew-eoFdUNhYTZJakkwOU0/view?usp=sharing

am2008
Posts: 2
Joined: Tue Mar 24, 2015 10:06 am

Re: BootloadHID(Mega32A) write error at 0x7000

Postby am2008 » Fri Mar 27, 2015 10:22 am

Using command line program:

Code: Select all

$bootloadHID.exe test.hex                                                                                                                                                                                           
Page size   = 128 (0x80)                                                                                                                                                                                             
Device size = 32768 (0x8000); 30720 bytes remaining                                                                                                                                                                 
Uploading 29440 (0x7300) bytes starting at 0 (0x0)                                                                                                                                                                   
0x07000 ... 0x07080Error uploading data block: Communication error with device 


Is there a difference between writing pages below 0x7000 and above above 0x7000?
Section________________________________________Pages__Address
Read-While-Write section (RWW)_______________224____$0000 - $37FF (in bytes = 0x0000-0x6FFF = 28672 bytes)
No Read-While-Write section (NRWW)___________32_____$3800 - $3FFF (in bytes = 0x7000-0x7FFF = 4096 bytes)


Return to “V-USB”

Who is online

Users browsing this forum: No registered users and 1 guest