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.

AWR1642BOOST: How to transmit data through CAN bus

Part Number: AWR1642BOOST

Hi Team,

I am currently using the lab0002_short_range_radar in mmwave_automotive_toolbox_3_6_0 for development and add CAN code in accordance with the following example.

https://www.ti.com/lit/an/spracg9/spracg9.pdf?ts=1676271953707&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FAWR1642%253Futm_source%253Dgoogle%2526utm_medium%253Dcpc%2526utm_campaign%253Depd-null-null-gpn_en-cpc-pf-google-tw%2526utm_content%253Dawr1642%2526ds_k%253D%25257b_dssearchterm%25257d%2526DCM%253Dyes%2526gclid%253DEAIaIQobChMI3KmVw_eR_QIVzlBgCh2zbQ90EAAYASAAEgKiFvD_BwE%2526gclsrc%253Daw.ds

https://www.ti.com/lit/an/spracf7/spracf7.pdf?ts=1676274810242&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FAWR1642%253Futm_source%253Dgoogle%2526utm_medium%253Dcpc%2526utm_campaign%253Depd-null-null-gpn_en-cpc-pf-google-tw%2526utm_content%253Dawr1642%2526ds_k%253D%25257b_dssearchterm%25257d%2526DCM%253Dyes%2526gclid%253DEAIaIQobChMI3KmVw_eR_QIVzlBgCh2zbQ90EAAYASAAEgKiFvD_BwE%2526gclsrc%253Daw.ds

But I encountered many problems meanwhile, such as the parameter 'undefined' in the function.

I would like to know

1. How to define these parameters (socHandle, DCAN_APP_INPUT_CLK, DCAN_APP_BIT_RATE...)? Is there any documentation available for reference?

2. Is it feasible to observe whether AWR1642BOOST has transmitted correct data through CAN analyzer?

ex.

If it is possible, is there a sample project or sample code that can transmit data through CAN? (I have tried lab0005_object_data_over_can, but it cannot work normally.)

Thanks and regards,

Katherine

  • Hi,

    The examples provided in the documents mentioned use probably older versions of the SDK.

    You would need to make the updates for the SDK being used.

    The

    mmwave_automotive_toolbox_3_6_0\labs\lab0002_short_range_radar uses the SDK 3.5 as mentioned in the release notes.

    The canfd unit test provides an example how to initialize the can driver

    C:\ti\mmwave_sdk_03_05_00_04\packages\ti\drivers\canfd\test\xwr18xx\main.c

    This example shows how to initialize the CAN FD driver for SDK 3.5

    Regarding the "lab0005_object_data_over_can" this lab has been tested and it is working.

    It supports SDK 2.1.0.4

    mmwave_automotive_toolbox_3_6_0\labs\lab0005_object_data_over_can

    The canfd unit test included in SDK 2.1.0.4 also shows how to init the canfd driver with this SDK

    C:\ti\mmwave_sdk_02_01_00_04\packages\ti\drivers\canfd\test\xwr16xx\main.c

    Thank you

    Cesar

  • Hi Cesar,

    Currently, the SDK I'm using is mmwave_sdk_03_06_00_00-LTS.

    If I want to use C:\ti\mmwave_sdk_03_06_00_00-LTS\packages\ti\drivers\canfd\test\xwr16xx\main.c for CAN data transmission test, could you tell me how to generate bin file to program to AWR1642BOOST?

    Because the sample program in C:\ti\mmwave_sdk_03_06_00_00-LTS\packages\ti\drivers\canfd\test\xwr16xx\main.c is not a CCS project, the bin file cannot be generated through the Build Project.

    In addition, I would like to whether the role of the sample code 'C:\ti\mmwave_sdk_03_06_00_00-LTS\packages\ti\drivers\canfd\test\xwr16xx\main.c' is to transmit the following data through CAN bus?

    Regards,

    Katherine

  • Hi,

    f I want to use C:\ti\mmwave_sdk_03_06_00_00-LTS\packages\ti\drivers\canfd\test\xwr16xx\main.c for CAN data transmission test, could you tell me how to generate bin file to program to AWR1642BOOST?

    Please follow the instructions in the mmwave user guide, section "Building drivers/control/alg components"

    C:\ti\mmwave_sdk_03_06_00_00-LTS\docs\mmwave_sdk_user_guide.pdf

    In order to build the canfd example you will need to use the makefile provided in

    C:\ti\mmwave_sdk_03_06_00_00-LTS\packages\ti\drivers\canfd

    Unfortunately there is no ccs project available

    n addition, I would like to whether the role of the sample code 'C:\ti\mmwave_sdk_03_06_00_00-LTS\packages\ti\drivers\canfd\test\xwr16xx\main.c' is to transmit the following data through CAN bus?

    Yes, this data is transmitted through CAN. However these are loopback examples

    thank you

    Cesar