Other Parts Discussed in Thread: PROFIBUS, ISO1050, ISO1176T
Tool/software: TI-RTOS
Hello,
I want to use uart1(rs485) which is present profibus line to communicate with a MODBUS slave.
Please correct me if any of my following steps are wrong.
According to the schematics connected jumper J8 to use UART1.
Currently using UART_BasicExample_icev2AM335x_armExampleProject. Added few line of code to use UART1
UART_Params_init(&instance_params);
uart_instance = UART_open(1, &instance_params);
When I write a value to UART1 it is blocked.
As the UART1 driver is RS485. I assume transmission enable signal as to be high. I figured out that transmission enable pin for this UART1 instance is GPIO3_19.
Now for this same project I included
#include <ti/drv/uart/test/src/UART_board.h>
#include <ti/drv/gpio/GPIO.h>
#include <ti/drv/gpio/soc/GPIO_soc.h>
to use GPIO driver I also added C:\ti\pdk_am335x_1_0_7\packages\ti\drv\gpio path to the project.
I'm still getting an undefined reference to `GPIO_write' error
Is my steps are correct? Can someone clearly explain how to use this UART1 in ICEV2AM3359.
Thank you
Regards
Vinay