@mark
Dear Mark,
Now I am trying run the uTasker on my customized board with KEAZ128(80PIN).
One modbus slave run on UART0 (on port A) with RS485, and the DEMO_UART on UART2(on port I).
There are few questions about MODBUS and UART .
1. Where to define the GPIO pin to work as RTS control when use RS485?
2. How to define UART pin ? The UART2 was used on port I bit0/bit1.
Read through uTasker_MODBUS.PDF and uTaskerUART.PDF ,find out that should use macro UARTx_ON_X to define
the UART pin .
But the macro UART2_ON_I can't be found .
Read the code ,found that the UART2 was hard code to port D .
In file "kinetis_uart.h" line 1906 :
case 2: // configure the UART Tx 2 pin
#if defined KINETIS_KE
_CONFIG_PERIPHERAL(D, 7, (PD_7_UART2_TX | UART_PULL_UPS)); // UART2_TX on PD7 (alt. function 2)
What's more ,the macro _CONFIG_PERIPHERAL was defined to dummy.
Do I need manually change the code to configure the UART2 on PORT I?
By the way , there is one FRDM-KL27Z and one FRDM_KEAZ128Q80 board in my hand. I can try first on that boards.
Could you thrown a simple demo to run a modbus slave with RS485, and the DEMO_UART on UART2(on port I).
Best Regards,
Kiger Zhang