STM32CubeIDE basics - 03 GPIO HAL lab

  Рет қаралды 73,993

STMicroelectronics

STMicroelectronics

Күн бұрын

Learn how to create your STM32 based application using STM32CubeIDE
STM32CubeIDE can be used to create applications for STM32 devices using STM32Cube libraries (HAL and Low Layer versions).
Benefits you will take away
• Understanding how to create Hardware Abstraction Layer (HAL) based examples on STM32 devices
• Understanding how to create Low Layer based examples on STM32
• Understanding how to manage software components and generated projects within STM32CubeIDE tool
Prerequisites
• NUCLEO-G071RB board
• microUSB cable
• PC with MS Windows OS (in version 7 or higher) with preinstalled the following software:
o STM32CubeIDE with STM32G0 Cube library preinstalled (libraries installation instruction present within “Repository management” video)
Complete set of slides:
drive.google.com/file/d/1qEyO...

Пікірлер: 46
@salehpaz
@salehpaz 3 жыл бұрын
This type of tutorials is being needed for a long time. Although it takes a long time but never late. Also please make videos that explain and teach the CubeIDE code examples for different STM32 Microprocessors, like STM32CubeG0
@stm32user
@stm32user 4 жыл бұрын
Keep posting and promote this stmcube ide, it is very good, because all in one place, cubemx debugger and etc..,
@lazarocamargo
@lazarocamargo 4 жыл бұрын
Excellent tutorial!!!
@Good0Music0for0you
@Good0Music0for0you 4 жыл бұрын
Thank you so much .
@flowcharttocodeconverter936
@flowcharttocodeconverter936 4 жыл бұрын
Good work !
@peterkelly601
@peterkelly601 2 жыл бұрын
Please tell us the name of our great guide with the Polish-English accent. He is a terrific ST asset and should be congratulated and saluted for his clear and concise explanations based on his thorough understanding of the complete product line. Well done sir. Cheers, Ned.
@user-rc9xl8xn7t
@user-rc9xl8xn7t 9 ай бұрын
Eclipse normally auto filles the arguments in the method when you select an existing method. I know this can be turned off in Preferences>C/C++>Editor>Content Assist. But if I dont want to turn this off but just jump from one auto-filled argument to the next one and select it, is there ANY way to do that? I know that function was available in SW4STM32 a few years ago by pressing CTRL+RIGHT or something. But I cant find any key bindings in the preferences of Eclipse/STM32CubeIDE that do exactly that.
@adnansayder2148
@adnansayder2148 4 жыл бұрын
Idint find any information operators variables which is using cube ıde for examples ...if else while for next do while switch case and mathematical instruction floor add ,div,bit shift right or riight , read port as bayt ,reset cpu where this information and is there any instruction operator in order to cubeıde are variable same other ıdes for example int long int int1 mad answers in my mind
@nikoloznadiradze7370
@nikoloznadiradze7370 4 жыл бұрын
Great, that's good when chip manufacturer and IDE producer provides handful info, just should be more convenient to provide more detailed data, especially practically useful ones... one of them is you don't mention initial state of defined pins, in fact CubeMX and HAL initialization code puts GPIO pins in output mode at LOW state and taking into account that in most cases LEDs are connected either direct to pin (with serial resistor on it) or through FET transistor gate (in case of Blue Pill and some other boards), this initial state puts LED ON... using first HAL_GPIO_TogglePin causes LED to go off... for "Blink" or so called MCU "Hello World" program it doesn't make any big difference, as you toggle LED at same intervals on and off, but if you are going to simulate Morse Code or instead of LED you control some actuators, relays etc, initial state becomes critical and you should add initial state assurance line - directly set initial state of some critical pins, so you don't care of IDE HAL and LL library behavior... in general, regardless HAL_GPIO_TogglePin is pretty useful subroutine, direct state declaration, switch method (HAL_GPIO_WritePin) would be more preferable ....
@stmicroelectronics
@stmicroelectronics 4 жыл бұрын
Hello, thank you for your commend and the hint. We will try to follow it in next videos.
@pawelp.340
@pawelp.340 3 жыл бұрын
I spent whole day fighting annoying error message while starting debugger, that: arm-none-eabi-gdb.exe has stopped working. Can't overcome this. Help. STM32CubeIDE Version: 1.5.1 Build: 9029_20201210_1234 (UTC) OS: win10 64b
@alitabrizi633
@alitabrizi633 3 жыл бұрын
You said you'd do the Empty targeted project type in another video, can't find it :(
@stmicroelectronics
@stmicroelectronics 3 жыл бұрын
Hello! Visit our online community to find answers to your technical questions and share ideas with our developers and ST experts : community.st.com
@mdasikkhan1610
@mdasikkhan1610 3 жыл бұрын
Target is not responding, retrying... Error! Failed to read target status Debugger connection lost. Shutting down... What do I do :(
@stmicroelectronics
@stmicroelectronics 3 жыл бұрын
Hi there, thanks for your question - may we point you towards our community.st.com, where you will find a team of people who can answer you directly ?
@mdasikkhan1610
@mdasikkhan1610 3 жыл бұрын
@@stmicroelectronics hi, its alright, i have solved the issue. Thanks for the reply tho!
@jugnu361
@jugnu361 Жыл бұрын
HAL LED Blinky is 6.8 KB 😃
@benasdfghjk1
@benasdfghjk1 3 жыл бұрын
I cant use ctrl+space this tools how to open it
@stmicroelectronics
@stmicroelectronics 3 жыл бұрын
Hi there, for technical questions we really recommend you check out our community of experts and other developers at community.st.com
@NotMarkKnopfler
@NotMarkKnopfler 3 жыл бұрын
Does "PA5" mean port A, bit 5?
@mfgkwmfgkw
@mfgkwmfgkw 3 жыл бұрын
You mean the PA5 mentioned around 0:30? Yes, this is STM32 Pin PA5.
@mfgkwmfgkw
@mfgkwmfgkw 3 жыл бұрын
The Pin PA5 (STM32) is named D13 from arduino view. But in the sketch shown at 0:30 the connector is labeled wrong. It is named CN7 here, but according to UM2324 page 30 table 12 the connector is named CN5.
@stmicroelectronics
@stmicroelectronics 3 жыл бұрын
Hi there, thanks for your question - may we point you towards our community.st.com, where you will find a team of people who can answer you directly ?
@impulseimp1035
@impulseimp1035 2 жыл бұрын
You start counting from 0. There are PB0,PB1,PB2,PB3,PB4,PB5. So, PB5 gotta be sixth bit in your register but the best way to look it up in datasheet.
@ivankovtun5999
@ivankovtun5999 3 жыл бұрын
I had a problem with debugger. Is said it needed libncurses5. I checked, I had ncurses 6.2-1, but it wasn't Ok for gebugger. I installed ncurses5-compat-libs and the problem was solved. I have written this comment, because I think it can help someone. P.S. I use Linux Manjaro.
@stmicroelectronics
@stmicroelectronics 3 жыл бұрын
Hello, Visit our online community to find answers to your technical questions and share ideas with your developers and ST experts : community.st.com
@Bowinho
@Bowinho 2 жыл бұрын
"Brzmisz jak Polak"
@dunedinmcdiary5068
@dunedinmcdiary5068 4 жыл бұрын
I have to turn on captions to understand what he is saying!
@rmatveev
@rmatveev 3 жыл бұрын
I could understand almost everything. May be that's because I'm not native in English as well as the narrator?
@impulseimp1035
@impulseimp1035 2 жыл бұрын
His accent is fine to understand without effort.
@dunedinmcdiary5068
@dunedinmcdiary5068 2 жыл бұрын
@@impulseimp1035 you can only make that statement with reference to yourself. If someone else finds his accent difficult to understand, then by definition they find his accent difficult to understand. You're finding has accent easy to comprehend does not invalidate the other parties statement.
@impulseimp1035
@impulseimp1035 2 жыл бұрын
@@dunedinmcdiary5068 dude. They did their best. There is even a pdf file for each lesson. It's not Tick-tock, if you wanna learn smt just do it on your own.
@dunedinmcdiary5068
@dunedinmcdiary5068 2 жыл бұрын
@@impulseimp1035 haha firstly I'm not your dude. Secondly I'm not a millennial or younger which means I still reserve the right to have an opinion and to express that opinion. Sorry if that offends you. Suggest you seek therapy rather than try and bully others.
@MilanKarakas
@MilanKarakas 3 жыл бұрын
Everything is wrong! Unable to make: GPIOB->BSRR = GPIO_BSRR_BS11;
@stmicroelectronics
@stmicroelectronics 3 жыл бұрын
Hi there, thanks for your question - may we point you towards our community.st.com, where you will find a team of people who can answer you directly ?
@gingarrison104
@gingarrison104 2 жыл бұрын
why can't you speak loudly !!!?
@surendramaharjan3129
@surendramaharjan3129 2 жыл бұрын
So poor sound quality and it's so hard to understand his english
STM32CubeIDE basics - 04 EXTI HAL lab
15:34
STMicroelectronics
Рет қаралды 45 М.
STM32CubeIDE basics - 05 TIM PWM HAL lab
13:37
STMicroelectronics
Рет қаралды 61 М.
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 8 МЛН
STM32 ADC Complete Guidance: Polling, Interrupt, and DMA Modes.
17:55
Introduction to STM32CubeMonitor - 2 Basic project, global variables
11:35
How to Blink a LED | #5 STM32 GPIO output
24:41
Terminal Two
Рет қаралды 52 М.
STM32CubeIDE basics - 11 USART HAL lab
10:55
STMicroelectronics
Рет қаралды 61 М.
How to Select the Best STM32 Microcontroller for Your Project
21:37
Predictable Designs
Рет қаралды 6 М.
STM32CubeIDE basics - 06 Repository management
8:05
STMicroelectronics
Рет қаралды 22 М.
STM32 Cube Monitor Intro
19:58
Eddie Amaya
Рет қаралды 30 М.
A Beginner's Guide to Microcontrollers
15:18
Electronic Wizard
Рет қаралды 32 М.
When you have 32GB RAM in your PC
0:12
Deadrig Gaming
Рет қаралды 2,1 МЛН
В России ускорили интернет в 1000 раз
0:18
Короче, новости
Рет қаралды 1,8 МЛН