Live data from Hacker News

ARMing a Breadboard – Everyone Should Program an ARM

hackaday.com

71–74 of 74 posts

Re: ARMing a Breadboard – Everyone Should Program an ARM

#71
post #66
post #62

Earlier quoted context omitted.

> At Volume Pricing 8 Bit PICs are pretty much incomparable to ARMs. A quick check on Digikey shows that for 10000 pieces, the cheapest 8 Bit Micro is a PIC10 - 35Cents/Unit (that's for today only)... The cheapest ARM Cortex M3/M0 or even a ARM7 is $1+. I don't think that statement reflects the situation today. Cost differences at the low end have become increasingly narrow, where they are present at all. Using just…

Could you please provide links [to DigiKey]?

Digikey has a pretty good web site for search, start with ARM M0+ and then select for what you want. I picked the 3x3MM QFN package as a selector and got a number of Kinesis parts, here is one that in 100 unit quantities is .50 each. In 10K I'm sure that is under 40 cents. http://www.digikey.com/product-detail/en/MKL03Z8VFG4/MKL03Z8...

This particular part 8K flash and 2K RAM. Now the M0+ is better for these low end parts because it has the Thumb instruction set which gives it better code density than the original M0

Re: ARMing a Breadboard – Everyone Should Program an ARM

#72
post #66

Earlier quoted context omitted.

Could you please provide links [to DigiKey]?

Digikey has a pretty good web site for search, start with ARM M0+ and then select for what you want. I picked the 3x3MM QFN package as a selector and got a number of Kinesis parts, here is one that in 100 unit quantities is .50 each. In 10K I'm sure that is under 40 cents. http://www.digikey.com/product-detail/en/MKL03Z8VFG4/MKL03Z8... This particular part 8K flash and 2K RAM. Now the M0+ is better for these low end…

Thank you, will do :)

Re: ARMing a Breadboard – Everyone Should Program an ARM

#73
post #11

The STM32 dev boards already make this pretty easy. (Although setting up a free toolchain is a bit of a pain.)

Really?, it's pretty easy in my opinion on Debian/Ubuntu at least. I just installed gcc and use openocd to program. I'm fairly sure I just did "sudo apt-get install gcc-arm-none-eabi" for the compiler. http://libopencm3.org/wiki/Main_Page is worth looking at too, in case you haven't seen it.

>I just installed gcc and use openocd to program.

Come on, there's a lot of 'just' there. It's not too bad if you just want to play with the discovery board, but there's very little documentation on how to use the discovery board as a programmer. The official docs for the discovery board don't give you crucial information about jumper settings, and I ended up having to download some bloated Windows tool from STM just to output a suitable .ld script for the STM32F030K6. I'm sure it's not as difficult as it used to be, but it's vastly less straightforward than setting up an AVR toolchain.

To be honest, the page you linked to contains no useful information. I can see that it's some kind of peripheral library. It doesn't look like it does anything in particular that StdPeriph doesn't already do (and 90% of example code uses StdPeripg). Plus the github page warns that the API is unstable. Again, compare to AVR. The arm tools are much better of course, but it's so much harder for a beginner to find answers to simple questions. E.g., can I reset an STM32F0K6 with only two pins using OpenOCD and the STLink programmer on the discovery board? (The answer appears to be yes, but it's not readily googleable.)

Re: ARMing a Breadboard – Everyone Should Program an ARM

#74
post #11

The STM32 dev boards already make this pretty easy. (Although setting up a free toolchain is a bit of a pain.)

Maybe 3-4 years ago. With the Launchpad version of gcc for ARM controllers, OpenOCD and gdb, it is a breeze now.

It's very poorly documented compared to AVR. It's not even immediately clear from googling what the preferred tools are. Try googling "open source arm cortex m0 toolchain".
Post reply on HN