I stopped by for one video and stayed to watch the entire series. Very nicely done helped to fill in a lot of questions I had after watching many other videos including STMicros series.
Thank you. This is the best explanation of gpio interrupt that I came across. Appreciate it🙏 Please do more videos on debugging n monitoring the application using CubeIDE. Thank you in advance.
Hi, you did a really nice job in creating these video series! I like it very much. Are you planning to do more videos like that? Your videos are very helpful. Regards Dom
Great explanation. Just writing my own code and the compiler gives a warning that the HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) is unused. Sure enough when I check with the debugger and step through the code, when I trigger the interrupt it goes to the weak definition of the callback function. Has me beat at the moment.
Dear KD. If two Interrupt requests were issued at the same time, the priority of each of them will decide which one will be serviced, but, my question is: Does the STM32's HAL_ or LL_ function for ISR will DISABLE any Interrupt during the ISR? OR just THAT serviced ISR, or what? And where, or when, the general Interrupt will be allowed, just after the finishing ISR (or do we need to take explicit actions for each act)? Regards.
Hi how much is the time between interrupt(falling or rising edge) and function in normal case and how we can decrease this time ? (Doing the function immediately after interrupt without any delay)
Sir, I am trying to receive gps data each second using interrupt function.What I understood is that,I had enabled the global interrupt in stm32 configuration for uart3, and whenever the interrupt triggers,the programs goes to the callback function which is hal_uart_rxcpltcallback.The program reaches the function..I do some processing again and then enable the interrupt again..The next sexond when the data arrives at 100ms after a pps signal(reference signal marked for 1 second),again interrupt is triggered , program goes to callback function, does the particular function, comes out of callback function.This happens in every 100th -130th millisecond of each second.I understood that whenever the codes enters the callback, ,the interrupt is diabled and we need to enable the interrupt again to receive the next data..Altogether 300bytes of data arrives from 100 to 130milliseconds..After 130 milisecond,if suppose some random data arrives, the interrupt may still trigger, since each time i enable the interrupt while coming out of callback function..how to stop receing the interrupt after 300millisecond? Can i use abort function?? Also can you please explain What is the differnce between isr function and callback function??Looking forward for your reply
In the "strongly" defined HAL_GPIO_EXTI_Callback function, you put if(GPIO_Pin == B1_Pin). Does that mean if you have another external interrupt, you would put another if statement for that other pin in the same callback function? Is that callback function shared amongst all the EXTI's?
I wanted to use the PE4 pin, but the compiler shows an error, it only accepts EXTI0 - EXTI3 registers, what's the problem? The documentation and implementation are completely incomprehensible... I prefer to use pe3? According to the documentation, i can use all of them from 0-15, but how...?
Good explanation ,wanted to know how to come out of an interrupt for eg. consider that in main some execution is going on and an interrupt occurs and controller moves to serve interrupt so after serving the interrupt how to come back to main program wanted to know which instruction to use to come out of any interrupt
On a higher-level(In C code), you will return from the interrupt as soon as all the code in the ISR ends. But if you are looking for the exactly assembly instruction then you will have to look into the Assembly code equivalent of the C code ISR. This can be done when debugging is on and you can click on "view disassembly"
how can i determine the port that generate the interruption as i can see you can get the pin wich generarte the interruption but i dont get how to get the port
you have done soo good sir💯. Please complete that STM32 series programming codes. Its makes helps for me. Sir if I want to contact with you regarding STM32 code then how to contact with you sir?🙏🙏🙏
Ciuvak, Artur de la BSWTech o facut mai repede si mai ciotka, el o folosit volatile variabila in functia _weak. Daca ceva iti dau nr lui si il suni pentru consultari. Te pup