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.

CC1354R10: How to modify the scripts for building project for custom boards?

Part Number: CC1354R10
Other Parts Discussed in Thread: CC2652R7, CC2652PSIP, CC1354P10, CC1352P, CC2653P10, CC2652RB, CC1352P7, CC2652RSIP, SYSCONFIG, CC1314R10

Tool/software:

Hi Team,

Can you please help us with our customer's inquiry below.

I would like to build the examples from ot-ti repository from custom board based on cc1354r10. I was able to compile and load the firmware for LP-EM-CC1354p10-6, I took into consideration the suggestions in migration guide on the repository, but I am not able to build the project. Which option has to be pass to build script? There is a guide that explain how to modify the scripts for building project for custom boards?

Regards,

Danilo

  • Hi Danilo,

    since we don't have a LaunchPad for the CC1354R10 we have this migration guide that explains which other LaunchPad can be used to replace the MCU: https://dev.ti.com/tirex/explore/content/simplelink_cc13xx_cc26xx_sdk_7_41_00_17/docs/ti154stack/html/cc13xx_cc26xx/software-on-cc13x4-26x4-rgz-devices.html# 

    But in your case it seems like  the customer has already finalized own hardware. In this case I suggest to follow or guide on how to modify the software examples for custom hardware: https://dev.ti.com/tirex/explore/content/simplelink_cc13xx_cc26xx_sdk_7_41_00_17/docs/ti154stack/html/cc13xx_cc26xx/custom-hardware-cc13xx_cc26xx.html# 

    If you need further assistance please provide me more details on the case (sofware example, exact error, which modifications were made, ...).

    Kind regards,
    Theo

  • Hi Theo,

    Thank you for your response. Please see our customer's feedback below.

    The problem is: using the repository from ot-ti, it is impossible to use code composer or theia but I must compile the project using the script in "script directory" passing as option the board. I change syscfg file to meet my board details but when I go through the build script I have to pass one of the board options :"CC1352P1_LAUNCHXL CC1352P_2_LAUNCHXL CC1352P_4_LAUNCHXL CC1352R1_LAUNCHXL CC26X2R1_LAUNCHXL LP_CC1352P7_1 LP_CC1352P7_4 LP_CC2652PSIP LP_CC2652R7 LP_CC2652RB LP_CC2652RSIP LP_EM_CC1354P10_1 LP_EM_CC1354P10_6 LP_CC2653P10 CC2674P10RGZ CC2674P10RSK CC2674R10RGZ CC2674R10RSK"
    I tried LP_EM_CC1354P10_6 but the script ends with the following error:
    if I use another like CC2674R10RGZ, I get the error: "#error More then one DeviceFamily has been defined!"
    So my question is which option I should use? or how I can modify the build scripts? to use cc1354r10 chip.
    Regards,
    Danilo
  • Hi Danilo,

    which package of CC1354R10 is your customer using 7x7 or 8x8 ?

    Kind regards,
    Theo

  • Hi Theo,

    Our customer is using CC1354R106T0RGZR, it is 7x7.

    Regards,

    Danilo

  • Hi Danilo,

    let me try to summarize. 

    1. As you know we don't have a LaunchPad for this device. This is why we have a Guide on which other LaunchPad can be used with this chip: https://dev.ti.com/tirex/explore/content/simplelink_cc13xx_cc26xx_sdk_7_41_00_17/docs/ti154stack/html/cc13xx_cc26xx/software-on-cc13x4-26x4-rgz-devices.html# 
    Following this you could migrate the SysConfig of LP_EM_CC1314R10 to match the CC1354R106T0RGZR as shown in the guide and compile the ti-ot stack for it.

    2. From a software stack perspective you can also compile the stack for CC2674R10RGZ and flash it. This should work and the only issue that you might encounter is that some pins are used differently by the customer. Then again they only need to adjust the SysConfig accordingly.

    After flashing the board you can verify the boot by setting a breakpoint at the beginning of main(). If it is reached the boot was successful.

    Please let me know if they managed to compile the stack and flash it or if more support is needed.

    Kind regards,
    Theo


  • Hi Theo,

    Please see our customer's response below.

    Thanks for the links, but I don't have any problem in migrate the board from the launchpad to the my custom board, I have problem in using the scripts in https://github.com/TexasInstruments/ot-ti I found a workaround to build for a chip different by the available options in /script/build I commented the line 84 " #--board /ti/boards/${TI_SIMPLELINK_BOARD}" of the file ot-ti/src/CMakeLists.txt I don't know if it is a correct workaround. Finally, I was able to modify the files in ot-ti/examples/apps/cli and compile them but if I try to modify the files in /ot-ti/src creating an error the script/build correctly compiles, this means that the script doesn't (re)compile those files.

    So how can I add new files to the project and compile them using the /script/build?

    Regards,

    Danilo

  • Hi Theo,

    I just received this update from our customer.

     I resolved the problem of compiling the files in src directory. Anyway, I will wait to know if my workaround is fine or if there is some better solution.

    Regards,

    Danilo

  • Hi Danilo,

    I don't really understand how they commented that out but I guess this is only relevant for the board configuration and since they are running on their custom hardware he just needs to compile the stack for this device.

    My recommendation would be as mentioned in the previous answer to compile the stack for CC2674R10RGZ and flash it.

    In general they will see really fast following the example if the device is responding as expected or not.

    Please let me know if you need further assistance and if so what I should provide.

    Kind regards,
    Theo

  • Hi Theo,

    Please see our customer's comments below.

    Theo: I don't really understand how they commented that out but I guess this is only relevant for the board configuration and since they are running on their custom hardware he just needs to compile the stack for this device.

    My recommendation would be as mentioned in the previous answer to compile the stack for CC2674R10RGZ and flash it.

    This is the point, how? 
    just to recap:
    1. ot-ti repository must be built using the script in the repository, to my knowledge there is no CCS support.
    2. the only options are: Please specify a LaunchPad: CC1352P1_LAUNCHXL CC1352P_2_LAUNCHXL CC1352P_4_LAUNCHXL CC1352R1_LAUNCHXL CC26X2R1_LAUNCHXL LP_CC1352P7_1 LP_CC1352P7_4 LP_CC2652PSIP LP_CC2652R7 LP_CC2652RB LP_CC2652RSIP LP_EM_CC1354P10_1 LP_EM_CC1354P10_6 LP_CC2653P10 CC2674P10RGZ CC2674P10RSK CC2674R10RGZ CC2674R10RSK
    3. if I use ./script/build CC2674R10RGZ as I have already done, and how I understand it is suggested, I get the following error

      ti/devices/DeviceFamily.h:
    236:6: error: #error More then one DeviceFamily has been defined!
      236 |     #error More then one DeviceFamily has been defined!
          |      ^~~~~
    Regards,
    Danilo
  • Hi Theo,

    We would like to request an update to this inquiry.

    Thank you!

    Regards,

    Danilo

  • Hi Danilo,

    I set up the build system myself and compiled it for one of the boards.
    I didn't get this error and can't reproduce it.

    What I did is:
    - setting up the repository
    - running the update and bootstrap command
    - run the build script for CP_EM_CC1354P10_1
    - got a binary

    So at this point I am not sure anymore how I can assist you.

    If you want we go through their SysCfg and see if they inserted any conflicts there.

    Kind regards,
    Theo