SAM BA Bootloader for SAM D21 in IAR Workbench

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

Hey everyone,

 

I want to modify SAM BA bootloader for SAM D21 and adapt it for my project. My target device is ATSAMD21J18A and I would use USB CDC for bootloading.

I referred the application note "Atmel AT07175: SAM-BA Bootloader for SAM D21" and downloaded source files from here.

 

Now when I program my ATSAMD21J18A and connect it to computer, I get an "UNKNOWN DEVICE" error.

But at the same time if I program ATSAMD21J18A with pre-compiled binary files (which came along with source code zip file) then it works absolutely fine.

 

How can I solve it?

 

 

please help me~

thanks~

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

Did you try the example project in Atmel Studio already? It's a bit big in code size but did work (for SAMD21) when I tried it (this was a while ago though).

/Lars

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

Actually there is a better source for reading about this and a newer version to download is linked from here:

http://microchipdeveloper.com/atstart:sam-d21-bootloader

/Lars

 

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

ok,thanks~