This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F28M35 UART问题

Other Parts Discussed in Thread: CONTROLSUITE

双核芯片在调试中发现一个问题,采用PB0作为U4TX用时,无法输出数据,采用PG1作为U4TX可以正常输出数据。

配置函数如下:

GPIOPinConfigureCoreSelect(GPIO_PORTB_BASE, 0xFF, GPIO_PIN_M_CORE_SELECT);

GPIOPinTypeUART(GPIO_PORTB_BASE, GPIO_PIN_2 | GPIO_PIN_0);

GPIOPinConfigure(GPIO_PB2_U4RX);

GPIOPinConfigure(GPIO_PB0_U4TX);

这个是不是双核的bug?

  • Chen Tao

    下面的语句在有在你的代码中吗?

     // Enable the peripherals used by this example.    

    SysCtlPeripheralEnable(SYSCTL_PERIPH_UART40);    

    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);

     // Set GPIO B0 and B2 as UART pins.

    GPIOPinTypeUART(GPIO_PORTB_BASE, GPIO_PIN_0 | GPIO_PIN_2);    

    GPIOPinConfigure(GPIO_PB2_U4RX);    

     GPIOPinConfigure(GPIO_PB0_U4TX);

    // Configure the UART for 115,200, 8-N-1 operation.    

    UARTConfigSetExpClk(UART4_BASE, SysCtlClockGet(SYSTEM_CLOCK_SPEED), 115200,                        

                                                                                    (UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |                        

                                                                                    UART_CONFIG_PAR_NONE));

    // Enable the UART interrupt.    

     IntRegister(INT_UART4, UARTIntHandler);    

     IntEnable(INT_UART4);    

     UARTIntEnable(UART4_BASE, UART_INT_RX | UART_INT_RT);

     

    Eric

  • chentao,

    可以将今天你和客户做实验得出的结论跟大家分享下,以后也有个参考意义。谢谢!

  • 最后用ControlSUITE里面的 UART_ECHO例程建了个工程,然后把端口改为PB0。发现U4TX又能工作了。

    应该是客户程序里别的修改了这部分设置,还在查。

    可以排除F28M35 BUG的问题。