Feather M0 + ATMEL tutorial setup

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

I want to ask some1 who was able to do this, to explain me how to make a setup for Atmel Studio 7. I want to be able to program the microcontroller, with Atmel code and also to use some of Arduino libraries. If it is possible also to specify how you need to setup BOSSa to upload the Sketch.cpp on uC.

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

Well. I have both arduino and studio on this computer and I use arduino to make sketches and studio for other avr work.

274,207,281-1 The largest known Mersenne Prime

Measure twice, cry, go back to the hardware store

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

Hallo Nikel1992!

 

I recently got an Atmel Start project working for the Feather M0, with the USB as a serial port, I am attaching the project file, hope it helps

 

In the main.c there are some comments on getting Bossac running

 

Note that tis is a project created with the Atmel Start Web (start.atmel.com) interface and not with the older Atmel Software framework.

 

It basically has the usb port running as a serial port, reading some ADC values, and reading and setting some gpio pins

 

Regards

 

Gert

Attachment(s): 

Last Edited: Fri. Aug 11, 2017 - 09:08 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Nikel1992 may have been abducted by aliens in the past 13 months....

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Hello Nikel1992.

There is a visual micro plugin you can install for Atmel studio to allow you to program Arduino boards directly from Atmel studio. That's what i been using for my projects.

Here is the link for visual micro:http://www.visualmicro.com

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

Hi John!

 

Or he was beamed up by a Scotty from a parallel universe?

 

Ive just learned out of experience that there are often a lot of people battling with the same problem, particularly in the embedded field when you want to do something that is a bit out of the ordinary - like running a Feather M0 with Atmel Studio, instead of taking the easy way like using the pre set up Arduino IDE that the other 99% of the world uses with the Feather M0.

 

Many a time in the past I got stuck on an elementary simple thing for days, and then it is an obscure post in a forgotten thread that has the answer, thus my reason for posting on a year old thread, because I surely know that someone else somewhere is by chance also going to do a google search for the same thread title that Ive searched for, and then for that poor guy the answer will be available and he wont have to battle for days.

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

jzheng wrote:
There is a visual micro plugin you can install for Atmel studio

That was for Atmel Studio 6 - it is not needed for Atmel Studio 7

 

 

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

Hallo There!

Ive had some time to play with the Feather M0/SAMD21G18 on Atmel Studio (Start.Atmel.com) again, and figured a few things in the meantime

I now have the ADC returning consistent values, it needs to work at max 2.1MHz, and input must be between 0V and 2.23V (3.3/1.48)

The USB still works as a COM port, outputting values to Putty

I have set the clocks as follows CPU 24MHz, USB 48MHz, ADC 2MHz

I still need to play with the ADC, currently using it in sync mode, and only getting about 31000 reliable samples per second, I however need about 170ksps for what I want to do. 

I tried the ADC in Async mode with a callback, but havent managed to get reliable values, about each 3rd value is valid . . . still trying. My gut feel is that I will end up using the ADC in DMA mode, but I am unable to find any samples of using ADC_DMA with ASF4 as presented with start.atmel

Hope this helps someone out there.

Attachment(s): 

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

Well done on picking a silly font size - I find that text almost unreadable as all the descenders are missing!

 

Moderator

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

I wonder if it was copied & pasted from somewhere else ... ?

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

I find that text almost unreadable as all the descenders are missing!

That would be caused by your browser.

 

Looks fine in my browser.  If a bit big.

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"Read a lot.  Write a lot."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

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

Are you sure?

 

It looks like the lines are too closely spaced for the size of the font - is that the fault of the browser, or the fault of the forum?

 

On Chrome the descenders are missing 

 

EDIT

 

that is to say, the leading is wrong

Last Edited: Tue. Dec 5, 2017 - 07:50 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I assume we're talking about #8?

 

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"Read a lot.  Write a lot."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

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

Yes:

 

 

EDIT

 

That's Chrome on Win7-Pro

 

EDIT 2

 

Your browser seems to have squashed the tops of the characters - especially the tall ones; Chrome is chopping off the descenders.

 

Looks like the fault is with the forum sending badly-formatted stuff, and the browsers are doing what they can to make the best of a bad job - which is not quite right in either case.

Last Edited: Tue. Dec 5, 2017 - 11:08 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Looks just like mine on FF.

 

The descenders aren't so much missing as they are foreshortened:

 

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"Read a lot.  Write a lot."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

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

That bit of text is OK, because there's nothing immediately below it.

 

But look at the word "Async" near the beginning of that line.

 

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

Your browser seems to have squashed the tops of the characters

I don't see where:

 

 

 

That bit of text is OK, because there's nothing immediately below it.

 

But look at the word "Async" near the beginning of that line.

I pulled that zoom-in from my screenshot, not yours.

 

Mine:

 

 

Yours:

 

 

I'm using FF 20.0 at the moment (yes, ancient).  On another machine with 57.0.1 I sometimes see what you're seeing, but only very slightly, and it appears to be dependent upon the CTRL+/- zoom level I'm at.  Some zoom levels seem to lose the last raster line of the character row, cropping the descender a bit.

 

In my view this is a rendering issue on the browser end.  Yes, the forum could avoid offering font/line-height choices which might result in bad rendering on the browser end, but this is a fairly minor issue in the grand scheme of things.

 

And thus ends my departure from the subject of this thread ;-)

 

 

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"Read a lot.  Write a lot."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

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

No problem with Mac Sierra.The font is abysmal but, for me, not because of missing descenders. It just looks ugly.

 

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

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

joeymorin wrote:

Your browser seems to have squashed the tops of the characters

I don't see where

Look at "your" uppercase Bs vs "my" uppercase Bs ...

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

Look at "your" uppercase Bs

OK:

 

vs "my" uppercase Bs ...

 

 

Mine is foreshortened, but not cropped.  That's a consequence of font mapping, I'd wager.

 

Also, remember that the image I pasted into #13 (and the one you pasted into #14) will itself get scaled by your browser when you change the zoom level with CTRL-/+.  That scaling is often done with low fidelity.  That is, there is aliasing such that some raster lines (and columns) will be completely omitted from the render.  This, compounded by the sometimes poor rendering of the text in the first place, can make it look pretty awful.

 

The screenshot I pasted in #13 (and from which I selected regions for zooming later) was taken with the zoom level at 80%.  Here's a screenshot of the post in question (#8) at a normal 100% zoom:

 

No foreshortening.

 

Further, I'd hazard a guess that the different results you and I get are primarily a consequence of the way in which the OS and the browser reconcile the mapping of the chosen font, which is specified in the HTML as "font-family:proxima nova,lucida grande,lucida sans unicode,lucida sans,geneva,verdana,sans-serif".  None of the four named font families (proxima nova, lucida, geneva, veranda) are installed in my system, so I presume the OS/browser default to the last specified: 'sans-serif'.  The default sans-serif family on my machine is likely to be 'Libration Sans'.  As you are using Windows, I'd expect yours to be 'Arial' or some such.  Those are different fonts, and they will render differently, even if the process of rendering is identical on your and my OS/browser.

 

Can we be done with this now? ;-)

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"Read a lot.  Write a lot."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

Last Edited: Wed. Dec 6, 2017 - 01:49 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No - let's carry on while we wait for the OP to come back ...

 

cheeky

 

although, on past performance, this is probably just another of his fire-and-forget posts

 

frown