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)
GitHub
GitHub - MuskaanJain2021/MULTITASKING-ON-STM32F407VGT6
Contribute to MuskaanJain2021/MULTITASKING-ON-STM32F407VGT6 development by creating an account on GitHub.
9 Replies
I can help, where are stuck?
@KarmaHitsBack⚡ so where are you stuck?
2. Systick I changed entire driver I know it’s a down counter prev I made systick counter ++ for ticks. It was increasing but current time was 0 and wasn’t entering if in led pattern driver .
1. Interrupt not firing
Exti has switch implementation
Gpio init working fine that’s why led was off initially and on press it started glowing
NVIC driver working perfectly
so where is your application broken then, I see no specific points
I didn’t get ur point
Can u be more clear
There are too many issues above to determine what is stopping you.
I think my drivers are Gud enough. I have recently self working on bare metal
So where is your code acting unexpectedly
Interrupt not triggering 1st
Previous systick I defined that way switching happening
While debugging
I then thought abt using attribute thing and making variables in RAM and ROM
Should I try that
But before that both issues I need to find out the cause
Can anyone help me out or atleast give me some pointers
Start by fixing what you know is broken