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.

uart echo example released in Industrial SDK for ICE not working

Other Parts Discussed in Thread: SYSBIOS

Hello,

as indicated in the release notes, this example is not working in both data directions.

It outputs chars and strings to the terminal, but can't get any data from the terminal.

Is there a working example for ICE using the serial port ?

Thanks, Jure Z.

  • Hello,

    I had the same problem. There is a mistake in pins configuration for UART 5.

    In file uart.c, in function void PinMuxUART(unsigned int instanceNum) is:

     case 5:
      //uart5_txd_mux
      HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(8)) = 4 | CONTROL_CONF_LCD_DATA8_CONF_LCD_DATA8_PUDEN |
                  CONTROL_CONF_LCD_DATA8_CONF_LCD_DATA8_RXACTIVE;
      //uart5_rxd_mux
      HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(9)) = 4;  

    and should be:

    case 5:
      //uart5_rxd_mux
      HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(9)) = 4 | CONTROL_CONF_LCD_DATA8_CONF_LCD_DATA8_PUDEN |
                  CONTROL_CONF_LCD_DATA8_CONF_LCD_DATA8_RXACTIVE;
      //uart5_txd_mux
      HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(8)) = 4;

     

    Best regards,
    Bogumil

  • Thanks Bogumil !

    I'll try your suggestion asap, (this morning), and let you know about the success.

    Jure Z.

  • Great solution Bogumil !

    everything works as expected.

    1) I patched the source file :

                                 C:\ti\am335x_sysbios_ind_sdk_1.0.0.3\sdk\platform\am335x\evmam335x\src\uart.c

    as per your instructions.

    2) I imported and recompiled the libraries, by importing and building the ccs project as included in:

         C:\ti\am335x_sysbios_ind_sdk_1.0.0.3\sdk\platform\am335x\evmam335x

    3) Finally rebuilt the uartecho example from the ind sdk and executed it, it works just fine !

    thanks a million !

    Jure Z.

  • Thanks guys, fast work and you answered before we had even time looking into this...

    I forwarded the link to our SW team so we get that fixed for next SDK rev.

    Regards.