2022-06-24 12:58 AM
I'm using STM32H743. I'm trying to apply the following pdf but I'm having difficulties with pin settings and applying the example. I need help. THANK you
2022-06-24 01:28 AM
I can't do this via CubeMX. I am using USART1 channel.The code in the example is prepared for STM32F303. I reviewed the code and the STM32F303 datasheet. The GPIOE pin is not a USART rx pin for the STM32F303. In the description next to the code you said "Configure the USARTx RX pin
to generate an interrupt on
each rising edge." then EXTI is opened to the GPIOE pin in the code part. USART1 Rx pin PA10 for STM32F303 not GPIOE1. I can't understand the situation.
2022-06-24 09:45 AM
On some F3 PE1 is a USART1_RX pin. Example STM32F303xB STM32F303xC in WLCSP100 and LQFP100 packages.
You must port the example to the pins you actually use.
2022-06-27 01:56 AM
Sir,
I set the ports for STM32H743, which is the processor I use. But I can not open STM32H743 Usart1 Rx pin with EXTI and Rx features at the same time.CubeMx won't let me do it.
2022-06-27 03:03 AM
Clicking in CubeMX is comfortable, but you'll hit this sort of limitations as soon as you want to do something which is not envisaged by CubeMX authors.
In other words, you have to write your code yourself. I don't use Cube, but I know Cube users pulled this out in the past by letting CubeMX set the pin as EXTI input, and then manually changing it to given AF. Try searching in this forum.
Of course, this always can be done by normal programming of the respective GPIO, SYSCFG and EXTI registers.
JW
2022-06-27 04:09 AM
yes, I defined it as EXTI pin on the code. Realizing that CubeMX does not allow this, I wondered if I should not do it this way. I understand that part now, thank you for your help. As far as I understand, when data comes to the RX pin, an interrupt is created over EXTI and the elapsed time is calculated. We reach the baud rate from there. I want to ask one more thing. A variable named end_interrupt_flag is checked in the I Shared to you section of the PDF above, but this variable is not defined anywhere in the example. Could the variable mentioned here be the interrupt_flag variable?
2022-06-27 10:58 PM
yes i got that part done. I don't understand the interrupt-flag part :-
2022-06-28 12:16 AM
I don't know, there appears to be no acompanying code to that AN. I tried searching Cube examples but could not find any autobaud example.
@Amel NASRI can you please help us locate the software for this AN?
Thanks,
JW
2022-06-28 03:19 AM
Hi @Community member ,
I confirm that there is no software example provided with this application note.
@sbura.1 : I agree with your interpretation regarding interrupt_flag variable: for both variables, we speak about the end of the interrupt in the comment.
-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.
2022-06-28 03:37 AM
Thank you for your help.