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

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ส.ค. 2024
  • Purchase the Products shown in this video from :: controllerstec...
    ________________________________________________________________________________________
    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/cont...
    ******Join the Membership******
    / @controllerstech
    Join the Discord Server / discord
    Join the Telegram Group t.me/controlle...
    Follow me on Instagram / controllerstech
    For more info, visit www.controller...

ความคิดเห็น • 131

  • @GregWoodsLancs
    @GregWoodsLancs 4 ปีที่แล้ว +20

    start at 4:40 to skip software installation

  • @tamgaming9861
    @tamgaming9861 5 ปีที่แล้ว +3

    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 ปีที่แล้ว +2

      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.

  • @deweywsu
    @deweywsu 4 ปีที่แล้ว +2

    Thank you for posting this!

  • @Landonkarther
    @Landonkarther 3 ปีที่แล้ว +1

    Hello, this was the only one way worked. Good job!!!

  • @ControllersTech
    @ControllersTech  4 ปีที่แล้ว +3

    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 ปีที่แล้ว +2

      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 ปีที่แล้ว +1

      @@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.

  • @henrylaredo
    @henrylaredo 5 ปีที่แล้ว +4

    thanks for the effort!!!

  • @mohammedhafiz8132
    @mohammedhafiz8132 ปีที่แล้ว

    i liked the music flavour 😁

  • @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 ปีที่แล้ว +1

      You can use any other STM32 mcu also.

    • @anupsonawane1420
      @anupsonawane1420 2 ปีที่แล้ว

      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  2 ปีที่แล้ว +1

      Yeah sure. It's good for starting with STM32

  • @chathurajayasankhagamage9414
    @chathurajayasankhagamage9414 2 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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

  • @personalsergio
    @personalsergio 4 ปีที่แล้ว

    You are the best!

  • @electro975
    @electro975 4 ปีที่แล้ว +1

    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 ปีที่แล้ว +3

      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.

  • @tobaadesanya32
    @tobaadesanya32 3 ปีที่แล้ว

    Great video! Love your desktop theme, which is it?

  • @ibrag2012
    @ibrag2012 4 ปีที่แล้ว +4

    How to make display hints (aka "HAL_*")?

    • @ControllersTech
      @ControllersTech  4 ปีที่แล้ว +4

      Press control and space key

    • @ibrag2012
      @ibrag2012 4 ปีที่แล้ว

      @@ControllersTech thank!

  • @dimydisconzi6403
    @dimydisconzi6403 4 ปีที่แล้ว

    Good job! Thanks a lot!

  • @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?

  • @randysonnicksen9475
    @randysonnicksen9475 5 ปีที่แล้ว +1

    Can you give a description of what hardware setup you have as a connection to the board, please.

    • @ControllersTech
      @ControllersTech  5 ปีที่แล้ว +1

      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.

  • @fadifunvlogs833
    @fadifunvlogs833 2 ปีที่แล้ว

    bhai Eid Mubarak ho

  • @nia9225
    @nia9225 7 หลายเดือนก่อน

    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  7 หลายเดือนก่อน

      Check the schematic of the board. Google it.

  • @4valves551
    @4valves551 2 ปีที่แล้ว

    out 3 pin where you connected..you dont tell the things in that video..plz mention it

  • @user-yz3ko3ji4h
    @user-yz3ko3ji4h 3 หลายเดือนก่อน

    it was useful to me
    Thanks

  • @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.

  • @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

  • @walterhynson2898
    @walterhynson2898 5 ปีที่แล้ว +1

    good video thanks

  • @saitamapreetsingh3057
    @saitamapreetsingh3057 2 ปีที่แล้ว

    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  2 ปีที่แล้ว

      This video is 3 yrs old. Back theN gDB had some issues. I updated the description later.

  • @muhammadalmahdi2924
    @muhammadalmahdi2924 ปีที่แล้ว

    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  ปีที่แล้ว

      Neither I support using simulators, nor the arduino ide for STM32. Sorry..

    • @muhammadalmahdi2924
      @muhammadalmahdi2924 ปีที่แล้ว

      @@ControllersTech
      it's ok thanks for your reply ❤

  • @martonandrascsepregi-horva3135
    @martonandrascsepregi-horva3135 3 ปีที่แล้ว

    My problem Console write: collect2.exe: error: ld returned 1 exit status
    make: *** [makefile:44: tubeampv1.elf] Error 1

  • @dingga713
    @dingga713 5 ปีที่แล้ว +3

    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 ปีที่แล้ว +1

      @@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.

  • @sergiourquijo4000
    @sergiourquijo4000 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

      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.

  • @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

  • @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

  • @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 :/

  • @walterhynson2898
    @walterhynson2898 5 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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

  • @tanmaymohod
    @tanmaymohod 2 ปีที่แล้ว

    The code keeps getting stuck inside:
    void Error_Handler(void){
    while (1)
    {}
    }
    Anyone else having this issue?

  • @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.

  • @mehrdad-mixtape7970
    @mehrdad-mixtape7970 3 ปีที่แล้ว

    thanks a lot :D

  • @BilginistAdam
    @BilginistAdam 5 ปีที่แล้ว +1

    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.

  • @greeniot9987
    @greeniot9987 4 ปีที่แล้ว

    Sir, please explain what aspects you change the clock configuration.

    • @ControllersTech
      @ControllersTech  4 ปีที่แล้ว +1

      Watch any of my new videos... It's explained there

  • @yigitkarababa4374
    @yigitkarababa4374 2 ปีที่แล้ว +1

    kardesim hz ademden baslatsaydın videoyu

  • @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

  • @RSC2194
    @RSC2194 5 ปีที่แล้ว +3

    What's the music?

    • @ControllersTech
      @ControllersTech  5 ปีที่แล้ว +1

      Where I am from

    • @RSC2194
      @RSC2194 5 ปีที่แล้ว

      @@ControllersTech the second one please ;-)

    • @ControllersTech
      @ControllersTech  5 ปีที่แล้ว +1

      Farmer in the town

    • @RSC2194
      @RSC2194 5 ปีที่แล้ว

      @@ControllersTech Thank's!!!

  • @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)

  • @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.

  • @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  ปีที่แล้ว +1

      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.th-cam.com/video/WMGTkZdQzL0/w-d-xo.html
      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  ปีที่แล้ว +1

      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.th-cam.com/video/rh4pdNWKLJY/w-d-xo.html

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว +1

      Yes

  • @valerioguagnelliscanzani643
    @valerioguagnelliscanzani643 3 ปีที่แล้ว

    there are cuts...

  • @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?

  • @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..

  • @user-dn3sl3if5v
    @user-dn3sl3if5v 3 ปีที่แล้ว

    Hello ,please teach boot-loader

  • @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 ปีที่แล้ว +1

      There is a mute button on TH-cam, another one in your OS, and probably third one on your keyboard 🤔