Pages: [1]   Go Down
Author Topic: bootloader question for geeks  (Read 525 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 14
I Love YaBB 2!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey! I am currently trying to understand everything around the serial programming of the bootloader.

I have translated the uisp script to avrdude because I am using an AVRISP mkII on a Mac. I do understand the lfuse and hfuse values (the datasheet helps)

One question remains however: I figured that the bootload code is Intel Hex encoded. Looking at the lines in the you can find this:
:101C000012C02BC02AC029C028C027C026C025C0AA

This decodes to:
Line Length: 0x10 (16) bytes count
Adress: 0x1C00
Record type: 0x00 Data
+ Data

The address encoded here is 0x1C00. This looks strange to me since the fuse bytes define that the bootload starts at 0xE00 (BOOTSZ set to 0x01)?

Who is able to explain this to me? I don't know the bootloader works, since I wated to understand and check everything before I give it a try....

-mj

Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
I Love YaBB 2!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The address encoded here is 0x1C00. This looks strange to me since the fuse bytes define that the bootload starts at 0xE00 (BOOTSZ set to 0x01)?

I don't know how the bootloader works either (I have almost no knowledge about microcontroller programming), but I can confirm that you figured out the fuse bytes correctly (you indeed have to set it to 1k code size, starting at 0xE00) and that the bootloader as included in Arduino 0004 works if you burn it onto an out-of-the-box atmega8. I burned it onto several controllers (usuing AVRstudio on Windows though, since I couldn't get the avrispII to work on the Mac yet).

I hope that helps.
« Last Edit: June 18, 2006, 10:35:15 am by gck » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 14
I Love YaBB 2!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks!
I need to admin that this is probably not a "Trouble" post. It is just that I want to know what is going on smiley

-mj
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The addresses are the same, just with different units.  The fuses specify the bootloader size in words, and the .hex file gives an address in bytes; 0xE00 times 2 = 0x1C00.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 14
I Love YaBB 2!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the enlightment!!!

-mj
Logged

Pages: [1]   Go Up
Jump to: