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.

AWR1642: Data transfer over CAN network

Part Number: AWR1642
Other Parts Discussed in Thread: MMWAVE-SDK

Hi,

I want to transfer data over CAN to the device AWR1642. if I got well TI does not provide any .dbc or CAN map useful to use tool like CANDB++.

On the SDK folder C:\ti\mmwave_sdk_01_01_00_02\packages\ti\drivers\can\test\xwr16xx there is the file xwr16xx_can_mss.map . What kind of info I have into this file? Could be useful to know the ID CAN packets?

BR,

Fabrizio

  • Hi,

    The file you mentioned is not related to CAN map. It is the memory map used by the processor. It is generated for each driver/demo test for debug purposes.

    Which HW board do you plan to use to transfer date over CAN?

    Thank you
    Cesar
  • Hi Cesar,

    Thanks for your reply.

    Basically What I have available here to transfer date over CAN from the SW point of view is CANoe 10.0 ( Vector ) and the Vector board for connection CAN/ Ethernet connected to the PC.

    The point  is I am not still sure How I can read correctly the CAN packets if I dont have a .dbc file or CAN map.

    Do you have some suggests ?

    BR,

    Fabrizio 

  • Sorry I have one more question than what I wrote before.

    I am going to compile the C# code for the CAN driver  (ti\mmwave_sdk_01_01_00_02\packages\ti\drivers\can )   through the tool  DEVC++ 

    Particularly  I compiled the file CAN.c  to implements the Controller Area Network Driver for the XWR14xx and XWR16xx plus the file can_xwr16xx.c

    Regarding the last file can_xwr16xx.c I don t understand where  do the functions SOC_XWR...... are coming from?since the compiler did not find those

    CAN_HwCfg gCanHwCfg[1] =
    {
    /* DCAN Hardware configuration:
    * - CAN controller register Base Address
    * - CAN message RAM memory Base Address
    * - CAN Interrupt 0
    * - CAN Interrupt 1
    */
    {
    SOC_XWR16XX_MSS_DCAN_BASE_ADDRESS,
    SOC_XWR16XX_MSS_DCAN_MEM_BASE_ADDRESS,
    SOC_XWR16XX_MSS_DCAN_LVL0_INT,
    SOC_XWR16XX_MSS_DCAN_LVL1_INT
    }
    };

    BR,

    Fabrizio

     

  • Hello Fabrizio,

    The SOC definition can be found in below file in the MMWAVE-SDK:
    $mmwave_sdk_01_01_00_02\packages\ti\common\sys_common_xwr16xx_mss.h

    Thanks,
    Raghu
  • Hi Raghu,

    One information.

    At the moment I am trying to do the debugging of the file main.c ( ti\mmwave_sdk_01_01_00_02\packages\ti\drivers\can\test\common\main.c) to use the CAN protocol. Since my laptop goes continually  in crush with the CCS I am using a lighter C/C++ compiler called Code-Blocks. I imported all the TI libraries BIOS-XDC etc etc into this tool.

    Now going to debug the main.c  I have the following problems with the library system.h (see below) 

     

    Could you help me for that?

     

    BR,

    Fabrizio

     

     

     

     

     

  • Hello Fabrizio,

    Do you have the right version of the XDC tools installed (xdctools_3_50_00_10_core)? The error could be due to mismatch in the XDC tool version.

    Please install the xdctools_3_50_00_10_core .

    BR,

    Raghu