2024-10-29 11:35 AM
I am using a Nucleo-F401RE and wanted to look at the UART section. Ideally i wanted to see the pins go up and down to see what they are doing.
I am using huart1 so the transmit is on PA9 and receive is on PA10. I've hooked up the logic analyzer to PA9 and PA10. To ground the logic analyser i am using pin number 7 on the CN6 connector.
Below is what the logic analyzer is showing. It seems like it is very intermittent. When i am debugging it and get to the stage where it needs to send a signal out, nothing shows up. If i run it continuously i can see the pin fluctuate.
What am i doing wrong?
My Code is rather simple.
2024-10-29 02:39 PM
Thank you for that answer Karl.
So that explains why i'm not seeing any data for huart2 but what about huart1?
They seem to be using PA9 and PA10 which are D8 and D2 respectively. They don't seem to have any solder bridges or resistors required to get them to work?
2024-10-29 03:35 PM
I don't see any solder bridges so you should be able to see some data. Are you sure PA9 and PA10 is selected? Because UART1 can also be mapped to PB6 and PB7.