Guide: "I'm new here - which board should I buy?"

User avatar
RogerClark
Posts: 6880
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Guide: "I'm new here - which board should I buy?"

Post by RogerClark » Wed Nov 04, 2015 11:22 pm

Is this board fully compatible with the drivers and other software for the Arduino IDE 1.6?
Kind'a depends what you mean by "fully compatible"

You can write sketches and upload to this board from the IDE 1.6, however the STM32 core does not support absolutely all the features in the AVR core e.g. I2C slave is not currently supported.
Nor will some existing AVR sketches work, especially those which directly access the AVR hardware.
Additionally, the STM32 is a 32 bit processor and AVR is 8 / 16 bit, so the compiler is different and also some of the built in types e.g. double is not the same as double on AVR (nor is the int data type).

Also in general don't expect AVR libraries to just work. Some AVR libs specify they are AVR only, but just need the meta data to be changed, however some libs need to be reworked a lot to get them to work on a 32bit ARM environment.

Technik
Posts: 2
Joined: Wed Nov 04, 2015 8:02 pm
Location: Moldova

Re: Guide: "I'm new here - which board should I buy?"

Post by Technik » Thu Nov 05, 2015 2:22 pm

To be honest, that scares me a little.
Can I upload via USB without using a USB to Serial converter?
For example, if I want to see if the board is working, how will the simplest blink sketch look like?
And what about pin mapping?

User avatar
mrburnette
Posts: 1803
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Guide: "I'm new here - which board should I buy?"

Post by mrburnette » Thu Nov 05, 2015 7:35 pm

Technik wrote:To be honest, that scares me a little.
Can I upload via USB without using a USB to Serial converter?
For example, if I want to see if the board is working, how will the simplest blink sketch look like?
And what about pin mapping?

It should scare you: Roger was being truthful but let me just add this: the Maple Mini STM32 is not Arduino AVR compatible and while the forum is a great place to ask for help, you really are on your own as the expectation is that you are an advanced experimenter and a decent C++ programmer and competent to hack non-ported libraries.

Some of my examples...
https://github.com/rogerclarkmelbourne/ ... teExamples

But, the Maple Mini is only $4, so why not try one out for yourself?


Ray

My Projects, some STM32:
http://www.hackster.io/rayburne
Last edited by mrburnette on Thu Nov 05, 2015 8:07 pm, edited 1 time in total.

User avatar
Rick Kimball
Posts: 1011
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: Guide: "I'm new here - which board should I buy?"

Post by Rick Kimball » Thu Nov 05, 2015 7:52 pm

mrburnette wrote:..But, the Maple Mini is only $4, so why not try one out for yourself?
Do you have secret supplier? It seems like the price has been rising since this forum came online. The Baite Online Store seems to be closer to $5 now. I know you have and infinite supply .. where should the rest of us go? : )

-rick
-rick

User avatar
mrburnette
Posts: 1803
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Guide: "I'm new here - which board should I buy?"

Post by mrburnette » Thu Nov 05, 2015 8:00 pm

Rick Kimball wrote:
mrburnette wrote:..But, the Maple Mini is only $4, so why not try one out for yourself?
Do you have secret supplier? It seems like the price has been rising since this forum came online. The Baite Online Store seems to be closer to $5 now. I know you have and infinite supply .. where should the rest of us go? : )

-rick

Rick,

I buy x5 from the Baite online store, so $20 is 5 pieces, free shipping:
http://www.aliexpress.com/item/5PCS-LOT ... 82373.html

Qty 1 is a weebit more when not on sale, but Baite runs a sale often:
http://www.aliexpress.com/store/product ... 67476.html

Update: $4 qty = 1
http://www.aliexpress.com/item/leaflabs ... 64071.html
I've used the above vendor for other items. But, the fine print says you are on your own when ordering from China.

Aliexpress and many stores will be having discounts on 2015-11-11

Infinite? No, more like 30+ after I pull-out semi-perm projects and test units :D


