SAMD20 bootloader - how to access flash

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

Hi,

 

I downloaded the SAMD20 BA source code from this link which Lajon provided (thanks Lajon)

 

In the entire project there are only 3 .c files

main.c

sam_ba_monitor.c

usart_sam_ba.c

 

Where are the files which contain code for reading/writing/erasing the flash?

 

thanks for your help.

Yogi

 

 

 

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

YogiWannabe wrote:
I downloaded the SAMD20 BA source code from this link 
 

Really? That link is just datasheets.

 

Did you mean this: http://www.atmel.com/tools/ATMELSAM-BAIN-SYSTEMPROGRAMMER.aspx ?

 

Documents: http://www.atmel.com/tools/ATMELSAM-BAIN-SYSTEMPROGRAMMER.aspx?tab=documents

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:

YogiWannabe wrote:
I downloaded the SAMD20 BA source code from this link 
 

Really? That link is just datasheets.

 

Did you mean this: http://www.atmel.com/tools/ATMELSAM-BAIN-SYSTEMPROGRAMMER.aspx ?

 

Documents: http://www.atmel.com/tools/ATMELSAM-BAIN-SYSTEMPROGRAMMER.aspx?tab=documents

 

 

 

When using my link, you have to select 'Application Notes ' in the combo box.

 

I downloaded the code from the link that you gave. It has the top level user app that uses different interfaces to send commands to the bootloader. What I really need is the bootloader code that does the actual erase/write/read of the Flash in the SAMD20 chip so I can update the FW. Do you know where I can find that code?

 

thanks for your help

Yogi

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