Author Topic: Thoughts on Atmel/Freescale/STM/XMOS Microcontrollers?  (Read 17836 times)

0 Members and 1 Guest are viewing this topic.

Offline CM800Topic starter

  • Frequent Contributor
  • **
  • Posts: 882
  • Country: 00
Thoughts on Atmel/Freescale/STM/XMOS Microcontrollers?
« on: February 02, 2015, 01:25:39 pm »
Hey guys,
I'm looking into designing stuff commercially to do with industrial controllers and drives.

I am trying to pick out a few microcontroller boards for this kind of thing, One of the processers that caught my eye were:
http://uk.farnell.com/atmel/atsam4s-ek2/eval-sam4s8-sam4s16-cortex-m4/dp/2215340

What is the general opinion on this stuff?

I am ideally looking for a MCU with these kinds of specs:
High speed
Integrated USB
UART outputs
CAN is a bonus I would appreciate.


Does anyone have any recommendations?
« Last Edit: February 02, 2015, 08:56:31 pm by TCWilliamson »
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28869
  • Country: nl
    • NCT Developments
Re: Thoughts on SAM4S Microcontrollers?
« Reply #1 on: February 02, 2015, 02:12:46 pm »
Read Atmel's datasheets very carefully. I have blacklisted Atmel because they have proven to be way too optimistic in their specifications. If they specify a device for a minimum voltage of 3.3V it can't run at 3.3V in real world applications.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline CM800Topic starter

  • Frequent Contributor
  • **
  • Posts: 882
  • Country: 00
Re: Thoughts on SAM4S Microcontrollers?
« Reply #2 on: February 02, 2015, 06:15:58 pm »
Read Atmel's datasheets very carefully. I have blacklisted Atmel because they have proven to be way too optimistic in their specifications. If they specify a device for a minimum voltage of 3.3V it can't run at 3.3V in real world applications.

Okay!

Does anyone have any recommended ones?
 

Offline JoeN

  • Frequent Contributor
  • **
  • Posts: 991
  • Country: us
  • We Buy Trannies By The Truckload
Re: Thoughts on SAM4S Microcontrollers?
« Reply #3 on: February 02, 2015, 07:16:33 pm »
It seems to me that Freescale is very competitive in this area, on price and also on features.  I looked at their ARM (Kenetis) offerings that have both USB and CAN and found this:

name            price            flash                     RAM         speed         easiest package         datasheet

K21_120      $4.60-$5.51   512,1024         128            120Mhz      QFP 144      http://cache.freescale.com/files/32bit/doc/data_sheet/K21P144M120SF5V2.pdf
K24_120      $3.67-$7.92   256,1024         256            120Mhz      QFP 100      http://cache.freescale.com/files/microcontrollers/doc/data_sheet/K24P144M120SF5.pdf
K40_100      $4.52-$5.57   128,256,512   32,64,128   100Mhz      QFP 80      http://cache.freescale.com/files/32bit/doc/data_sheet/K40P100M100SF2V2.pdf
K40_72      $2.99-$4.15      64,128,256      16,32,64   72Mhz      QFP 80      http://cache.freescale.com/files/32bit/doc/data_sheet/K40P100M72SF1.pdf
K64_120      $5.77-$8.29   512,1024         196,256      120Mhz      QFP 144      http://cache.freescale.com/files/microcontrollers/doc/data_sheet/K64P144M120SF5.pdf

Prices are for reels, don't expect to get that if you order 100, but I think all of these are available as samples and you can get 5 of each (from experience).  Choose three and sample five of each of them.  I didn't put down all the features, some of these have very good ADCs and DACs and LCD drivers, as well as a couple of them contain FPUs.  Freescale's development environment is free to download.  Freescale has a lot of development boards, but if you put in an order for samples you will have it this week easy.  All you need as a QFN adapter board and making your own development board is IMHO worth the time to prove to yourself that you know what you are doing with the IC.

CodeWarrior for Microcontroller 10.6 Free Edition restrictions:  The Special Edition license is automatically installed with your product and you do not need to register it. This license allows you to develop projects with unlimited assembly code; up to 64KB of C code for ColdFire+, V1 ColdFire, DSC, Kinetis L Series, RS08, S08 derivatives; up to 128KB of C code for Kinetis K Series and V2-V4 ColdFire derivatives; and up to 512KB for Qorivva and PX derivatives.

