cancel
Showing results for 
Search instead for 
Did you mean: 

How to get started with stm32f0discovery

Nidhal Abidi
Associate II
Posted on January 25, 2018 at 02:00

Hi I'm new with stm32, I bought an stm32f0discovery but I can't work with it I wanna get help or some tutorial please.

32 REPLIES 32
Posted on January 29, 2018 at 12:38

Nidhal Abidi wrote:

I find it a bit difficult to start with

So did you look at the 'basic getting-started tips' I linked as the very first reply?

Posted on January 29, 2018 at 12:43

Nidhal Abidi wrote:

Arduino avr is not as arm ones.

AVR is not fundamentally different from ARM; it's just a difference in scale - not in fundamental principles.

See:

https://community.st.com/0D50X00009XkWm7SAF

Posted on January 29, 2018 at 13:36

Note that STM32 is now supported directly in the Arduino IDE: 

https://community.st.com/community/stm32-community/blog/2017/07/13/stm32-cores-enabled-in-arduino-ide

 

Previously, there were a number of  'Arduino-like' things - including

https://www.leaflabs.com/maple/

,

https://github.com/stm32duino

, the above-mentioned '

http://www.xduino.com/

', et al ...
Nidhal Abidi
Associate II
Posted on January 29, 2018 at 22:35

Hey could I use the integrated st-link v2 in the stm32f0discovery to flash or to program something else or other chip. It exists 6 pins (SWD) ??? 

Posted on January 29, 2018 at 22:40

http://www.st.com/resource/en/user_manual/dm00050135.pdf

 

 4.2chapter  Using

ST-LINK

/V2 to program/d ebug an external ST M32 application
Posted on January 29, 2018 at 22:54

Thanks I did read it but how. Is it possible to flash arduino via the ' ISP header 6-pins' ??? 

Posted on January 29, 2018 at 23:00

On the top of information provided by Andrewlet me share with you a presentation, which guides how to get started step by step with STM32 and Arduino IDE. Please find a file attached.

Regards

Szymon

________________

Attachments :

STM32_Arduino.pdf : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hy4s&d=%2Fa%2F0X0000000b3q%2FxG_rFACqZ0QHduA.ww2JpseEwzmlXTV9.lmllDjm8bQ&asPdf=false
Posted on January 30, 2018 at 01:37

It will only program other STM32s.

Posted on January 30, 2018 at 07:24

Excellent guide! Now, two things must be addressed in the future:

1 - markings on the Nucleo boards for all 5V tolerant pins (Microchip has a migration guide from 5V to 3.3V, do you have something similar?) - you can't imagine how useful is this for the person that come from the 8bit/5Vcc microcontrollers that still have a plethora of 5Vcc peripherals on his cabinet and in fact, continue to develop for those micros (every time he hits his head on an STM32 specific problem);

2 - the Arduino/Wiring language implemented over the LL driver - having it implemented on the HAL is just ridiculous! HAL itself is already a 'Wiring language'. It can make a real difference in the Arduino world, so don't be so stingy...

Posted on January 30, 2018 at 10:28

Vasile Guta_Ciucur wrote:

It can make a real difference in the Arduino world

Well, it's all open source - so, if you think it should be done, get on and do it!

don't be so stingy...

Indeed!

:)