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 prebuilt apps do not run

Other Parts Discussed in Thread: SYSBIOS, AM3359

Hi,

I have the AM335x Industiral Communication Engine.  I have downloaded AM335x SYSBIOS IND SDS 01_01_00_05 prebuilt applications.  Thus far only the LED application has worked when I loaded it on a SD card.  All of the apps come up and display their info on the scrolling OLED but then don't talk the console or further work.  I think the apps are running as the scrolling on the OLED never stops.

(1) UART ECHO - Comes up and displays it's logo but I cannot connect to the console.  The AM335x ICE does not have a standard serial port.  It has a virtual COM port built into the USB and that works fine with included EtherCAT demo but does not work with the UART ECHO. I have also hooked via a USB<->SERIAL adapter (not RS-232 but logic level) to 7 and 8 on J4 but nothing there either.

(2) enetLwip_Sysbios Comes up with the logo but I cannot see it on the network at 192.168.1.2 either to ping or at http. Also no console output. I tried both on a switch connected to the PC and directly to the PC.  I have one cable plugged into J1 and the ORANGE LED is on but the other is off.  I see a flash on the GREEN LED on the RJ-45 so there is some communication.  I also have the J19 set to 1-2. The yellow LED to the LEFT of the RJ-45 is on but no other LED save the power one is on.  With J19 in the other position neither the RJ-45 LED or the board led comes on.

If I plug J2 into the network I get both the ORANGE LED and flashing GREEN LED as we are seeing the building network traffic.

My SD card boot is working fine just the apps don''t seem to work.  I could not try the others since I don''t have the other support of the other buses and won't need them for my application.

Any suggestions on what try ?

Thanks.

  • Hello,

    First of all, all the pre-built binaries are expected to work on ICEv2 without any issues.

    Jim Schimpf said:
    (1) UART ECHO - Comes up and displays it's logo but I cannot connect to the console.


    Which tool are you using to connect? Are you following the configuration - "The host serial port is configured at 115200 baud, no parity, 1 stop bit and no flow control."? In case of ICEv2, all you need is to have a micro USB cable connected with the board-PC.
    Jim Schimpf said:
    I have also hooked via a USB<->SERIAL adapter (not RS-232 but logic level) to 7 and 8 on J4 but nothing there either.

    Why are you doing this?

    Jim Schimpf said:
    enetLwip_Sysbios Comes up with the logo but I cannot see it on the network at 192.168.1.2 either to ping or at http.


    Please follow the instructions here - http://processors.wiki.ti.com/index.php/AM335x_SYSBIOS_Industrial_SDK_01.01.00.05_User_Guide#EnetLWIP_sysbios

    Regards.
    Vinesh

  • Thank you very much for the reply. To answer your questions:

    On the UART program.  The EtherCAT demo that comes with the AM335X ICE does work with the USB COM port.  In my case COM13 appears, I run putty (115200 baud) and EtherCAT displays its console data just fine.  When I do the same thing with the UARTEcho program and attach to COM13 nothing happens, I get no data so I thought UARTEcho might for some reason might be using the pined out UART on the connector.

    On the Ethernet program, as I said the ethernet LED's on the RJ-45's are flashing so something is working.  I will try to assign a 192.168.1.x address to my PC and just have just it and the AM335x connected together.  Also while running this app I was connected to the USB serial channel (in my case COM13) and did not see output..

    I have verified USB connection is COM13 because it disappears when I pull the AM335x USB cable.

    Thank you again for the help.

    --jim

  • Hi,

    Some good news, the USB COM port does work. The trick is to power up the board, connect putty to COM13 then press reset and I get the banners and console output.

    *** StarterWare Boot Loader. Build - 1.0.5 ICE v2 - SD card
    Copying application image from MMCSD to RAM

    Copying to RAM completed successfully
    Image Copy Successful, Executing Application..

    TI Industrial SDK Version - IASDK 1.1.0.5
    Device name : AM3359
    Chip Revision : AM335x ES1.2 [PG2.1]
    ARM Clock rate : 600
    SYS/BIOS enetLwip Sample application running on ICE V2
    Acquiring IP Address for Port 1
    Port 1 IP Address Acquisition Failed.

    As you can see it failed to DHCP on our network.  Does that mean it defaults to 192.168.1.2 ?  It didn't seem to do that because:

    498 ~> ping 192.168.1.2
    PING 192.168.1.2 (192.168.1.2): 56 data bytes
    Request timeout for icmp_seq 0
    Request timeout for icmp_seq 1
    Request timeout for icmp_seq 2
    Request timeout for icmp_seq 3
    Request timeout for icmp_seq 4

    I also tried to do an http://192.168.1.2 with no success

    I have then configured my PC with a manually set IP address (192.168.1.25 and a net mask of 255.255.0.0) and connected it directly to the board.  I have an ethernet status of connected but I can neither PING or HTTP the board.

    Again thanks for your help.

    --jim

  • More news if I plug both AM335x Ethernet cables into a switch connected to our network I get:

    *** StarterWare Boot Loader. Build - 1.0.5 ICE v2 - SD card
    Copying application image from MMCSD to RAM

    Copying to RAM completed successfully
    Image Copy Successful, Executing Application..

    TI Industrial SDK Version - IASDK 1.1.0.5
    Device name : AM3359
    Chip Revision : AM335x ES1.2 [PG2.1]
    ARM Clock rate : 600
    SYS/BIOS enetLwip Sample application running on ICE V2
    Acquiring IP Address for Port 1
    Acquired IP Address : 192.168.1.2
    IP Address Assigned Successfully    <--- It worked !!!!

    But I cannot see this on my network, I cannot ping it or get an http.  Still working on it.

    --jim

  • Hello,

    As mentioned in the User Guide, the LWIP examples requires ETH0(J2) to be connected to the host PC, along with the host PC having an IP in the same subnet. For the LWIP example, only port 1 will work.

    The example assigns a static IP 192.168.1.2, to enable DHCP, you have to rebuild the application with appropriate settings.

    Regards,
    Vinesh

  • Thank you I did not notice the connect both part... When I did that it stared working both PING and HTTP worked:

    506 ~> ping 192.168.1.2PING 192.168.1.2 (192.168.1.2): 56 data bytes

    64 bytes from 192.168.1.2: icmp_seq=0 ttl=255 time=0.400 ms

    and HTTP:

    M335x SYS/BIOS Sample Application using LWIP
    The web page you are watching was served by a sample web server running

    on Texas Instruments' AM335x device. This sample application was

    developed using LWIP TCP/IP stack and Industrial SDK drivers on SYS/BIOSRTOS.

    Thank you for your patience and help.  Now to try to get the CC2 built version working.

    --jim schimpf