I see that fsp has the function of enabling rs485, and you can set the enable pin of rs485,Please give me a demo project of rs485
thx
Hi jerry,
At the moment we do not have a separate example on RS-485, because it can be configured within UART FSP configurations. RS-485 Half Duplex can be supported if DE pin is enabled and it can work with the existing UART APIs.
I hope it helps.
Regards,
AZ
Can you describe the board you are running on for the demo project, the type of RS-485 line drivers in use, the messages needed for master/slave configuration, and your target environment (FreeRtos, ThreadX, base metal), etc. That will help anyone willing to volunteer to do this project.
RS-485 is basically an UART with specific controls.
Unless you have to run a protocol, it's very similar to UART communication.
If you need a protocol, then you need the code for this protocol.
Please, elaborate on what you really need.
Thank you,
André
I see, I just see that the DE pin does not have an error message, when the pin is already in use。
FSP does not have an error message
Yes, that happens because DE pin is not included in the SCI pins and is handled as GPIO pin controlled by software. Please refer to r_sci_uart.c file of your project to see how DE pin is controlled by UART APIs.