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.

RTOS/AM6548: IDK can-eth-gateway demo

Part Number: AM6548
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hi,

I took new release of PDK(1_0_4) and Processor SDK(5_03_00_07). I followed the "can-eth-gateway demo" steps mentioned in :"http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_examples_demos.html#can-eth-gatway-demo

I have trouble running the demo,

 --> Not able to Ping 192.168.1.4 from PC 192.168.1.20

here are few points which are not clear : 

1. In "AM65xx IDK" which ethernet port is used for this DEMO, I am connecting on RJ45 named "MCU ETHERNET".

2. In Documentation link above Chapter 9.15.8.5, Point 6 : Load the System firmware as specified in SCICLIENT documentation,  Can you please provide the link describing this step . Also if this step is required to RUN the demo?

3. In case PEAK CAN tool is not available, Is it possible to reduce the CAN baud rate to 500Kbps/2Mbps?

 

4. Flowing error message comes when pause the Program in CCS : 

MCU_PULSAR_Cortex_R5_0: Trouble Halting Target CPU: (Error -2062 @ 0x136) Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 8.1.0.00007) 

In case some more information helping this topic would be grateful.

Thanks and Regards

Avinash

  • Avinash,

    I asked the dev team for clarification. For sciclient, it is needed. We typically load it via Java script, see software-dl.ti.com/.../index_how_to_guides.html

    10.3.1.3.3. Advanced AM65x Debug Setup with DMSC Firmware Load

    Regards, Eric
  • Thanks Eric,

    After following software-dl.ti.com/.../index_how_to_guides.html I was able to update the DMSC firmware.

    and after some trial and debugging I was able to run the  gateway demo only CAN to ETH, but not to ETH to CAN.  I captured following points during my work.

    1. File name mentioned to change the Static IP or DHCP client is not correct, instead of "nimuExample_r5.cfg" it should be "sysbios_cfg_r5.cfg" .

    2. Used "MCU EThernet" Port

    3. Used CAN 0 from "IDKAPPEVM" board. Register Adaptation mentioned in "9.15.8.3. AM65x EVM/IDK Board Set up" Is already there, so I didn't had to change anything.

    4. Instead of PEAK, I have used Kavaser CanKing.

    5. Compiled binaries are getting generated in "ti\pdk_am65xx_1_0_4\packages\ti\binary\gatewayapp\bin\am65xx_idk\".

    6. Used  Code Composer Studio : Version: 9.0.1.00004 .

    Question : 

    a . Ethernet GW is working with TCP, Is there any configuration which can change TCP to UDP?

    b.  How to change the CAN baudrates?

     

  • Hi,

    It is possible to change/reduce the baudrate to 500Kbps and 2 Mbps. You need to modify the application and re-buid it. Changes are as:
    /* Initialize bit timings
    * Configuring 500Kbps and 2Mbps as nominal and data bit-rate respectively */
    bitTimes.nomRatePrescalar = 0xFU;
    bitTimes.nomTimeSeg1 = 0x5U;
    bitTimes.nomTimeSeg2 = 0x2U;
    bitTimes.nomSynchJumpWidth = 0x0U;
    bitTimes.dataRatePrescalar = 0x4U;
    bitTimes.dataTimeSeg1 = 0x3U;
    bitTimes.dataTimeSeg2 = 0x2U;
    bitTimes.dataSynchJumpWidth = 0x0U;
    Make above changes at line no. 564 in file ‘can-eth-gateway/src/gateway_app.c’.

    Current gateway demo only supports TCP. It does not support UDP.

    Regards, Eric