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.

AWR6843AOPEVM: Test the available canfd code on the board

Part Number: AWR6843AOPEVM
Other Parts Discussed in Thread: UNIFLASH, MMWAVEICBOOST, AWR6843AOP

Hello TI,

In my process of working with CAN, I met this THREAD where it is suggested to test the code in SDK for CAN FD  in C:\ti\mmwave_sdk_version\packages\ti\drivers\canfd\test\xwr68xx to first make sure of the radar CAN functionality.

I am currently working with sdk 3.6 and ccs 12.3.0, could you please guide me on the process of doing this ? I tried importing the folder as a project on CCS but the .xer4f is not reognized.

Waiting for your answers,

Thanks and regards.

Lilia

  • Hi Lilia,

    We are looking into this and should be able to provide help with getting started with CAN within 24 hours.

    Best Regards,
    Kevin 

  • Hey Lilia,

    If you would like to run the test code for the CAN-FD driver, you can follow the instructions outlined in Section 4.5 of the MMWAVE SDK User Guide found in the following directory:

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

    The "Advanced build" subsection should be used when building and testing the drivers. If you configured the build environment correctly, it should generate a binary that you can flash onto the device as well. Let me know if you have any questions or run into any issues.

    Regards,

    Kristien

  • Hey Kristien,

    Thank you for your time and assistance.

    I went through the whole "Developing using SDK" Section, doing things step by step, on both Linux and Windows.

    1- Run the setenv.sh file after I modified device to awr68xx with correct sdk installation path : 

    2- Tested building the demo : 

    2.1- make clean 

    2.2- make all result : 

    I get an error, the thing is the different generated files are already in the directory so I caannot confirm if they were generated correctly or not.

    3- Building canfd example : 

    3.1- make clean : 

    3.2- make all : 

    3.3- The build folder content obj_xwr68xx : 

    Everything seems to be done well, however I don't have any .bin file generated that I can put in my device through Uniflash.

    Please enlighten me. Waiting for answers.

    Thanks and regards,

    Lilia

  • Hey Lilia,

    Before moving forward with running the test code, you will need an MMWAVEICBOOST. This will allow you to debug your application in CCS using the XDS110 on the board. Alternatively, you could create a .appimage file from the .xer4f file in the test folder for the 6843 using the Image Creator tools, but the generated .appimage won't generate any serial output and take in any serial inputs unless you modify the main program to do so. If you would like to run the Image Creator tools, they can be found under C:\ti\mmwave_sdk_03_06_00_00-LTS\packages\scripts\ImageCreator. The user guide is also located in that folder, but if you have SDK 5.2 installed, you can find additional documentation under C:\ti\MMWAVE_L_SDK_05_02_00_02\docs\api_guide_xwrL64xx\TOOLS_BOOT.html.

    If you have a MMWAVEICBOOST, you can follow section 3.5 of the MMWAVE SDK User Guide. You will also need to open up the serial terminal in CCS for the ports used by XDS. To run the code, you will need to configure your EVM to CCS development mode to run the test binaries. Afterwards, flash the board with the xwr68xx_ccsdebug.bin located under C:\ti\mmwave_sdk_03_06_00_00-LTS\packages\ti\utils\ccsdebug using UniFlash - either the cloud version or desktop version. You will then need to connect to the EVM through CCS using the XDS110 USB Debug Probe after creating and saving a target configuration file. Remove the jumper for SOP2 on the MMWAVEICBOOST, then launch the target configuration file. From here, you should be able to connect CCS to Cortex_R4_0, load xwr68xx_canfd_mss.xer4f, and run it. If successful, there should be a text menu displayed in one of the serial terminals for the XDS ports, and you should be able to input a test number to run.

    Let me know if you have any other questions.

    Regards,

    Kristien

  • Hello Kristien,

    Excuse my delayed answer, for I had other work to do.

    Unfortunately the suggested solution requires the MMWAVEICBOOST which is not in my possession (nor can I get it). 

    When I check the user guide to test the Image creator option, if I understand correctly, I need to use the out2rprc to generate the bin executable from the MSS output, which is the xer4f file (is that right ?), please correct me if I am wrong.

    So I executed the following command which generated a .bin file : 

    $out2rprc.exe C:\ti\mmwave_sdk_03_06_00_00-LTS\packages\ti\drivers\canfd\test\xwr68xx\xwr68xx_canfd_mss.xer4f xwr68xx_canfd_mss.bin

    However, when trying to flash the obtained .bin file, i get the following error : 

    Please enlighten me.

    PS : I have a USB to CAN adapter and I want to test it first, that's why my purpose is to implement a functional CAN test on the radar, to see and check the data on the CAN medium.

    Once done, I will be adapting the demo code to produce data over CAN.

    If you can suggest a quickest way for this test to simply make sure that my adapter is correctly receiving CAN data, I'd be glad to take it to move on to the next step.

    Thanks and regards,

    Lilia.

  • Hey Lilia,

    Unfortunately, we are unable to provide additional support when it comes to testing your USB to CAN adapter since the adapter itself is not a TI device or TI supported product. However, I'm currently looking into creating a potential workaround solution using the CAN driver code available - though it may take some time and testing. For now, there are a few options you could look into:

    If you would like to avoid purchasing anything, I would recommend either finding documentation for your adapter or reaching out to the company that engineered the adapter for more information. If you are able to confirm that your CAN adapter is compatible and works with the AWR6843AOP EVM, then we can provide further support.

    If you are willing to purchase, I would recommend either buying the PCAN-USB adapter or the MMWAVEICBOOST. I completely understand if either of these options are not accessible, but our driver CAN code was created based off the PCAN SDK, and the MMWAVEICBOOST is the only way to open up debugging on the AWR6843AOP EVM. 

    I'm truly sorry for the issues that this has created, but I will continue to look into more potential solutions.

    Regards,

    Kristien

  • Hello Kristien,

    I might've expressed myself in a wrong way, I already checked that my adapter fits the radar before purchasing it (at least with the provided information in the datasheet).

    I am just saying that before working on the demo code and substitute the UART with CAN transmission, I would ike to test receiving data through a simple test (that is why I tried building the canfd test).

    However, since this is taking time, I am going to dig into the demo code directly. If by any chance you can provide a .bin that I can flash on the radar for test purposes only that would be great.

    Thanks for the support.

    Lilia.

  • Hello Lilia,

    I understand wanting to test and verify your USB to CAN adapter is receiving data as soon as possible. I apologize for this issue dragging on as long as it has. I'm currently working on modifying the CANFD driver test binary to hopefully allow you to run it without having to use the MMWAVEICBOOST. However, it may take some time to create as the unit tests were designed closely around the usage of that carrier board. In the meantime, please let me know if you are able to get the CAN demo working. 

    Regards,

    Kristien

  • Hey Lilia,

    I wanted to check in with you on whether you've made any progress working with the demo code directly or been able to test that you are receiving CAN data. I have been working on modifying the driver unit test but have been trying to resolve an issue with sending UART data. Please let me know if you still need assistance regarding this issue.

    Regards,

    Kristien

  • Hello Kristien,

    A big thanks for all the support. Unfortunately, other problematics were more urgent so we decided to keep the UART transmission and abandon the CAN alternative.
    We can close this issue as resolved.

    Best regards, 

    Lilia

  • Hey Lilia,

    I'm sorry to hear about you having to abandon CAN and for me being unable to properly resolve this issue in a timely manner. I hope that you will continue to reach out to us for any future issues. 

    Regards,

    Kristien