Bootloader for ATSAMD10

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello:

 

I'm looking for a Bootloader for SAMD10 and reading "Atmel AVR2054: Serial Bootloader User Guide" which provides examples for different AVR and SAMR21 parts, there are some things not very clear to me. According the Application Note, the bootloader firmware is flashed in the device, and after reset it executes and connect to a PC program to download the user application. The downloaded user application is then flashed in the device (in a higher address space in flash) and executed once this process is finished.

However, if the user application is not starting at flash address 0x00, then it should be linked to start in a different address... But there is no mention about this...I'm wondering how this really works...

 

I would appreciate any comment on this.

Thanks

Gus

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You are right......

 

The application code has to be linked a different address. This address is known to the bootloader so that it can change the VTOR and jump to the user application.

 

Did I clarify ? (OR) Did I confuse you even more ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Instructions for changing the start address is in chapter "1.2.1 Application Constraints" in this doc:

http://www.atmel.com/images/atme...

A small serial bootloader is here:

http://atmel.force.com/support/a...

/Lars

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello:

Thank you all for the responses.

These clarify it a lot.

 

Regards;

Gus

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Guys,

 

I also wanted to write a USB bootloader for SAM E70.

This gives some ideas for my program.

But I'll be needing your help.

Good work guys, keep it up.

yes

@Lajon

@gussabina

@Adithya Yuri

Silly beans are always silly
:)