[sdiy] STM32 Nucleo + mbed
Robert Spencer
rob at gmsn.co.uk
Sun Dec 13 18:50:09 CET 2015
The end game is very simple, multiplatform SDIY biased tutorial which people can run from a browser.
The beauty of the mbed is that a simple program to control the speed of a flashing LED with a pot looks like this…
/* Program to set the speed of the LED, based on the position of Pot 1.
Snug 1405 13/12/15
*/
#include "mbed.h"
AnalogIn pot1 (PC_0);
DigitalOut myled (LED1);
int main () {
while (1) {
myled = 1;
wait(pot1/10);
myled = 0;
wait(pot1/10);
}
}
There’s no need to set up the peripherals or make sure the clock is enabled. Plus it’s all browser based, so it can be run on any platform.
I know if you’ve invested a decade on your IDE, then you’ve probably got everything as you want it, but for people looking to make the transition from Arduino to ARM, this is a good way to go. Plus it’s make it easier for me to run workshops without spending ages ensuring everyone has the right toolchain setup.
Rob Spencer
GMSN!
On 13/12/2015 17:23, "Synth-diy on behalf of Vladimir Pantelic" <synth-diy-bounces at dropmix.xs4all.nl on behalf of vladoman at gmail.com> wrote:
>On 12/13/2015 06:02 PM, Robert Spencer wrote:
>> "compared to a simple "make program" that has my code compiled and
>> uploaded in seconds.”
>>
>> How long did it take you to get to that point though? ;)
>
>uhm, give or take a decade or so :))
>
>> It’s such a steep learning curve compared to something like Arduino.
>
>I tried Arduino and gave up after I could not find the Makefile :)
>
>> I’m really enjoying the combination of ease of use and power that the
>> STM32 gives you via mbed, it’s just that I2S isn’t well supported and
>> it seems the it’s difficult to get any info on it.
>
>there are a few I2S examples in the CUBE SW for F1 and F4:
>
>STM32Cube_FW_F1_V1.0.0/Projects/STM3210C_EVAL/Examples/I2S/I2S_Audio
>
>STM32Cube_FW_F4_V1.5.0/Projects/STM324xG_EVAL/Examples/I2S/I2S_Audio
>STM32Cube_FW_F4_V1.5.0/Projects/STM32F401-Discovery/Applications/Audio/Audio_playback_and_record
>
>Regards,
>
>Vladimir
>_______________________________________________
>Synth-diy mailing list
>Synth-diy at dropmix.xs4all.nl
>http://dropmix.xs4all.nl/mailman/listinfo/synth-diy
More information about the Synth-diy
mailing list