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

Поділитися
Вставка
  • Опубліковано 15 жов 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

  • @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 4 роки тому

      @@Johan-ex5yj in which folder is generated stm32f1x.cfg

    • @Johan-ex5yj
      @Johan-ex5yj 4 роки тому

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

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

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

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

  • @nia9225
    @nia9225 9 місяців тому

    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  9 місяців тому

      Check the schematic of the board. Google it.

  • @yashmourya1992
    @yashmourya1992 3 роки тому

    Can I connect this board via USB to laptop or do I need some drivers. Cause input is about 3.6volts max

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

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

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

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

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

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

  • @Landonkarther
    @Landonkarther 3 роки тому +1

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

  • @4valves551
    @4valves551 2 роки тому

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

  • @electro975
    @electro975 5 років тому +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  5 років тому +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.

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

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

  • @Brianmongo
    @Brianmongo 5 років тому

    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?

    • @Brianmongo
      @Brianmongo 5 років тому

      and is this programmed via a st-link v2?

    • @ControllersTech
      @ControllersTech  5 років тому

      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.

  • @martonandrascsepregi-horva3135
    @martonandrascsepregi-horva3135 4 роки тому

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

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

  • @ibrag2012
    @ibrag2012 5 років тому +4

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

  • @deweywsu
    @deweywsu 4 роки тому +2

    Thank you for posting this!

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

  • @RenatF
    @RenatF 4 роки тому

    Thanks for video!) My led blinks. For repeat this tutorial, you need only STM32F103C8Tx controller and ST-Link V2 programmer (from hardware)

    • @ControllersTech
      @ControllersTech  4 роки тому +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

  • @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.ua-cam.com/video/WMGTkZdQzL0/v-deo.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.ua-cam.com/video/rh4pdNWKLJY/v-deo.html

    • @ControllersTech
      @ControllersTech  Рік тому +1

      Yes

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

  • @tanmaymohod
    @tanmaymohod 3 роки тому

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

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

  • @mohammedhafiz8132
    @mohammedhafiz8132 Рік тому

    i liked the music flavour 😁

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

  • @henrylaredo
    @henrylaredo 5 років тому +4

    thanks for the effort!!!

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

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

  • @tobaadesanya32
    @tobaadesanya32 4 роки тому

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

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

  • @personalsergio
    @personalsergio 4 роки тому

    You are the best!

  • @fadifunvlogs833
    @fadifunvlogs833 2 роки тому

    bhai Eid Mubarak ho

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

  • @dimydisconzi6403
    @dimydisconzi6403 4 роки тому

    Good job! Thanks a lot!

  • @محمدجوادباقری-ج8ق
    @محمدجوادباقری-ج8ق 5 місяців тому

    it was useful to me
    Thanks

  • @valerioguagnelliscanzani643
    @valerioguagnelliscanzani643 3 роки тому

    there are cuts...

  • @mehrdad-mixtape7970
    @mehrdad-mixtape7970 3 роки тому

    thanks a lot :D

  • @fadifunvlogs833
    @fadifunvlogs833 2 роки тому

    Roza good by ho rha ha

  • @walterhynson2898
    @walterhynson2898 5 років тому +1

    good video thanks

  • @christoshaju2595
    @christoshaju2595 4 роки тому

    Good viedo ,
    Can I flash my code on this using usb

    • @ControllersTech
      @ControllersTech  4 роки тому

      Nope, not in the bluepill.
      You should use st link if you are starting this series..

  • @yigitkarababa4374
    @yigitkarababa4374 2 роки тому +1

    kardesim hz ademden baslatsaydın videoyu

  • @امیرمهدی-ل9ن
    @امیرمهدی-ل9ن 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 UA-cam, another one in your OS, and probably third one on your keyboard 🤔