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.

AM3359 ICE UART5 Hello World

Other Parts Discussed in Thread: SYSBIOS, AM3359

Hi

I have the AM3359 ICE board 1.0A and AM335X_StarterWare_02_00_00_06 and am335x_sysbios_ind_sdk_1.0.0.3 installed. The serial console via the FTDI chip is connected to UART5. That differs from the basic UART examples (without SYS/BIOS) where UART0 is used. I whote a simple console output to the ICE board and changed the output to UART5:

#include "uartStdio.h"
void main(void)
{
    char rxByte;
    UARTConsoleInit();
    UARTprintf("Hello World\n");
    while(1)
    {
        rxByte = UARTGetc();
    }
}

My problem ist that I can see the "Hello World" output on the terminal, but the UARTGetc() function is not running into the breakpoint.after that line if I send some characters (is does not receive the char):

   /* Waits indefinitely until a byte arrives in the RX FIFO(or RHR). */
    while(0 == (HWREG(baseAdd + UART_LSR) & UART_LSR_RX_FIFO_E));

My pinmux setup according to schematic AM335x_ICE_3h0013_Schematic_Rev 1_0a.pdf is:

void UARTPinMuxSetup()
{
     //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;

}

How do I compile the examles from AM335X_StarterWare_02_00_00_06\examples\evmAM335x\, they seem to be for another board ?

Is there a basic example collection for the ICE board without SYS/BIOS for the AM3359 ICE ?

regards, bjoern

  • Bjoern,

    could you please update to IA-SDK 1.0.0.4? I think there was a bug in the pin mux for the UART.

    Unfortunately ICE is not supported by the standard Starterware package from TI. So no other examples from TI. Sorry.

    Regards.

  • Hello Frank,

    Thanks for the quick reply. After updating to am335x_sysbios_ind_sdk_1.0.0.4, bios_6_33_05_46 and xdctools_3_23_03_53 I am able to compile the uartecho example, which echoes the input chars. With this working project I'll be able to proceed.

    Thanks, Bjoern

  • Hi,
    I am working with ICE AM3359 v2 and I am new to it. I am working with ADC example project that comes with sdk (am335x_sysbios_ind_sdk_1.1.0.8). Project is getting built successfully, but I am not getting any output in terminal. After seeing your post I realized that the program uses UART0. Can you please guide in how to configure for UART5 for my board.

    Thanks & Regards
    Rohan
  • Hi Rohan

    AM335x SYSBIOS IND SDK 1.1.0.x series is being maintained for existing legacy projects. The recommended package for all new projects is the SYSBIOSSDK-IND-SITARA: for the AM335x and AM437x device families. The release version as of this date is 2.1.1.2. There has been a number of improvements in the 2.1.x series software, documentation, and supported features which recommend it. You will find good partitioning of board, device and the device abstraction definitions, APIs and documentation. While all of this is said - I do not see a means to specify the UART to be 0 vs 5 . I will have to ask the development team for this answer.

    David
  • HI David,

    Thanks for your quick reply. Is there any other possible way to get the readings on terminal through USB without changing the UART.

    Thanks & Regards
    Rohan
  • Hi Rohan

    The Starterware and SYSBIOS examples enable a UART over USB connection between the EVM
    and host PC. This is performed through the USB port of the EVM when it is connected to the host PC .
    A serial terminal application (like teraterm/ hyperterminal/ minicom) is run on the host. To
    configure the terminal, select the serial port corresponding to the port emulated over USB by the EVM.
    Using the serial terminal application configure the host serial port to 115200 baud, no parity,
    1 stop bit and no flow control.

    The SYSBIOS Industrial SDK 2.1.1 Getting Started Guide, {in installation directory}/docs, has a section
    on launching and debugging an application in CCS on page 9 that includes recommendations if the
    output is not observed on the terminal application.

    David
  • Hi David,

    I followed the SDK Getting Started Guide but still couldn't get any output on Teraterm window after I debug the project. Whereas when I press reset button I can see loading details on Teraterm for ethercat demo application on Teraterm but nothing for ADC project.

    Can you please help me out with this one.

    Thanks & Regards

    Rohan 

  • Rohan

    I am seeing an UART output using for the Starterware ADC example in ISDK 2.1.1.2 with CCS 6.1.1.00022

    The Build configuration for this example requires several other project to be in the environment.

    The easiest way to locate these is import from the starterware directory and select from the

    projects that are displayed.

    The adc_app... was built with the AM33x debug configuration after selecting the ICE_AM3359 board

    on the General settings Panel.

    Following the instructions on building and debugging a CCS project in the SDK getting started guide,

    the UART display immediately was visible after pressing the CCS run arrow.

    David

  • Hi David,

    Thanks for such an effort of yours, after following your procedure I could also get output till that point but nothing is getting displayed, no messages or any garbage value.  Could you get any output ?

    Thanks & Regards

    Rohan