STM32 Nucleo Tutorial 2- Interrupt, PUSH Button and LED code generation using STM32CubeMx

Поделиться
HTML-код
  • Опубликовано: 25 авг 2024
  • Hi, You got a new video on ML. Please watch: "TensorFlow 2.0 Tutorial for Beginners 10 - Breast Cancer Detection Using CNN in Python"
    • TensorFlow 2.0 Tutoria...
    --------------------------------------------------------------- --~-
    We have launched Study Focus and Sleep Music Android Mobile App. ** No Ads at All **
    play.google.co...
    Focus on your study and work while listening to these beautiful melodies
    ******************************************************************
    Generate the code using STM32CubeMx for Keil. In this tutorial, we will learn how to generate Nucleo board initialization c code for Keil uvision using the STM32CubeMx. STM32F401RE Nucleo board have 64pin ARM Cortex M4 + FPU on board running on 84MHz maximum speed. PIN 5 of GPIOA is connected with user LED and PIN 13 of GPIOC is connected with Push Button. The external interrupt is also available to each GPIO pins. The push button is initialized into the external interrupt mode.
    The STM32 Nucleo board provides an affordable and flexible way for users to try out new ideas and build prototypes with any STM32 microcontroller line, choosing from the various combinations of performance, power consumption and features. The Arduino™ connectivity support and ST Morpho headers make it easy to expand the functionality of the STM32 Nucleo open development platform with a wide choice of specialized shields. The STM32 Nucleo board does not require any separate probe as it integrates the ST-LINK/V2-1 debugger and programmer. The STM32 Nucleo board comes with the STM32 comprehensive software HAL library together with various packaged software examples, as well as direct access to mbed online resources.
    More to learn.... Watch it till the end and subscribe this channel for more videos.
    You may visit www.kgptalkie.com for IoT and Embedded System Tutorial.
    ******************************************
    Please subscribe this channel to get live updates directly into your inbox whenever I upload a new video.
    ------------------------------------------------------------
    Support us on KGPTalkie Facebook Page
    / kgptalkie
    ************************************************
    Please don't forget to LIKE this video and SUBSCRIBE this channel. Thanks for watching.
    ********************************************
    stm32 nucleo board,
    stm32 nucleo tutorial,
    stm32 nucleo arduino,
    stm32 nucleo sample code,
    stm32 nucleo example code,
    stm32 nucleo getting started,
    stm32 nucleo printf,
    stm32 nucleo projects,
    stm32 nucleo arduino ide,
    stm32 nucleo f4,
    stm32 nucleo,
    stm32 nucleo adc example,
    stm32 nucleo adc,
    stm32 nucleo audio,
    stm32 nucleo bootloader,
    stm32 nucleo blink example,
    stm32 nucleo blink led,
    stm32 nucleo board tutorial,
    stm32 nucleo board programming,
    stm32 nucleo code examples,
    stm32 nucleo comparison,
    stm32 nucleo cnc,
    stm32 nucleo can bus,
    stm32 nucleo development board,
    stm32 nucleo ethernet,
    stm32 nucleo eclipse,
    stm32 nucleo examples,
    stm32 nucleo f302r8,
    stm32 nucleo f103rb,
    stm32 nucleo f401re,
    stm32 nucleo keil tutorial,
    stm32 nucleo keil,
    stm32 nucleo linux,
    stm32 nucleo lora,
    stm32 nucleo led blink,
    stm32 nucleo lcd,
    stm32 nucleo mbed,
    stm32 nucleo mbed tutorial,
    stm32 nucleo motor control,
    stm32 nucleo matlab,
    stm32 nucleo morpho,
    stm32 nucleo pack,
    stm32 nucleo programming,
    stm32 nucleo programmer,
    stm32 nucleo review,
    stm32 nucleo sd card,
    stm32 nucleo uart,
    stm32 nucleo uart example,
    stm32 nucleo vs arduino,
    stm32 nucleo virtual com port,
    stm32 nucleo wifi,
    stm32 nucleo 144
    stm32 interrupt tutorial,
    stm32 interrupt timer,
    stm32 interrupt priority,
    stm32 interrupt pin,
    stm32 interrupt vs event,
    stm32 uart interrupt,
    stm32 interrupt,
    external interrupt stm32,
    stm32 interrupt handler