Ray

PS: check out the ESP8266 prices:
http://www.aliexpress.com/item/New-vers ... 17567.html

User avatar
Rick Kimball
Posts: 1011
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: Guide: "I'm new here - which board should I buy?"

Post by Rick Kimball » Tue Nov 24, 2015 8:09 pm

mrburnette wrote:I buy x5 from the Baite online store, so $20 is 5 pieces, free shipping:
http://www.aliexpress.com/item/5PCS-LOT ... 82373.html
Just received my order, only took 15 days. Thanks for the tip!
-rick

User avatar
mrburnette
Posts: 1803
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Guide: "I'm new here - which board should I buy?"

Post by mrburnette » Tue Nov 24, 2015 11:56 pm

Rick Kimball wrote: <...>
Just received my order, only took 15 days. Thanks for the tip!
That was quick! You R welcomed.

Ray

B.Hernnaes
Posts: 6
Joined: Wed Dec 09, 2015 7:43 am

Re: Guide: "I'm new here - which board should I buy?"

Post by B.Hernnaes » Wed Dec 09, 2015 10:32 am

Hi I had some fun with this set:
http://www.aliexpress.com/store/product ... 02134.html
I got 2 of these instead of the 2 kits I ordered. And have no use for them but I wanted to see if they were OK!
Got a good refund too...... and 15 days from order to delivery, but a long face when opening the box. (a first for me at aliexpress)
Installed stlinkv2 utility and driver from ST, could upgrade to latest stlink version. Did so!
The board was empty tried to write some code with fasmarm but the led didn't blink so I wanted a quick way to check them.
Searched with google for a bootloader found Clark's for arduino.
Used the PC13 led version ( the bin) and flashed it with the stlink board, installed the drivers.
edit: No need for a bootloader the kit works directly with the supplied stlink-pcb, colors on leads differ between kits hook it up as in my picture.
Installed Arduino 1.6.5 as per recommendations and presto.....nay program not found message when uploading.
Ah! Have to have the compiler for the stm32 as well, installed some arduino-stm32 and all went well the blink led sketch worked after changing to pin PC13.
Only have one problem with this setup way too fast termination of the bootloader around 5 seconds why?
Also found that port B2 is not there. Should it?
The boards are pretty = well made nice sharp tracks centered holes some residue flux around pins = hand soldered.

And mee? I've never even tried arduino before but I'm very experienced with atmel's avr family and I distrust c always some missing piece when trying to install or using some modules..... Not so here keep up the good work!
Attachments
bluepill.jpg
the actual board
bluepill.jpg (89.59 KiB) Viewed 595 times
stlinked.jpg
setup for flashing bootloader
stlinked.jpg (93.54 KiB) Viewed 595 times
Last edited by B.Hernnaes on Fri Dec 11, 2015 7:49 am, edited 1 time in total.

User avatar
RogerClark
Posts: 6880
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Guide: "I'm new here - which board should I buy?"

Post by RogerClark » Wed Dec 09, 2015 10:41 am

You can recompile the bootloader if you want to change the waiting time while it is DFU mode.

See

https://github.com/rogerclarkmelbourne/ ... bootloader

I think you need to change BOOTLOADER_WAIT in config.h

If you want to compile, you need make e.g. gnu make, and you also need to add the compiler location to your path.

On the PC I just use the compiler in the hidden Arduino15 folder in (%appdata%)

B.Hernnaes
Posts: 6
Joined: Wed Dec 09, 2015 7:43 am

Re: Guide: "I'm new here - which board should I buy?"

Post by B.Hernnaes » Wed Dec 09, 2015 11:48 am

It's a minor problem I just expected it to wait for the upload then exit when done.
I'll recompile it with a longer waiting time if I'm gonna use it a lot arduinowise.

Even with 11 usd for a kit it's a lot of cheap fun and no other hardware is needed.
Similar boards can be found from 2.5 usd w.o. the stlink but I wonder if they are as pretty as theese.

Post Reply