I have no idea how easy or hard it is to code for the CAN or USB interfaces on these microcontrollers.  Anyone know?
« Last Edit: February 02, 2015, 07:23:55 pm by JoeN »
Have You Been Triggered Today?
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28869
  • Country: nl
    • NCT Developments
Re: Thoughts on SAM4S Microcontrollers?
« Reply #4 on: February 02, 2015, 07:46:36 pm »
I'd stick to NXP or ST. These seem to be the main players in ARM country judging from the ARM based projects mentioned on this blog.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Thoughts on SAM4S Microcontrollers?
« Reply #5 on: February 02, 2015, 07:49:26 pm »
Quote
CodeWarrior for Microcontroller 10.6 Free Edition restrictions

Try KDE.
================================
https://dannyelectronics.wordpress.com/
 

Offline CM800Topic starter

  • Frequent Contributor
  • **
  • Posts: 882
  • Country: 00
Re: Thoughts on SAM4S Microcontrollers?
« Reply #6 on: February 02, 2015, 07:52:47 pm »
It seems to me that Freescale is very competitive in this area, on price and also on features.  I looked at their ARM (Kenetis) offerings that have both USB and CAN and found this:

name            price            flash                     RAM         speed         easiest package         datasheet

K21_120      $4.60-$5.51   512,1024         128            120Mhz      QFP 144      http://cache.freescale.com/files/32bit/doc/data_sheet/K21P144M120SF5V2.pdf
K24_120      $3.67-$7.92   256,1024         256            120Mhz      QFP 100      http://cache.freescale.com/files/microcontrollers/doc/data_sheet/K24P144M120SF5.pdf
K40_100      $4.52-$5.57   128,256,512   32,64,128   100Mhz      QFP 80      http://cache.freescale.com/files/32bit/doc/data_sheet/K40P100M100SF2V2.pdf
K40_72      $2.99-$4.15      64,128,256      16,32,64   72Mhz      QFP 80      http://cache.freescale.com/files/32bit/doc/data_sheet/K40P100M72SF1.pdf
K64_120      $5.77-$8.29   512,1024         196,256      120Mhz      QFP 144      http://cache.freescale.com/files/microcontrollers/doc/data_sheet/K64P144M120SF5.pdf

Prices are for reels, don't expect to get that if you order 100, but I think all of these are available as samples and you can get 5 of each (from experience).  Choose three and sample five of each of them.  I didn't put down all the features, some of these have very good ADCs and DACs and LCD drivers, as well as a couple of them contain FPUs.  Freescale's development environment is free to download.  Freescale has a lot of development boards, but if you put in an order for samples you will have it this week easy.  All you need as a QFN adapter board and making your own development board is IMHO worth the time to prove to yourself that you know what you are doing with the IC.

CodeWarrior for Microcontroller 10.6 Free Edition restrictions:  The Special Edition license is automatically installed with your product and you do not need to register it. This license allows you to develop projects with unlimited assembly code; up to 64KB of C code for ColdFire+, V1 ColdFire, DSC, Kinetis L Series, RS08, S08 derivatives; up to 128KB of C code for Kinetis K Series and V2-V4 ColdFire derivatives; and up to 512KB for Qorivva and PX derivatives.

I have no idea how easy or hard it is to code for the CAN or USB interfaces on these microcontrollers.  Anyone know?


Thanks for this information, I do worry about the restrictions and so on, also ease of programming.

I have had a look at STM32 and I just find it rather complex and a lot of code to do simple things. Not much useful tutorial/ documentation either.
« Last Edit: February 02, 2015, 07:57:53 pm by TCWilliamson »
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28869
  • Country: nl
    • NCT Developments
Re: Thoughts on SAM4S Microcontrollers?
« Reply #7 on: February 02, 2015, 08:00:04 pm »
Did you read Zapta's thread on using an NXP controller?
https://www.eevblog.com/forum/microcontrollers/introducing-the-arm-pro-mini-board-arm-made-eazy/

