Learn bootloader for SAM D20 (Cortex M0+)

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

I really need your help for guiding me to learn how to write a bootloader for a SAM D20 (Atmel Cortex M0+) MCU.:roll: I have a SAM D20 Xplained Pro evaluation board in hand. However I am surprised that there is not much tutorial/user guide on the web for teaching to write a bootloader for the SAM D MCU.:shock: Often I can only find the "SAM-BA" guide which is a PC software.
Where should I start?:?:

Thanks a lot! :D

Last Edited: Fri. Jun 9, 2017 - 11:37 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Atmel AT04189: UART Based SAM-BA Bootloader for SAM

Note that the SAM D20/D21/R21 are not AVR32 - they are ARM Cortex-M0+

http://www.at91.com/discussions/...

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

hello , 

I am quite in this,i think you people have tried a lot in sam ba.

 

i want to use bootloader function in my sam d20 and sam d21 board ,not xplained pro board ,

 

i have  got bootloader hex file for sam d20 and sam d21 both which i need to program from external programmer.

 

i want some detail for sam ba v 3.13 for programming with serial or usb port.

 

i have tried using samba 2.16 user GUI is good but it does not have user board option of sam d 20 and 21 , only xplained board are there .

 

what i want is small board of sam d20/21 and serial pins and pa15 pin to switch it between bootloader and application mode , 

i dont know whether it possible or not , i should be able to program my board with any USB to serial connector and sam ba

 

please help me .

yo

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

ncctelecom wrote:

 

i have tried using samba 2.16 user GUI is good but it does not have user board option of sam d 20 and 21 , only xplained board are there .

 

 

I would try using BOSSA instead of SAM-BA. 

http://www.shumatech.com/web/pro...

 

According to their site:

SAM-BA ships with support for all of Atmel's evaluation kits but does not provide generic configurations for other boards.  It is a complex task with little documentation to modify SAM-BA to support custom boards.  Sometimes, one can get away with using one of the evaluation kit configurations if it is similar to a custom board but other times not since custom external devices could cause a conflict.  BOSSA is focused solely on programming the flash inside of the SAM device and so is independent of the board's external devices.  So long as one develops a custom board with a crystal and I/O connections capable of communicating with SAM-BA, BOSSA can reliably program the flash without having to worry about external device conflicts.

 

 

I haven't tried it to give appropriate feedback but you can give it a shot

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

After nearly a year since the last post, I should hope they've already figured it out by now ...