Become a leader in the IoT community!

New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!

Step 1 of 5

CREATE YOUR PROFILE *Required

OR
Step 2 of 5

WHAT BRINGS YOU TO DEVHEADS? *Choose 1 or more

Collaboration & Work 🤝
Learn & Grow 📚
Contribute Experience & Expertise 🔧
Step 3 of 5

WHAT'S YOUR INTEREST OR EXPERTISE? *Choose 1 or more

Hardware & Design 💡
Embedded Software 💻
Edge Networking
Step 4 of 5

Personalize your profile

Step 5 of 5

Read & agree to our COMMUNITY RULES

  1. We want this server to be a welcoming space! Treat everyone with respect. Absolutely no harassment, witch hunting, sexism, racism, or hate speech will be tolerated.
  2. If you see something against the rules or something that makes you feel unsafe, let staff know by messaging @admin in the "support-tickets" tab in the Live DevChat menu.
  3. No age-restricted, obscene or NSFW content. This includes text, images, or links featuring nudity, sex, hard violence, or other graphically disturbing content.
  4. No spam. This includes DMing fellow members.
  5. You must be over the age of 18 years old to participate in our community.
  6. Our community uses Answer Overflow to index content on the web. By posting in this channel your messages will be indexed on the worldwide web to help others find answers.
  7. You agree to our Terms of Service (https://www.devheads.io/terms-of-service/) and Privacy Policy (https://www.devheads.io/privacy-policy)
By clicking "Finish", you have read and agreed to the our Terms of Service and Privacy Policy.

Multitasking on Stm32f407vgt6

https://github.com/MuskaanJain2021/MULTITASKING-ON-STM32F407VGT6.git

Task I am trying to achieve is

The LED is off initially.
Depending on switch press, the LED blinks in following way.
1st Switch press: LED blinks at frequency of 0.5 Hz.
2nd Switch press: LED blinks at frequency of 1 Hz.
3rd Switch press: LED blinks at frequency of 2 Hz.
4th Switch press: LED turns off.

I am using NVIC,Exti, gpio, systick,led pattern drivers .

Present status is led is off initially and then it glows on 1st button press then nothing happens(still on)

  1. superbike_z#0

    I can help, where are stuck?

  2. superbike_z#0

    @karmahitsback so where are you stuck?

  3. karmahitsback#0

    1. Interrupt not firing

  4. karmahitsback#0

    Exti has switch implementation

  5. karmahitsback#0

    Gpio init working fine that’s why led was off initially and on press it started glowing

  6. karmahitsback#0

    NVIC driver working perfectly

  7. superbike_z#0

    so where is your application broken then, I see no specific points

  8. karmahitsback#0

    I didn’t get ur point

  9. karmahitsback#0

    Can u be more clear

  10. superbike_z#0

    There are too many issues above to determine what is stopping you.

  11. karmahitsback#0

    I think my drivers are Gud enough. I have recently self working on bare metal

  12. superbike_z#0

    So where is your code acting unexpectedly

  13. karmahitsback#0

    Interrupt not triggering 1st

  14. karmahitsback#0

    Previous systick I defined that way switching happening

  15. karmahitsback#0

    While debugging

  16. karmahitsback#0

    I then thought abt using attribute thing and making variables in RAM and ROM

  17. karmahitsback#0

    Should I try that

  18. karmahitsback#0

    But before that both issues I need to find out the cause

  19. karmahitsback#0

    Can anyone help me out or atleast give me some pointers

  20. superbike_z#0

    Start by fixing what you know is broken

CONTRIBUTE TO THIS THREAD

Browse other Product Reviews tagged

Leaderboard

RANKED BY XP

All time
  • 1.
    Avatar
    @Nayel115
    1620 XP
  • 2.
    Avatar
    @UcGee
    650 XP
  • 3.
    Avatar
    @melta101
    600 XP
  • 4.
    Avatar
    @lifegochi
    250 XP
  • 5.
    Avatar
    @Youuce
    180 XP
  • 6.
    Avatar
    @hemalchevli
    170 XP