SAM-BA success with micro-sam-ba

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

One of the problems I need(ed) to solve for my project was how to load the code in "production" and perhaps do field firmware updates. I really wanted to be able to do it over USB, and SAM-BA seemed like the answer, but I couldn't get it to work until I found https://github.com/atmelcorp/mic... .

With that code, I can load in my project's .bin file, set the GPNVM bits the way I like them and it works. I've tried the various SAM-BA Windows (GTK) UI and command line downloads, and couldn't get any of them to work (or figure them out), but micro-sam-ba works great!

 

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

nsayer wrote:
load the code in "production"

Surely, you'd use the JTAG/SWD for that?

(if the chips don't come pre-loaded with a bootloader, you'll need that to load the bootloader in the first place anyhow)

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

This is a lot easier than SWD/JTAG and it also proves that USB works as a side effect. It also means I don’t have to populate the JTAG/SWD header for production builds.

And the S70 *does* come with SAM-BA in ROM, or I wouldn’t be able to do it that way.

Last Edited: Tue. Oct 3, 2017 - 01:20 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

nsayer wrote:
This is a lot easier than SWD/JTAG

Not usually.

Usually, production lines are equipped to use JTAG or SWD - not having to plug-in a USB connector!

It also means I don’t have to populate the JTAG/SWD header for production builds.

You wouldn't do that anyway - you'd use spring probes direct onto the board.

 

And the S70 *does* come with SAM-BA in ROM

True;  but this is in a general Cortex-M forum - some of them don't.

 

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

awneil wrote:

nsayer wrote:

This is a lot easier than SWD/JTAG

 

Not usually.

Usually, production lines are equipped to use JTAG or SWD - not having to plug-in a USB connector!

It also means I don’t have to populate the JTAG/SWD header for production builds.

You wouldn't do that anyway - you'd use spring probes direct onto the board.

"production" in this case is me making them in my garage (that's why I put it in scare-quotes). If it were an assembly line, I agree things would be different. That said, I *still* think it might be useful to break-out the USB lines instead of JTAG and do it this way. More of the system gets tested as a side effect of loading (in particular, it would test the 5->3.3v buck converter if you supplied 5 volts via usb instead of 3.3v via JTAG).

Quote:

 

And the S70 *does* come with SAM-BA in ROM

True;  but this is in a general Cortex-M forum - some of them don't.

 

I should have mentioned in the first post this was specifically an S70.

Last Edited: Tue. Oct 3, 2017 - 04:10 PM