2022-12-20 02:39 AM
I'm modifying code for a Atmega AVR to a STM32L03 and encounter ISR(USART1_START_vect). It is a function that is called when the UART receives a start frame. I'm a newbie to this STM32-processor but I have googled and checked in inc-files but I cannot find any suitable code. I'm using HAL for now.
Have anyone a suggestion?
Thanx
Solved! Go to Solution.
2023-01-03 02:36 AM
The interpreter library is written to handle only one UART port. The code includes detection of start and stop frames. If I do this detection outside the library functions, the impact will be too great. It is easier to hire the interpreter after the first byte has arrived and continue to feed the interpreter with more data until the entire message is processed. After that the flag is reset and the respective UART buffer is checked if more data has arrived.
2023-01-04 01:37 AM
That "Getting started..." explained everything. I understand the flow now and how everything is connected and supposed to work.
2023-01-04 10:30 AM
@Amel NASRI , by the way, the text and image in the section "2.4.1 HAL Library workflow summary" of that article contains a notion of HAL_EXTI0_IRQHandler function, which does not exist. The "0" in the name is wrong and confusing.
2023-01-05 02:36 AM
Yes. I saw that one. That worried me a little because it meant that I still didn't understood the workflow. I made a global code-search and didn't find any function with that name so I thought it was a misspelling.
2023-01-05 03:23 AM
Good catch from @Piranha!
Yes indeed @Håkan Nalén it is a typo in the workflow and it will be fixed.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.