NUCLEO-F401RE UART not showing up on logic analyser via pins
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.


