Hell world!

Post Reply
saeed144
Posts: 36
Joined: Mon Sep 21, 2020 10:11 am

Hell world!

Post by saeed144 »

Hi every one, I'm a beginner to use stm32 micro-controller and I want to learn this interesting subject.
I worked with Arduino family and know about Arduino IDE, it's very cool that stm32 is compatible with Arduino IDE.
I hope this forum can help me to learn stm32 completely ;)
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Hell world!

Post by fpiSTM »

Welcome @saeed144
Hope too ;)
mrburnette
Posts: 633
Joined: Thu Dec 19, 2019 1:23 am
Answers: 7

Re: Hell world!

Post by mrburnette »

saeed144 wrote: Mon Sep 21, 2020 10:52 am ...
I hope this forum can help me to learn stm32 completely ;)
Arduino for STM32 is made compatible by some clever C++ wrappers and scripting:
This porting is based on:

STM32Cube MCU Packages including:
- The HAL hardware abstraction layer, enabling portability between different STM32 devices via standardized API calls
- The Low-Layer (LL) APIs, a light-weight, optimized, expert oriented set of APIs designed for both performance and runtime efficiency
- CMSIS device defintion for STM32

CMSIS: Cortex Microcontroller Software Interface Standard (CMSIS) is a vendor-independent hardware abstraction layer for the Cortex®-M processor series and defines generic tool interfaces. It has been packaged as a module for Arduino IDE: https://github.com/stm32duino/ArduinoModule-CMSIS

GNU Arm Embedded Toolchain: Arm Embedded GCC compiler, libraries and other GNU tools necessary for bare-metal software development on devices based on the Arm Cortex-M. Packages are provided thanks The xPack GNU Arm Embedded GCC: https://github.com/xpack-dev-tools/arm- ... -gcc-xpack
But wrappers and the Arduino syntax does impose performance issues and hides the more professional nature of the underlying libraries. Thus your word choice "completely" has two meanings: one for Arduino and one for STM32Cube.


Ray
saeed144
Posts: 36
Joined: Mon Sep 21, 2020 10:11 am

Re: Hell world!

Post by saeed144 »

You're right, One question:
Do we have access all stm32 features with Arduino IDE? (like Interrupts, timers, DAC, DMA and ...)
:?:
GonzoG
Posts: 403
Joined: Wed Jan 15, 2020 11:30 am
Answers: 26
Location: Prudnik, Poland

Re: Hell world!

Post by GonzoG »

Yes. If there is no support in Arduino compatible libraries you can use HAL or LL libraries.
Here's link to stm32duino Wiki:
https://github.com/stm32duino/wiki/wiki

And for API references:
https://github.com/stm32duino/wiki/wiki/API

Interrupts, DAC you can use same way as with Arduino boards.
saeed144
Posts: 36
Joined: Mon Sep 21, 2020 10:11 am

Re: Hell world!

Post by saeed144 »

that's great :)
Post Reply

Return to “Let us know a bit about you and your projects”