IMHO this is a well paved road into ARM.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Thoughts on SAM4S Microcontrollers?
« Reply #8 on: February 02, 2015, 08:05:46 pm »
Quote
I have had a look at STM32 and I just find it rather complex and a lot of code to do simple things. Not much useful tutorial/ documentation either.

They are all quite "complex".

I would summarize it this way:

ST: OK chip at cheap prices. Nothing stands out so an all-round winner. Dominates Cortex-M3.
NXP: pricy chips with limited features. Proven design. Worst software support of all vendors.
TI: premium chips with lots of features. Buggy. CM4 focused.
Freescale: premium chips with great software support. CM0/CM4 focused.
Others: more or less specialty vendors.

So if you are poor, go with ST; If have lots of money, go with Freescale.
================================
https://dannyelectronics.wordpress.com/
 

Offline CM800Topic starter

  • Frequent Contributor
  • **
  • Posts: 882
  • Country: 00
Re: Thoughts on SAM4S Microcontrollers?
« Reply #9 on: February 02, 2015, 08:25:17 pm »
Ouch my wallet....
http://www.freescale.com/webapp/sps/site/overview.jsp?code=CW_SUITES&tid=CWH


Thanks for your advice. Does anyone have any good experience with USB and so on?

Also, lifetime of the micro-controller is important as this will be in an industrial application. How do things look in that direction?
 

Offline dgtl

  • Regular Contributor
  • *
  • Posts: 183
  • Country: ee
Re: Thoughts on SAM4S Microcontrollers?
« Reply #10 on: February 02, 2015, 08:40:12 pm »
My observations:

ST: Cheap and OK chip. No vendor-provided dev environment, but multiple free options available in addition to paid options. There is ST-provided driver library, but it is limited, its code quality is low and its footprint is huge. For commercial quality projects, prepare to write whole bare-metal code yourself. Some parts of datasheets are not so easy to read; some information is quite well hidden or not there at all. Things are not consistent at all, expect mix of different styles and quality. USB stack is terrible if you want to use USB.
NXP: More expensive chips. Quite cheap LPCXpresso boards. The vendor-provided libraries work well, but lately they have added too many options and everything starts to get to a mess; you have to read documentation to understand how to use things. Still, everything works well out-of-the-box, just prepare to read some documentation and be prepared for some wtf moments. Datasheets are OK.
TI: Haven't used, but when looking at the history and errata sheets, everything seems very buggy. It will take TI a huge effort to come out of this hole they have dug themselves into.
Freescale: Haven't used Cortex-M.
Silabs Energy Micro EFM32: Good chips, a little on expensive side. Good datasheets. Their vendor-provided tools work well and are easy to use.
Cypress PSoC: a different view on hardware. FPGA/HW guys will like the configurable blocks. Tools work well (windows-only). Chips have been on pricier side for long time; prices have been dropping in recent times. The debugger was more expensive than others. Getting documentation from web site requires registration and you'll get some e-mails now and then with questions like "how did you like that file you downloaded recently".
Spansion / Fujitsu FM4: haven't tried
Atmel: Won't use. Too many disappointments on all product ranges (AVR, SAM3S, SAM9). A lot of marketing bullshit, real world is different. Datasheets are very well written.
 

Offline CM800Topic starter

  • Frequent Contributor
  • **
  • Posts: 882
  • Country: 00
Re: Thoughts on SAM4S Microcontrollers?
« Reply #11 on: February 02, 2015, 08:44:39 pm »
My observations:

ST: Cheap and OK chip. No vendor-provided dev environment, but multiple free options available in addition to paid options. There is ST-provided driver library, but it is limited, its code quality is low and its footprint is huge. For commercial quality projects, prepare to write whole bare-metal code yourself. Some parts of datasheets are not so easy to read; some information is quite well hidden or not there at all. Things are not consistent at all, expect mix of different styles and quality. USB stack is terrible if you want to use USB.
NXP: More expensive chips. Quite cheap LPCXpresso boards. The vendor-provided libraries work well, but lately they have added too many options and everything starts to get to a mess; you have to read documentation to understand how to use things. Still, everything works well out-of-the-box, just prepare to read some documentation and be prepared for some wtf moments. Datasheets are OK.
TI: Haven't used, but when looking at the history and errata sheets, everything seems very buggy. It will take TI a huge effort to come out of this hole they have dug themselves into.
Freescale: Haven't used Cortex-M.
Silabs Energy Micro EFM32: Good chips, a little on expensive side. Good datasheets. Their vendor-provided tools work well and are easy to use.
Cypress PSoC: a different view on hardware. FPGA/HW guys will like the configurable blocks. Tools work well (windows-only). Chips have been on pricier side for long time; prices have been dropping in recent times. The debugger was more expensive than others. Getting documentation from web site requires registration and you'll get some e-mails now and then with questions like "how did you like that file you downloaded recently".
Spansion / Fujitsu FM4: haven't tried
Atmel: Won't use. Too many disappointments on all product ranges (AVR, SAM3S, SAM9). A lot of marketing bullshit, real world is different. Datasheets are very well written.


