Tool/software: TI-RTOS
my board is am5728-idk
1 the example of UART_BasicExample_idkAM572x_c66xExampleProject is UART3
2.Now I want change it to UART2 that is link to RS485
2.1 I link the idkAM572x_clock.c and add UART2 clock
CSL_FINST(l4PerCmReg->CM_L4PER_UART2_CLKCTRL_REG,
L4PER_CM_CORE_COMPONENT_CM_L4PER_UART2_CLKCTRL_REG_MODULEMODE, ENABLE);
while(CSL_L4PER_CM_CORE_COMPONENT_CM_L4PER_UART2_CLKCTRL_REG_IDLEST_FUNC !=
CSL_FEXT(l4PerCmReg->CM_L4PER_UART2_CLKCTRL_REG,
L4PER_CM_CORE_COMPONENT_CM_L4PER_UART2_CLKCTRL_REG_IDLEST));
2.2 I link the boardPadDelayInit.c ,so I can use the PinMux about UART2
2.3 I also link the idkAM572x_lld_init.c and
2.3.1 I change the interrupt
CSL_xbarDspIrqConfigure(1,
CSL_XBAR_INST_DSP1_IRQ_34,
CSL_XBAR_UART3_IRQ);
to
CSL_xbarDspIrqConfigure(1,
CSL_XBAR_INST_DSP1_IRQ_34,
CSL_XBAR_UART2_IRQ);
2.3.2 I change BOARD_UART_INSTANCE_BETA = 1 (UART2)
3.I use 232 to 485, 232 link to my computer and 485 A+ link to A+(J39)
4 Then I can run the .out ,but I cannot get any message.