2024-06-22 03:08 AM
hello guys,
i am using a FTDI FT232B17 for serial communicaiton with my stm32f429 board. i'm using keil uvision, and not using any libraries other than stm32f429xx.h to write the code. i am facing problems "receiving" data from the ftdi-ft232 to my STM32 board. i have successfully sent data from stm32f429 and am able to see it on tera-term/real-term etc, but i am not able to echo or receive data, any ideas where it could be wrong? i have double checked my hardware connections. while running the program when i click "send" from the Real-term, light blinks on the ft232 board but unfortunately nothing is received on stm32.
Solved! Go to Solution.
2024-06-24 04:27 AM
guys turns out, PA0 and PA1 didnt work because of being connected to the RAM and they were pulled low, i check with the oscilloscope if the signal was received on PA1, it was indeed but since it was pulled low, i used a different port, PC10 and PC11 which did work
2024-06-22 04:54 AM - edited 2024-06-22 04:56 AM
Hi,
>any ideas where it could be wrong?
in your program ...
or hardware: did you check with scope, data coming to F429 rx pin ?
+ Which uart ? Did you check, nothing connected on your board to the rx pin ?
2024-06-22 05:03 AM
i toggled the on-board LED on my code to find where i am wrong, it turns out
2024-06-22 08:20 AM - edited 2024-06-22 08:59 AM
Make sure to clear any pending errors on the UART, so noise, framing type errors.
The STM32F429I-DISCO likely to have very few unconflicted pins.
Provide a wiring diagram and initialization code for clocks, pins and peripheral.
char InChar(void)
{
while((USART_RS232->SR & USART_SR_RXNE) == 0) // Wait for Char
{
if (USART_RS232->SR & (USART_SR_PE | USART_SR_FE | USART_SR_NE | USART_SR_ORE)) // Check/Clear Errors
USART_RS232->DR;
}
return((char)USART_RS232->DR); // Read Char
}
2024-06-23 10:41 PM
not working, the RXNE bit is the problem and i don't know why its not getting low and the while loop isn't moving forward. everything else works,as i said, i am able to send the data from the microcontroller with the same setup but not receive.
2024-06-24 04:27 AM
guys turns out, PA0 and PA1 didnt work because of being connected to the RAM and they were pulled low, i check with the oscilloscope if the signal was received on PA1, it was indeed but since it was pulled low, i used a different port, PC10 and PC11 which did work