Thanks for that, really quite useful point-outs there.

Does anyone have any thoughts on XMOS multi-core MCUs? they seem very fancy and look bloody useful too.

Have a look here

I also found this video that seems very interesting:

« Last Edit: February 02, 2015, 09:02:56 pm by TCWilliamson »
 

Offline donotdespisethesnake

  • Super Contributor
  • ***
  • Posts: 1093
  • Country: gb
  • Embedded stuff
Re: Thoughts on SAM4S Microcontrollers?
« Reply #12 on: February 02, 2015, 09:35:27 pm »
Ouch my wallet....
http://www.freescale.com/webapp/sps/site/overview.jsp?code=CW_SUITES&tid=CWH

Thanks for your advice. Does anyone have any good experience with USB and so on?

Also, lifetime of the micro-controller is important as this will be in an industrial application. How do things look in that direction?

For Freescale ARM chips, look at Kinetis Design Studio instead. It is free and unlimited for most if not all of the Kinetis range. I think that is the best deal of all the vendors; the others seem to provide a limited free edition. The quality of the free software provided is a moot point :) Freescale use the opportunity to promote their non-free middleware of course.

I know that Atmel and Freescale have longevity programs, for what that is worth. TI dropped a whole range of Stellaris devices recently... that caught a lot of people out.

I haven't used other vendors professionally, only hobby, but the points given here by others echo what I have read from various sources. I would say Freescale/STM have the edge currently.
Bob
"All you said is just a bunch of opinions."
 

Offline CM800Topic starter

  • Frequent Contributor
  • **
  • Posts: 882
  • Country: 00
Re: Thoughts on Atmel/Freescale/STM/XMOS Microcontrollers?
« Reply #13 on: February 02, 2015, 09:45:54 pm »
Well, it seems freescale's may be the best option, I shall have a look at it... when I get my confirmation email for my account, haha!
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28869
  • Country: nl
    • NCT Developments
Re: Thoughts on Atmel/Freescale/STM/XMOS Microcontrollers?
« Reply #14 on: February 02, 2015, 10:00:14 pm »
I'd look at the programming solution first. Years ago I ventured into trying Freescale's Coldfire processors. It turned out the programmer costed a lot of money making it impracticle to hand out several to field engineers. NXP ARM controllers OTOH can be programmed using nothing more than a simple USB to serial converter which can also be used to deal with a command line interface.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Thoughts on Atmel/Freescale/STM/XMOS Microcontrollers?
« Reply #15 on: February 02, 2015, 10:04:18 pm »
Quote
it seems freescale's may be the best option

It certainly is for some, like demanding mixed signal applications, performance-driven high reliability applications (automotive, power supplies), etc. Those guys have a huge share of the mcu market for really good reasons.

But you have to pay dearly for that. So for others, it may not be the best option.
================================
https://dannyelectronics.wordpress.com/
 

Offline CM800Topic starter

  • Frequent Contributor
  • **
  • Posts: 882
  • Country: 00
Re: Thoughts on Atmel/Freescale/STM/XMOS Microcontrollers?
« Reply #16 on: February 03, 2015, 12:04:12 am »
I shall have to look at it with my boss come tomorrow, I'll show what you guys have said, does anyone else have any good input or thoughts my boss should know on choosing one?
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28869
  • Country: nl
    • NCT Developments
Re: Thoughts on Atmel/Freescale/STM/XMOS Microcontrollers?
« Reply #17 on: February 03, 2015, 12:46:17 am »
The best way is to try a few. It takes time but it is the only way to make a good comparison.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline JoeN

  • Frequent Contributor
  • **
  • Posts: 991
  • Country: us
  • We Buy Trannies By The Truckload
