hi,
I tried to use UART_TwoBoards_ComPolling example in stm32Cube. I know that this example is for communicating between two controller but i connected one controller's Tx and Rx pins to the ftdi chip that connected to pc with usb to observe what controller is sending. However,when i press the user botton on the board, pc seems like doesnt receive anything, tx and rx leds on ftdi also dont light up.
thanks
Does the STM32 USART TX connect to the FTDI RX ?
on issues like this ALWAYS, yes ALWAYS read the documentation, well, you should always do it, but here there is no 'standard'. there ARE instances where Rx connect to Rx (disagree with that labeling) I have seen it.
yes sir, in that example there is read_me.txt file that shows connections rx to tx,tx to rx. I think the problem is on board ,it doesnt send data through tx.Did you try that example code before,it worked ?
_________________________ _________________________ | ______________| |______________ | | |USART | | USART| | | | | | | | | | TX |_____________________| RX | | | | | | | | | | | | | | | | | | | | | | RX |_____________________| TX | | | | | | | | | |______________| |______________| | | | | | | GND|_____________________|GND | |_STM32_Board 1___________| |_STM32_Board 2___________|
i used ftdi chip instead of second board and i tested ftdi chip before it was working correctly.
hi i think i found out where i was wrong.When i take a look carefully The readme.tx file again,it tells that Tx pin is PA9 and Rx is PA10 but on the stm32l0r8 board rx and tx pins are labelled to PA2 and PA3.I didnt understand why is this contradiction. Does anybody know?
Is it perhaps discussing a different board? Like a DISCO board rather than a NUCLEO?
You should read the manual for your specific board, and your specific FTDI converter.
If you still have further doubt, get the board to output a constant stream of characters, like 'U', and confirm you can see a signal on a oscilloscope, and that the bit timing is correct for the baud rate chosen. Do the same thing on a PC with the FTDI board, and confirm both ends work as expected.
Do USART's work on STM32 parts? Yes. Have I tested your part/board? No, and don't plan to go through all the documentation to ascertain what you may or may not be doing wrong.
Also there are like three NUCLEO board families now for 32, 64 and 144 pin devices, make sure you look at the right manuals, and examples, and if you might need to port/tweak examples to get them to work. Assume some examples may have been auto-generated, and that ST hasn't done regression testing on thousands of board/chip permutations.
Thank you sir for your very informative comment.
Ihe board is Nucleo one.The problem was using wrong pins as RX and TX.However in that board RX and TX pins labelled to DO and D1
(www.google.com.tr/search
but actually the pins D8 and D2 are working as TX and RX.
Now i am trying to find the part in the Manual, description about this.
Easiest way to work out what connects where would be to look at the schematic