uart transmission to Atmel Studio using the Power Debugger interface ?

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

Hi I'm using a SAM L21 Xplained Pro,

1) Is it possible to do uart[aka SERCOM] transmission from the Controller to Atmel Studio using the Power Debugger interface ?

2) Where can I find the schematics for the Power Debugger?

Last Edited: Thu. Feb 15, 2018 - 08:10 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"Dare to be naïve." - Buckminster Fuller

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

 Some thoughts inspired by hands-on experience on design and production of an SMU...

 As a HW guy you know, for sure, that measuring current in uA range becomes non-trivial. Usually you can't just put a shunt, it may require an OA and you need a very accurate standalone ADC. Then, this ADC must be very fast if you want to be able to synchronise your recorded current to CPU running at eg 16 MHz. So, I believe that $100 for a dual-channel UI meter integrated with a GUI IDE is not that much.

 Then, you don't measure energy consumption of DUT running in debug mode. Neither you need current curve to be aligned to every single CPU cycle, etc etc. Having been doing power optimisation for smartphones and watches for several years, I'd be glad to share my experience, but would like to keep the posts short. So, if you have questions, please feel free to ask. I can even get you in touch with real people who made an SMU that can synchronise recorded current to debug messages.

 


Qoitech AB, The Home of Otii Arc, an SMU for every developer

Check out Otii solution at www.qoitech.com

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

Yabusame wrote:
 Some thoughts inspired by hands-on experience on design and production of an SMU...

I wouldn't assume that everyone (or even many?) here are going to know what "SMU" stands for - or what it is ...

 

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

Hi Microzod,

cool handle!

 

You are not allone in thinking this is a usefull piece of equipment.

Analysis of clock by clock power consumption is a well known technique for reverse engineering and testing cryptography stuff.

There are also open source and open hardware designes in that direction.

 

I recall one which was specifically designed for that purpose, but can't remember it's name.

I think it was a kickstarter a few years back, but you should be able to find more info with a bit of searching.

 

Red Pitaya comes to mind, but that is not specifically designed for this goal, but there might be some software for it in that direction.

 

According to Yabusame this "expensive" thing you mention cost USD100 ?

This does not sound expensive to me for a very specialized piece of equipment with a resonably fast ADC & software.

Doing magic with a USD 7 Logic Analyser: https://www.avrfreaks.net/comment/2421756#comment-2421756

Bunch of old projects with AVR's: http://www.hoevendesign.com

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

Paulvdh wrote:
I think it was a kickstarter a few years back, but you should be able to find more info with a bit of searching.
https://www.kickstarter.com/projects/coflynn/chipwhisperer-lite-a-new-era-of-hardware-security

by

NewAE Technology

AES-256 Is Not Enough.™

https://newae.com/

https://github.com/newaetech/chipwhisperer

ChipWhisperer - the complete open-source toolchain for side-channel power analysis and glitching attacks http://chipwhisperer.com

 

"Dare to be naïve." - Buckminster Fuller

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

awneil wrote:

Yabusame wrote:

 Some thoughts inspired by hands-on experience on design and production of an SMU...

 

I wouldn't assume that everyone (or even many?) here are going to know what "SMU" stands for - or what it is ...

 

 

 SMU, source and measure unit. Like http://uk.farnell.com/keysight-technologies/b2901a/precision-source-measure-unit/dp/2491328?ost=B2901A&scope=partnumberlookahead&exaMfpn=true&searchref=searchlookahead&ddkey=http%3Aen-GB%2FElement14_United_Kingdom%2Fw%2Fsearch

or https://www.digikey.com/products/en/test-and-measurement/equipment-specialty/618?k=&pkeyword=&v=1916&FV=ffe0026a&mnonly=0&ColumnSort=0&page=1&quantity=0&ptm=0&fid=0&pageSize=25

combines functionality of power supply and IU meter.

 


Qoitech AB, The Home of Otii Arc, an SMU for every developer

Check out Otii solution at www.qoitech.com