Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2640
Dear Experts,
I am using the CC2640R2 in combination with an external MCU connected over SPI. I have not used NPI so far. I have my own interpretation code running on CC2640R2 and MCU for different SPI commands, which refer to different APIs on the embedded SW of CC2640. You could say, that I am running CC2640R2 in single-chip mode.
Now I would like to enable the PTM/DTM with this setup. By reading the wiki page (
) and the BLE CoreSpec I know that DTM is normally intended for direct HCI/UART communication between DUT and measurement equipment.
But I would like to issue the necessary trigger commands via SPI from my MCU, which in turn should call the test commands (e.g. Receiver/Transmitter Test) in the embedded application of CC2640.
Now I am wondering about the following:
- do I need to enable HCI_TL_FULL or HCI_TL_PTM in the build config, considering my setup?
- do I need to run the EnablePTMCmd? (as far as I understand this exposes the host control interface test commands over UART, but I do not necessarily need this, as I am not connecting the DUT to measurement equipment directly)
+ in the wiki UART as an interface and a GPIO is used to trigger the EnablePTMCmd in the application init function
--> If I need to run EnablePTMCmd, can I just trigger its call by a custom SPI command, which would be interpreted by the running application on the CC2640? Or in other words, does it have to be called at startup in the init function?
In general I just want to be able to run normal application, but also RF tests (if needed) by issuing custom SPI calls from my MCU.
Many thanks and best regards,
Rogerg