Комментарии • 36

  • @KGPTalkie
    @KGPTalkie  5 лет назад

    Please Watch ARM Programming Tutorials Theory in 25 Lectures Here:
    ruclips.net/video/gPBsoOefyUk/видео.html

  • @jansunman7393
    @jansunman7393 5 лет назад +14

    for(int i=0;i

  • @cowtohelpcow2408
    @cowtohelpcow2408 6 лет назад +3

    How did you get , if(tDelay == 250) is 500ms, can you please explain. Thanks

  • @vivekagarwal117
    @vivekagarwal117 2 года назад

    Hi, Thanks for this good explanation.
    Could you please inform reason about enabling of RCC and CRS global interrupt.

  • @gudellithrishool2249
    @gudellithrishool2249 5 лет назад +2

    Can you make video on can protocol

  • @maricelavalenzuela1609
    @maricelavalenzuela1609 7 лет назад +1

    Hey do you know how to program a capacitive touch that when it touched it turns on the LED?

  • @electronicsguy8609
    @electronicsguy8609 3 года назад

    hey man, this is awesome, thanks bruv

  • @sonix88vox
    @sonix88vox 6 лет назад +1

    Hi, how can I got the list of functions on IAR ? I don't find it...

  • @shrijithmjain2137
    @shrijithmjain2137 4 года назад

    hi even after enabling the interrupt checklist and then generating the code, void EXTI..(void) function is not creating. any suggestions please?

  • @sanghyeonpark7226
    @sanghyeonpark7226 7 лет назад

    Your video is awesome! Thanks for doing this

  • @bright97
    @bright97 7 лет назад

    Thank you. I really appreciate for this tutorial. :D

  • @johndubose1401
    @johndubose1401 4 года назад

    This code works, thankyou. Where can I find example #3?

    • @KGPTalkie
      @KGPTalkie  4 года назад

      Please watch lesson 3 here ruclips.net/video/kI_Xngn3G8c/видео.html

  • @fnjyusername
    @fnjyusername 7 лет назад

    does rcc necessary and ? which external crystal clock (on the board ) are you referring for rcc then ?

  • @amineridene1757
    @amineridene1757 4 года назад

    thank you ...

  • @anannyaguha9487
    @anannyaguha9487 6 лет назад +1

    I was actually looking for this but the logic of 2000 and 500 ms is still very unclear to me. Explain that. Thanks again

    • @KGPTalkie
      @KGPTalkie  6 лет назад

      Kindly, revisit ISR once again and you will notice there that at every interrupt I am changing delay value i.e. If current tDelay is 1000 then I am assigning it to 250 and so on. This logic shows that interrupt is working if tDelay is changing after pressing button. I hope it helped you. Thanks for watching.

  • @harellichtenstein8726
    @harellichtenstein8726 7 лет назад

    How did you know that to switch the button for interrupt GPIO to PC13 with external interrupt? Is that in the documentation of the board?

  • @user-bi9tj3yh6j
    @user-bi9tj3yh6j 7 лет назад

    :) super!

  • @gauravpardeshi9991
    @gauravpardeshi9991 6 лет назад

    +KGP Talkie
    I am New in Arm develpment And Bought Nucleo 64 STM32F446RE, I wanna Know whether this video is exactly worakble for my board too

    • @KGPTalkie
      @KGPTalkie  6 лет назад

      Yes, it will work with a very little change. I am sure you would be able to make it without any difficulty.

  • @robtechcrew2158
    @robtechcrew2158 3 года назад

    Where is the code?

  • @gudellithrishool2249
    @gudellithrishool2249 5 лет назад

    Do we need full version of keil for programming

    • @LaxmiKantTiwarilaxmimerit
      @LaxmiKantTiwarilaxmimerit 5 лет назад

      Hi,
      You don't need if your code size is under 32KB which Keil provide in free version.

    • @gudellithrishool2249
      @gudellithrishool2249 5 лет назад

      @@LaxmiKantTiwarilaxmimerit ok tq could blz make a video ok can protocol .I have down can coding for Stm32f103C8 and Stm32f446re but don't know we're I am facing the problem

    • @LaxmiKantTiwarilaxmimerit
      @LaxmiKantTiwarilaxmimerit 5 лет назад

      Gudelli Thrishool I will try my best in near future. thank you for watching my videos. Please share it on social media if you have found it helpful to you. Thank you.

  • @hybird9999
    @hybird9999 7 лет назад

    Excellent tutorial

  • @imcnx1563
    @imcnx1563 5 лет назад +1

    Which denouncing do you speak about!!!!!!!!!! There’s a capacitor to eliminate the denouncing when you push the button, so you don’t need to add a delay to complicate the instruction!

    • @KGPTalkie
      @KGPTalkie  5 лет назад

      It is necessary otherwise capacitor discharge too fast

    • @imcnx1563
      @imcnx1563 5 лет назад

      Don’t worry ST don’t use one cap, it uses 2 even 3 cap and a large resistor ;)!
      Try without the delay and it works fine as we expected

    • @KGPTalkie
      @KGPTalkie  5 лет назад

      Hi,
      There is just one capacitor is connected with user button which is 100nF and resistance connected with it is 4.7K therefore RC is equal to 4.7k x 100nF which really very small amount of time. You might have got correct answer but I am not sure you will always get. Please refer datasheet for schematic Diagrams.

    • @imcnx1563
      @imcnx1563 5 лет назад +1

      I have 3 connected cap on my board! Even thought with one cap it works fine, but I’m not sure that you have only one cap or one resistor, there’s an other resistor on your board, I advice you don’t use denouncing via software bc the uC will be occupied and waiting out the delay

  • @KananDethin
    @KananDethin 8 лет назад +1

    Merci.

    • @KGPTalkie
      @KGPTalkie  8 лет назад +3

      For those who don't know French. 'Merci' means Thank You :P

  • @kratosfromsparta
    @kratosfromsparta 4 года назад

    От вашего английского уши вянут, жесть. Лучше переводчику скормите свой индийский и транслируйте.