STM32F401 UART

For general Flowcode discussion that does not belong in the other sections.
LeighM
Valued Contributor
Posts: 401
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 70 times
Been thanked: 217 times

Re: STM32F401 UART

Post by LeighM »

Try this ...
32F401RC.fcdx
(47.18 KiB) Downloaded 90 times

Alan_37
Posts: 125
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 37 times
Been thanked: 17 times

Re: STM32F401 UART

Post 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 .

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 70 times
Been thanked: 217 times

Re: STM32F401 UART

Post 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?

Alan_37
Posts: 125
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 37 times
Been thanked: 17 times

Re: STM32F401 UART

Post 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
Attachments
STM32F401_DUAL_UART.fcfx
(32.6 KiB) Downloaded 61 times

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 70 times
Been thanked: 217 times

Re: STM32F401 UART

Post by LeighM »

OK. You will need to remove the previous UART RX interrupt icons.

Alan_37
Posts: 125
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 37 times
Been thanked: 17 times

Re: STM32F401 UART

Post 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

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 70 times
Been thanked: 217 times

Re: STM32F401 UART

Post 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 77 times
If this works for you, the Matrix team can validate and update the official versions.

Alan_37
Posts: 125
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 37 times
Been thanked: 17 times

Re: STM32F401 UART

Post by Alan_37 »

Hi Leigh,

Sure will test tomorrow and let you know

Thanks

Alan_37
Posts: 125
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 37 times
Been thanked: 17 times

Re: STM32F401 UART

Post 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

Post Reply