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.

AM335x ICE settings to build example apps to use the USB Console ?

Hi,

I am attempting to use the apps in the am335x StaterWare 1.1.0.5 and cannot get them to use the USB console.  The prebuilt apps do.  For example the enetLwip prebuilt app runs when I load it on the board and outputs to the USB console. (it also runs correctly).  The one I build with CCS 5.4 does not. 

I have built the application with USE_CPSW_DRIVER and CONSOLE=SEMI_HOSTING set as suggested in the comments and also have changed the ConsoleUtilsSetType to CONSOLE_DEBUGGER) instead of CONSOLE_UART. That didn't have any effect.

What were the settings used to build the pre-built version of this app in the 1.1.0.5 prebuilt download ?

Thank you for the help.

--jim schimpf

  • Hi Jim,

    Actually the USB console you refer connects to AM335X UART0. There is an FTDI USB-to-serial converter on the ICE board.

  • Thank you.  

    I have restored the settings to CONSOLE_UART but it still doesn't print on the USB PORT.   When I push reset on the board I get the message from the Starter Ware Boot Loader 1.0.4-MCR BOOT on my USB connected serial terminal.  But then when I load in the APP from CC2 nothing comes out.  But the prebuilt app when run from an SD card does print just fine.

    --jim schimpf

  • More discovery:

    Reading over the I2C_led from the sdk examples I find that it determines the type of board, then gets a UART number and explicitly opens it.  All I/O is then done via UARTPutString() calls.  While in enetLwip the Console is opened and all I/O is done via ConsoleUtilsPrintf().  The I2C_led example does print it's messages on the USB terminal while the enet example does not.  

    Have the binary example programs been re-written for the V2 board ?

    I know I'm probably missing an obvious setting but I cannot find any references for this information.

    Thanks for the help

    --jim schimpf

  • More configuration issues.

    When I look at the project information on evmLwip it is building for the evmskAM335x rather than the evmAM335x (Project->Properties->Arm Linker->Basic Options.

    What settings should I change in the evmLwip project and the libraries that support it ?  I have read the Getting Started Guide and the SDK and StarterWare user guides and they don't mention any setting changes I have not made so far.

    Sorry I'm a bit slow but I need a list of what I need to do to build my own copy of the enetLwip app.

    Thank's for your help.

    --jim schimpf

  • Hello,

    I think you are mixing up the Starterware and SDK examples here. Starterware examples do not support Industrial boards (ICEv1/v2), only the example in Industrial SDK (IA_SDK_HOME/examples) would work.

    And yes these are tested on ICEv2

    Regards,

    Vinesh