Re: Thoughts on Atmel/Freescale/STM/XMOS Microcontrollers?
« Reply #18 on: February 03, 2015, 01:21:55 am »
This is the Freescale programmer I have that seems to be the normal way to program their chips:

http://www.pemicro.com/products/product_viewDetails.cfm?product_id=15320137
http://www.digikey.com/product-search/en?KeyWords=U-MULTILINK-ND

It is supported directly in Codewarrior.  The funny thing is I look at my records and I got this from Digikey for $119 on 5/17/2013 and it is now $199.  That is not the direction programmer prices are supposed to be going in, it's a little bit unwise for Freescale to allow that to happen.  Compared to a lot of other programmers these days, $199 is expensive, but it does every Freescale family:  Kinetis (includes L-Series), Qorivva MPC5xxx, ColdFire +V1/ColdFire V1, ColdFire V2/3/4, HC(S)12(X), S12Z,    HCS08, RS08, DSC.  See details, etc.
Have You Been Triggered Today?
 

Offline andersm

  • Super Contributor
  • ***
  • Posts: 1198
  • Country: fi
Re: Thoughts on Atmel/Freescale/STM/XMOS Microcontrollers?
« Reply #19 on: February 03, 2015, 02:09:45 am »
Are there any Cortex-M devices that don't have a standard ARM JTAG or SWD interface? Unless you really really want to tie yourself to the manufacturer's tools you're IMO much better off getting a universal interface. Eg. even if you want to use vendor-specific development environments, Segger's J-Link is supported almost everywhere.

Offline ElektroQuark

  • Supporter
  • ****
  • Posts: 1245
  • Country: es
    • ElektroQuark
Re: Thoughts on Atmel/Freescale/STM/XMOS Microcontrollers?
« Reply #20 on: February 03, 2015, 08:25:26 am »
Yes, J-Link is the way to go. Freescale ARMs are supported.
Forget about CodeWarrior (they will drop Codewarrior support for new Kinetis devices), the recommended IDE, from Freescale, now is KDE (Kinetis Design Studio). KDE is free with no limits.

Offline JoeN

  • Frequent Contributor
  • **
  • Posts: 991
  • Country: us
  • We Buy Trannies By The Truckload
Re: Thoughts on Atmel/Freescale/STM/XMOS Microcontrollers?
« Reply #21 on: February 03, 2015, 08:33:59 am »
Yes, J-Link is the way to go. Freescale ARMs are supported.
Forget about CodeWarrior (they will drop Codewarrior support for new Kinetis devices), the recommended IDE, from Freescale, now is KDE (Kinetis Design Studio). KDE is free with no limits.

I did not know that.  I do know that J-Link has an "EDU" non commercial and very cheap version that I own as I am a hobbyist.  Should not be used for commercial production.  I have to look at that KDE software.
Have You Been Triggered Today?
 

Offline CM800Topic starter

  • Frequent Contributor
  • **
  • Posts: 882
  • Country: 00
Re: Thoughts on Atmel/Freescale/STM/XMOS Microcontrollers?
« Reply #22 on: February 03, 2015, 06:15:18 pm »
Thank you for all your replies, I have bookmarked this thread and shall be refering to it when I need to, I believe Freescale may be the choice however I need to talk with our overseas engineer to make some decisions (long long company pipelines y'know?)
 

Offline JoeN

  • Frequent Contributor
  • **
  • Posts: 991
  • Country: us
  • We Buy Trannies By The Truckload
Re: Thoughts on Atmel/Freescale/STM/XMOS Microcontrollers?
« Reply #23 on: February 03, 2015, 08:05:39 pm »
I think any first choice should always be probational.  Get some samples, make sure you can get the USB and CAN bus up to your liking and a very simple version of what you are trying to accomplish up and running on the device.  If that works and you are comfortable with the device, and the devices are available and the right price for your project, then you can make a commitment.  At some point it needs to be a commitment though because a lot of the code that has to do with USB and CAN buses will be very vendor-specific even if your algorithms are in C and are portable.
Have You Been Triggered Today?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf