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.

CC2642R: Enabling PTM

Part Number: CC2642R
Other Parts Discussed in Thread: SYSCONFIG

Hi,

We are trying enable the Production Test Mode for our CC2642R1 hardware. We are referring to the below link:

software-dl.ti.com/.../creating-a-custom-bluetooth-low-energy-application-cc13x2_26x2.html

As per this link, to enable PTM mode, we need to add -DPTM_MACRO and -DICALL_MAX_NUM_TASK=4 in the config_def.opt file and we have added the same. Screenshot of the file change is attached. As per our understanding, this should enable PTM_MODE for our simple peripheral application. But we still observe that macro for PTM_MODE still remains not defined and this part of code is not getting compiled screen shot from application is also attached.

Could you please help us with this.

Thanks in advance

-Srinivasan

  • Hi,

    Good catch, the documentation has a mistake for SysConfig enabled project.

    In your case, you should use SysConfig to enable PTM.

    Here are the steps to follow:

    1- Open simple_peripheral.syscfg

    2- Navigate to RF Stacks > BLE > Advanced Settings

    3- Check the option "PTM"

    I hope this will help,

    Regards,

  • Hi,

    Thanks for the reply.

    As per my understanding about PTM, it uses UART as the transfer protocol. On our custom hardware we don't have UART interface support. Can this be done over SPI interface?

    Thanks

    -Srinivasan 

  • Hi Srinivasan,

    Correct, by default PTM uses UART. However it is definitely possible to use SPI instead. You may want to review the symbols "NPI_USE_SPI" and "NPI_SPI_CONFIG". Please have a look to our forum and documentation for extra information.

    For additional questions about PTM over SPI I will kindly ask you to open a new thread as this is not the original topic of our conversation.

    In the meantime, please don't forget to mark this thread as resolved.

    Best regards,