Page 3 of 3

Re: STM32F401 UART

Posted: Sat Jan 27, 2024 1:20 pm
by LeighM
Try this ...
32F401RC.fcdx
(47.18 KiB) Downloaded 134 times

Re: STM32F401 UART

Posted: Sat Jan 27, 2024 1:44 pm
by Alan_37
Hi Leigh,

interrupt Still not triggering in software mode i put the FCD file in C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ARM,
restart and recompile to chip .

Re: STM32F401 UART

Posted: Sat Jan 27, 2024 1:58 pm
by LeighM
Were you able to create interrupt icons for B7 (EXTI7 port B) and A3 (EXTI3 port A) and set the called macros, and compile ok?

Re: STM32F401 UART

Posted: Sat Jan 27, 2024 2:19 pm
by Alan_37
Hi , ohh ok i thought RX int , Yes now the interrupts are being triggered
but the data is not being recived properly , I send something and it reply
with something else

Re: STM32F401 UART

Posted: Sat Jan 27, 2024 2:37 pm
by LeighM
OK. You will need to remove the previous UART RX interrupt icons.

Re: STM32F401 UART

Posted: Sat Jan 27, 2024 2:38 pm
by Alan_37
Leigh , Ok working was my fault i set the interrupt on rising edge

Now software mode working Fine Thanks for your help

Regards Alan

Re: STM32F401 UART

Posted: Sun Jan 28, 2024 10:56 am
by LeighM
Hi Alan,
I think I've replicated your hardware UART RX interrupt issue,
so I've made some changes to the UART RX interrupt code.
Please could you try this with your earlier UART RX interrupt test ...
32F401RC.fcdx
(47.03 KiB) Downloaded 128 times
If this works for you, the Matrix team can validate and update the official versions.

Re: STM32F401 UART

Posted: Sun Jan 28, 2024 7:04 pm
by Alan_37
Hi Leigh,

Sure will test tomorrow and let you know

Thanks

Re: STM32F401 UART

Posted: Sun Jan 28, 2024 8:40 pm
by Alan_37
Hi Leigh,

I can confirm that the bug is now fixed 100%, have connected the RX of U1 and U2 together
so that the data arrives exactly the same time on the 2 UARTS.

Sent data every 200ms, tested for 20 minutes without any problems .

Kindly have a quick look to other STM Targets that maybe have same bug.

Thanks & well done !

Regards

Alan