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 12:06 PM
It looks like a basic transmit. Though you should be using strlen((char*)p_str) instead of hardcoding the number 15 because the string length changes.
If you use the VCP( UART2), do you see your string using something like Putty or Docklight?
2024-10-29 12:32 PM
Hi Karl,
So i've taken on board what you have said and i am not transmitting it to huart2 aswell. I can see that hello world is being transmitted onto tera term.
However the signals from huart1 are still not showing up when running it through debug
My code and tera term communication
2024-10-29 01:03 PM
Your code shows a comment that UART2 doesn't work. However Tera Term shows that it is working. So it looks like it's an issue with your logic analyzer?
Maybe try a basic blinking LED or GPIO pin at 1 KHz and see if the logic analyzer works picking up that signal?
2024-10-29 01:08 PM
Hello,
Need to fine tune the timings of your logic analyzer (decrease the time scale) an set a trigger on the falling edge
2024-10-29 01:13 PM
I see where the confusion occurs, the reason it says UART2 doesn't work is because i don't get anything though PA2 or PA3 even when running the program at full speed.
I thought the exact same thing that the logic analyser might be the issue so I actually have 2 logic analysers and they both seem to be giving me the exact same issue.
2024-10-29 01:40 PM - edited 2024-10-29 01:44 PM
Well where are you testing for PA2 and PA3? They don't go to the Arduino connector or Morpho connector.
Edit: I stand corrected, they do go to the Arduino connector so i assume you're testing there with the logic analyzer?
Have you checked to see if the SB63 and SB62 have solder or a resistor?
2024-10-29 01:55 PM
Hi SofLit,
I wanted to make sure I wasn't going crazy, so I brought out one of my previous projects with the logic analyser. This is a simple I2C communication (using the same nucleo board) communicated with an AHT10 sensor. Below are the readings from my logic analyser (top is SCL and bottom is SDA). You can see that it works fine with I2C protocol
2024-10-29 02:00 PM
Hi Karl,
I appreciate you taking the time to help me fix this.
I turned the board on it's front and saw that SB61 and SB62 both have solder on them and not a resistor. I'm not sure what this means? (They are located at the bottom of the image)
2024-10-29 02:18 PM
It's only solder on the pads, but not soldered to make a bridge. So that is why if you're testing at the Arduino connector D0 and D1, you're not seeing any data.