Getting started with STM32CUBE IDE || LED blink || F103C8

  Рет қаралды 106,410

ControllersTech

ControllersTech

5 жыл бұрын

Purchase the Products shown in this video from :: controllerstech.store
________________________________________________________________________________________
Do not select the OPEN OCD in debugger. Just click the Debug button and keep the default settings and click OK.
________________________________________________________________________________________
****** SUPPORT US BY DONATING*****
paypal.me/controllertech
******Join the Membership******
/ @controllerstech
Join the Discord Server / discord
Join the Telegram Group t.me/controllerstechdiscuss
Follow me on Instagram / controllerstech
For more info, visit www.controllerstech.com

Пікірлер: 131
@GregWoodsLancs
@GregWoodsLancs 4 жыл бұрын
start at 4:40 to skip software installation
@deweywsu
@deweywsu 4 жыл бұрын
Thank you for posting this!
@henrylaredo
@henrylaredo 4 жыл бұрын
thanks for the effort!!!
@ControllersTech
@ControllersTech 4 жыл бұрын
Do not select the OPEN OCD in debugger. Just click the Debug button and keep the default settings and click OK.
@Johan-ex5yj
@Johan-ex5yj 4 жыл бұрын
Actually, if your blue pill has a clone MCU on it, only OpenOCD will work. Also you have to modify stm32f1x.cfg to instruct OpenOCD to ignore id numbers. See my comment: “Blue pill with clone MCU: >>”
@bharatbs7141
@bharatbs7141 4 жыл бұрын
@@Johan-ex5yj yess
@carlosandresvallevillamari5071
@carlosandresvallevillamari5071 3 жыл бұрын
@@Johan-ex5yj in which folder is generated stm32f1x.cfg
@Johan-ex5yj
@Johan-ex5yj 3 жыл бұрын
@@carlosandresvallevillamari5071 Follow this link to ST- Community >> community.st.com/s/question/0D50X0000BUjpxv/error-in-initializing-stlink-device-reason-18-could-not-verify-st-device-abort-connection There, look at answer given by “JElli.1”. That is a full description of how to fix the problem, including where the stm32f1x.cfg file can be found.
@tobaadesanya32
@tobaadesanya32 3 жыл бұрын
Great video! Love your desktop theme, which is it?
@dimydisconzi6403
@dimydisconzi6403 4 жыл бұрын
Good job! Thanks a lot!
@Landonkarther
@Landonkarther 3 жыл бұрын
Hello, this was the only one way worked. Good job!!!
@personalsergio
@personalsergio 4 жыл бұрын
You are the best!
@walterhynson2898
@walterhynson2898 5 жыл бұрын
good video thanks
@fadifunvlogs833
@fadifunvlogs833 2 жыл бұрын
bhai Eid Mubarak ho
@rajeshkolhe1522
@rajeshkolhe1522 3 жыл бұрын
Thank for amazing tutorial .. I have some doubts .. if I am used internal crystal of that IC then PD0 and PD1 are free for IO configuration but I tried they ain't .. readed about mapping also but I can't able to toggles the outputs. I used protues simulation to cheak this in blue pill there is external crystal is connected if i remove that crystal then this pins are free to as output right?
@tamgaming9861
@tamgaming9861 5 жыл бұрын
Would be great if you explain inside the IDE why you choose and click and input things to understand it better. Can you maybe make a video with the F7469 Disco Board, and sho us how to controll things like a stepper motor via Touchdisplay?
@ControllersTech
@ControllersTech 5 жыл бұрын
The IDE is based on eclipse and this was the very basic setup I did, which I think people already know since we've been using TrueSTUDIO and SW4STM for a while
@tamgaming9861
@tamgaming9861 5 жыл бұрын
Hello@@ControllersTech , yes you are right, some showed already this on eclipse and TrueStudio. But its really hard for beginners or changers from Ardunio to get into the STM. I sa w so many they gave up because there are near no good tutorials which makes it easy to controll hardware. On arduino you find thousands of tutorials, on STM it seems like to be a secret. You find some videos where ppl show that they mastered it, but not tutorials who shows how they made it. Maybe you could be the guy who brings light into it.
@electro975
@electro975 4 жыл бұрын
Thank you for your effort, I have a question please, I usually use Mbed to program the stm32f103, I wanna switch to CubeIde but i couldn't find examples of programs or a list of the HAL functions and descriptions, I found a 2000 page datasheet on the internet but it's not really easy to understand or to find functions that I need. Thanks again !
@ControllersTech
@ControllersTech 4 жыл бұрын
This channel is dedicated for the tutorials related to HAL and STM32. Follow them. The function descriptions are given in the source files itself, when you include them in the project. Datasheet doesn't worth much if you are using HAL, so don't waste time there.
@RenatF
@RenatF 3 жыл бұрын
Thanks for video!) My led blinks. For repeat this tutorial, you need only STM32F103C8Tx controller and ST-Link V2 programmer (from hardware)
@ControllersTech
@ControllersTech 3 жыл бұрын
You can use any other STM32 mcu also.
@anupsonawane1420
@anupsonawane1420 Жыл бұрын
I am getting STM32f103c6t6 more cheaper than 8t6 can i use that, as i am a beginner in STM and confused please help
@ControllersTech
@ControllersTech Жыл бұрын
Yeah sure. It's good for starting with STM32
@mohammedhafiz8132
@mohammedhafiz8132 11 ай бұрын
i liked the music flavour 😁
@randysonnicksen9475
@randysonnicksen9475 5 жыл бұрын
Can you give a description of what hardware setup you have as a connection to the board, please.
@ControllersTech
@ControllersTech 5 жыл бұрын
Not much of the setup. I am using stlink v2 to program the board IO -> IO CLK -> CLK GND -> GND and usb connection is for powering up the board, in order to use 5v.
@mehrdad-mixtape7970
@mehrdad-mixtape7970 3 жыл бұрын
thanks a lot :D
@user-yz3ko3ji4h
@user-yz3ko3ji4h Ай бұрын
it was useful to me Thanks
@yashmourya1992
@yashmourya1992 2 жыл бұрын
Can I connect this board via USB to laptop or do I need some drivers. Cause input is about 3.6volts max
@greeniot9987
@greeniot9987 3 жыл бұрын
Sir, please explain what aspects you change the clock configuration.
@ControllersTech
@ControllersTech 3 жыл бұрын
Watch any of my new videos... It's explained there
@sergiourquijo4000
@sergiourquijo4000 3 жыл бұрын
Hello. So what are you using to upload the code to the stm32 board? Is it the st-link or a ftdi serial adaptor?? I don`t have an st-link so im wondering if i can use else the usb bootloader or the ftdi serial...
@ControllersTech
@ControllersTech 3 жыл бұрын
Yeah i use stlink to upload. I never explored the uart bootloader so can't tell about that. Also here you need to do a lot of debugging, so better use the St link.
@beratgokgoz9135
@beratgokgoz9135 2 жыл бұрын
May I learn your DE(I couldn't predict. It looks like both GNOME or KDE) and your theme? It looks pretty nice.
@ControllersTech
@ControllersTech 2 жыл бұрын
I don't remember but it must have been KDE. I don't use GNOME
@qarandorosti2599
@qarandorosti2599 3 жыл бұрын
Thank you for your project. Is it possible to make a video to show how to transfer and receive data with stm32f103c8 header boards using RF 433Mhz modules?
@BilginistAdam
@BilginistAdam 5 жыл бұрын
excuse me, can i ask different question about this video? i liked your debian theme and want to set up it. if can you share for me, i will very happy. have a good day :)
@ControllersTech
@ControllersTech 5 жыл бұрын
It's deepin os latest one. This is default setup.
@4valves551
@4valves551 2 жыл бұрын
out 3 pin where you connected..you dont tell the things in that video..plz mention it
@chathurajayasankhagamage9414
@chathurajayasankhagamage9414 2 жыл бұрын
Are there any other options if I don't have an ST-Link v2 programmer. I got to know that the same thing can be done by TTL converter. Is that true?
@ControllersTech
@ControllersTech 2 жыл бұрын
Yes it can be, but you need to program a different bootloader. I don't know how to do that. Get the ST link. It will help you debug the code. Things don't work here in a single go.
@chathurajayasankhagamage9414
@chathurajayasankhagamage9414 2 жыл бұрын
@@ControllersTech Thanks a lot
@martonandrascsepregi-horva3135
@martonandrascsepregi-horva3135 3 жыл бұрын
My problem Console write: collect2.exe: error: ld returned 1 exit status make: *** [makefile:44: tubeampv1.elf] Error 1
@ibrag2012
@ibrag2012 4 жыл бұрын
How to make display hints (aka "HAL_*")?
@ControllersTech
@ControllersTech 4 жыл бұрын
Press control and space key
@ibrag2012
@ibrag2012 4 жыл бұрын
@@ControllersTech thank!
@billynugrahasutandi7028
@billynugrahasutandi7028 5 жыл бұрын
i have used ac6 stm32sw, i think its easy to uploading, just "target-> program chip", can stm32cube IDE program chip as easy as ac6 stm32sw ? i think uploading program with "debug as" spend the time (because it must click "run" on debugging option)
@ControllersTech
@ControllersTech 5 жыл бұрын
Yeah that's an advantage
@Cn0lanakis
@Cn0lanakis Жыл бұрын
Hello, i want to ask you if i can programm my stm32f103c8t6 using micro usb port and stm32cubeide. Does it need anything else?
@ControllersTech
@ControllersTech Жыл бұрын
No you cant. You need ST link to program it.
@damjantasevski5769
@damjantasevski5769 2 жыл бұрын
Do i need to move the BOOT0 and BOOT1 jumpers, or they stay constantly at position 0 ?
@ControllersTech
@ControllersTech 2 жыл бұрын
I always keep them at position 0 and it works just fine
@saitamapreetsingh3057
@saitamapreetsingh3057 Жыл бұрын
Why did you use OpenOCD ? I use ST LINK GDB SERVER and it works fine. Is there any big difference between the two ?
@ControllersTech
@ControllersTech Жыл бұрын
This video is 3 yrs old. Back theN gDB had some issues. I updated the description later.
@kevinhoublon8630
@kevinhoublon8630 Жыл бұрын
Hello, great video 😄. I'm a beginner and I have a few questions : -Can we use this board and this IDE to control a color sensor, for example the color sensor "TCS3200"? Thank you in advance 😉. Cordially.
@ControllersTech
@ControllersTech Жыл бұрын
Yes
@kevinhoublon8630
@kevinhoublon8630 Жыл бұрын
@@ControllersTech Thank you very much 😁. I have a question : I saw how to use the color sensor on arduino through the Arduino IDE : m.kzbin.info/www/bejne/jX6qhZ6QmbatgpI As show in the minute 6:00, we can use a method called "pulseIn" to retrieve the period (frequency converted to period) of the signal of the color sensor obtained after scanning an object (to figure out its color). This value period of frequency gives us the color of the object. Does the "pulseIn" method exists on STM32CubeIde or is there an equivalent of the method? Thank you in advance 😉 Cordially.
@ControllersTech
@ControllersTech Жыл бұрын
As you said Pulsein in arduino measures the period of the signal. You have a lot of ways to achieve this with STM32. 1. If the signal remains high for longer periods like 100ms or more, ypu can simply read the input pin using interrupt mode. Once the pin goes high, start a timer to measure the pulse. 2. The above is easier but unprofessional approach. STM32 have input capture mode and pwm input mode in the timer itself. You can utilize them to achieve what you want. Check out the timer playlist in the channel.
@kevinhoublon8630
@kevinhoublon8630 Жыл бұрын
@@ControllersTech Hello, Thank you very much for your answer 😁. Just to be sure, Is it the video you showing how to use input capture mode with the timer that you mentioned ? 😀 : m.kzbin.info/www/bejne/qJmXoZeEjLB_gLs
@ControllersTech
@ControllersTech Жыл бұрын
Yes
@nia9225
@nia9225 5 ай бұрын
hello, how do I know which number the pin has? in this video you declared pin as 13. how do I know what number the pin has? it could bt 1 or 5 or 14, how did you know it was 13?
@ControllersTech
@ControllersTech 5 ай бұрын
Check the schematic of the board. Google it.
@angturil
@angturil 4 жыл бұрын
"stm32f103x6.h: No such file or directory" is all I get with the exact same setup as yours :/ any idea ? thanks in advance for your time and answer :)
@ControllersTech
@ControllersTech 4 жыл бұрын
What controller do u have ?
@angturil
@angturil 4 жыл бұрын
@@ControllersTech Sorry for the delay I was overwhelmed by work. In fact the issue was probably a bug in the CubeMX generation (ubuntu), failing to generate the headers of the project. I restarted and everything went well. Controller is a STM32F103C8T6.. Thanks for your answer tho :) I really don't like Eclipse :/
@vdurgavdurga7116
@vdurgavdurga7116 4 жыл бұрын
Hi can you please help me ..i facing the issue when I do debug it showing like error message is " ST-LINK DLL "error please help me in this one thanks
@ControllersTech
@ControllersTech 4 жыл бұрын
Might be driver issue. Check in the device manager if the driver is installed.
@Enjoy161
@Enjoy161 4 жыл бұрын
At 10:58 you backscreen changes so you can push the run button. This does not appear in my screen. It stays in debug mode. Any idea how to fix this?
@Enjoy161
@Enjoy161 4 жыл бұрын
and is this programmed via a st-link v2?
@ControllersTech
@ControllersTech 4 жыл бұрын
Yes it is st-link v2. And what do u mean the run button doesn't come ? When it enters the debug mode, run button will come automatically.
@eng.shh80
@eng.shh80 4 жыл бұрын
Hello Dear, thanks for great video, actually while downloading libraries @ 7:10 I got this error : error downloading the following files stm32cube_fw_f0_ver11.1 and stuck here.
@ControllersTech
@ControllersTech 4 жыл бұрын
Try again then.. sometimes ST have server issues
@fadifunvlogs833
@fadifunvlogs833 2 жыл бұрын
Roza good by ho rha ha
@christoshaju2595
@christoshaju2595 3 жыл бұрын
Good viedo , Can I flash my code on this using usb
@ControllersTech
@ControllersTech 3 жыл бұрын
Nope, not in the bluepill. You should use st link if you are starting this series..
@dingga713
@dingga713 5 жыл бұрын
help, how can i solve this problem: STMError message from debugger back end: localhost:3333.
@ControllersTech
@ControllersTech 5 жыл бұрын
Are u using GDB ? Try switching to openocd in the debug configuration in the debugger tab of ur *.elf
@dingga713
@dingga713 5 жыл бұрын
@@ControllersTech thanks for your reply, i do every same step from your video tutorial. but it still show the same error msg. i guess is my mcu board (STM32f103c8) problem which my pc non recognize it when i connect it through usb. i not sure that's the problem or not. i'll keep looking around and find the solution. thanks.
@ControllersTech
@ControllersTech 5 жыл бұрын
Have you used stm32 before? I mean with any other IDE
@dingga713
@dingga713 5 жыл бұрын
@@ControllersTech not, i am absolutely new to STM32. and i want to try it with STM32 IDE then i found your tutorial to get it start.
@dingga713
@dingga713 5 жыл бұрын
i had successfully program my stm32f103c8t6 MCU. Holy shit, there are many way to program it, and take me about a week to figure it out. I use one broad as a st link to program the other stm32f103c8 MCU, cause the stm32f103c8 does not come with programmer. Thank you anyway, right now i am going to try your other tutorials, i am exiting to learn more on STM32.
@RSC2194
@RSC2194 5 жыл бұрын
What's the music?
@ControllersTech
@ControllersTech 5 жыл бұрын
Where I am from
@RSC2194
@RSC2194 5 жыл бұрын
@@ControllersTech the second one please ;-)
@ControllersTech
@ControllersTech 5 жыл бұрын
Farmer in the town
@RSC2194
@RSC2194 5 жыл бұрын
@@ControllersTech Thank's!!!
@muhammadalmahdi2924
@muhammadalmahdi2924 11 ай бұрын
Hello , Sir .I strongly need your help. I'm simulating STM32F103C6 on Proteus , and the code is written on Arduino IDE, I'm testing a simple LED blink project and the simulation is not working! I tried the code by STM32CUBE IDE and the simulation worked properly, can you help me to make it work with Arduino IDE ? I have tried all compiler optimization levels in Arduino IDE but none of them worked for me !
@ControllersTech
@ControllersTech 11 ай бұрын
Neither I support using simulators, nor the arduino ide for STM32. Sorry..
@muhammadalmahdi2924
@muhammadalmahdi2924 11 ай бұрын
@@ControllersTech it's ok thanks for your reply ❤
@tanmaymohod
@tanmaymohod 2 жыл бұрын
The code keeps getting stuck inside: void Error_Handler(void){ while (1) {} } Anyone else having this issue?
@valerioguagnelliscanzani643
@valerioguagnelliscanzani643 3 жыл бұрын
there are cuts...
@yigitkarababa4374
@yigitkarababa4374 2 жыл бұрын
kardesim hz ademden baslatsaydın videoyu
@walterhynson2898
@walterhynson2898 5 жыл бұрын
trying to follow along and write down what you are doing is like chasing a ghost...you are clicking and selecting and checking without any explanation cann you slow down and write what and why.
@ControllersTech
@ControllersTech 5 жыл бұрын
Which part are you talking about ? Have you used STM 32 before ?
@ivanslade7180
@ivanslade7180 4 жыл бұрын
I totally agree with what you write though I suspect you may be viewing via youtube on the 'tv'. I find it best to download the video(s) with YTD pro and view using tht software as you can pause and go back properly rather than seeing all the youtube crud. Excellent videos he produces and much needed. Rgds
@user-dn3sl3if5v
@user-dn3sl3if5v 2 жыл бұрын
Hello ,please teach boot-loader
@nagendray9857
@nagendray9857 3 жыл бұрын
Sir, Iam facing problem in code generation in stm32 cube ide. It shows code generation could not be done because necessary firmware missing Please help how to resolve the issue.
@ControllersTech
@ControllersTech 3 жыл бұрын
Connect to internet and let it download what it wants
@nagendray9857
@nagendray9857 3 жыл бұрын
@@ControllersTech Already internet is connected. still iam facing the same problem.
@ControllersTech
@ControllersTech 3 жыл бұрын
I don't know then.. ask in the st forum, maybe someone will help over there
@DavidHancock7
@DavidHancock7 2 жыл бұрын
Like your videos- no so much the music
@MyOtherNick
@MyOtherNick Жыл бұрын
get rid of the annoying music...!!!!
@AndroidzZz
@AndroidzZz 4 жыл бұрын
this music is so fucked up
@ControllersTech
@ControllersTech 4 жыл бұрын
There is a mute button on KZbin, another one in your OS, and probably third one on your keyboard 🤔
STM32 ADC multiple channels || DMA || True studio || CubeMx
15:47
ControllersTech
Рет қаралды 66 М.
Blue-pill STM32 Programming Using ST-LINK V2 Dongle
7:53
0033mer
Рет қаралды 233 М.
ROCK PAPER SCISSOR! (55 MLN SUBS!) feat @PANDAGIRLOFFICIAL #shorts
00:31
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 70 МЛН
Tutorial 6: LAB -  LED Blinking in STM32 using STM32CUBEMX
10:53
rust runs on EVERYTHING (no operating system, just Rust)
18:10
Low Level Learning
Рет қаралды 348 М.
75. STM32CubeIDE FreeRTOS Simple LED Blink with STM32F103C8T6
7:35
MicroPeta by Nizar Mohideen
Рет қаралды 16 М.
Driving a VGA Display?! Getting started with an FPGA! (TinyFPGA)
11:26
Extracting Firmware from Embedded Devices (SPI NOR Flash) ⚡
18:41
Flashback Team
Рет қаралды 551 М.
Getting Started with ESP32 - Step-By-Step Tutorial
19:50
Tomasz Tarnowski
Рет қаралды 317 М.
Getting started with STM32CubeMX
9:20
STMicroelectronics
Рет қаралды 156 М.
Installing the STM32 USB Bootloader, Easily! [SEE DESCRIPTION]
8:02
Caleb Marting
Рет қаралды 261 М.
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 4,2 МЛН
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 107 М.
Best mobile of all time💥🗿 [Troll Face]
0:24
Special SHNTY 2.0
Рет қаралды 527 М.
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30