Learning Cortex M0 and M0+ ARM controller

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

Hi, I am new with the Cortex M0 MCU and I have a evaluation board of Atmel, the SAMB11 Xplained PRO, this is BLE with an integrated Cortex M0 MCU. I found the datasheet but not the programmers guide of this chip and I think the datasheet is very briefly. I want to learn to program embedded C with this MCU and  I am looking for a good beginners book or the verbose documentation especially for this controller. Can somebody helps me with some suggestions.

 

For example, I want to make a blinking example, it is not clear how to make my own delay_ms function, because in the ASF it is missing for this MCU. I want to learn how I can use the right registers to make a timer etc.

 

 

 

Last Edited: Thu. Jun 23, 2016 - 03:25 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

 

Try these steps:

1) Install Atmel Studio 7 (AS7). It is free online. On the way install all the libraries and examples when prompted

2) Open AS7 and go to file->new -> example project

3) On the left select your kit (SAMB11)

4) Select the example that you want to run e.g. "iBeacon Application - SAMB11 Xplained Pro." and press ok

 

From there you should be able to compile and download your application fairly easily. If not then your installation of the AS7 is probably wrong. This guy might also help in case you are using the atmel ICE

 

https://www.youtube.com/watch?v=...

 

 

Hm. I can't seem to locate the full datasheet for the SAMB11 as well (if that's what you mean). I can only find this:

http://www.atmel.com/images/atme...

 

Which seems to be a preliminary datasheet. Anyone has an idea where to find the actual full datasheet. Can one request it from atmel and get it?

On the other hand maybe I didn't look hard enough.

 

 

 

 

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

marpan70 wrote:
Hi, I am new with the Cortex M0 MCU

Do you have any experience with any other microcontrollers?

 

... BLE with an integrated Cortex M0 MCU ... I want to learn to program embedded C with this MCU

I don't think that's a very good choice for learning embedded 'C' !

 

BLE adds a huge amount of complication - you really don't want all that in the way if you're just learning 'C' !

 

I would strongly suggest that you start with a SAM D20 or D21 for  learning embedded 'C'.

 

(actually, for learning the 'C' programming language, I would recommend not doing that on a microcontroller at all: learn the language on PC first - then apply that on a micro)

 

Here are some 'C' learning & reference resources: http://blog.antronics.co.uk/2011...

 

and  I am looking for a good beginners book or the verbose documentation especially for this controller.

I don't think you'll find that - because it is not a beginners controller!

 

Can somebody helps me with some suggestions.

See above - I suggest a SAM D20 or D21 for the  learning phase.

 

For example, I want to make a blinking example, it is not clear how to make my own delay_ms function, because in the ASF it is missing for this MCU. I want to learn how I can use the right registers to make a timer etc.

You will get all that with the SAM D20 or D21 XPlained Pro board.

 

I also recommend Joseph Yiu's excellent Definitive Guide to ARM® Cortex®-M0 and Cortex-M0+ 

The Definitive Guide to ARM® Cortex®-M0 and Cortex-M0+ Processors, 2nd Edition,Joseph Yiu,ISBN9780128032770

http://store.elsevier.com/The-De...

 

 

 

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: thank you for the link of the book, this is a book where I am looking for.

I have experience with controllers of Microchip.

I will take account of your advise to look at the Cortex D20/21 controller.