SDAA111 October 2025 CC2340R5
After the correct motor functionality has been confirmed, this is possible to add a remote LP-EM-CC2340R5 device running a Proprietary RF project. Included in this example is a slightly modified version of rfEchoRx, where similar button functionality has been implemented to be communicated over the Proprietary RF radio every time rfEchoTx_stepper_motor requests a packet. To communicate with the rfEchoTx portion of the stepper motor code, the *.syscfg files must have the exact same SysConfig -> RF Stacks -> Custom configuration.
| Definition | Default | Units | Project | Function |
|---|---|---|---|---|
| MAX_LENGTH | 10 | Integer | Both | Data bytes per packet |
| PACKET_INTERVAL | 20000000 | ¼ ms | rfEchoTx | Interval between packet events |
| TX_DELAY | 40000 | ¼ ms | rfEchoRx | Delay before transmitting response |
| RX_TIMEOUT | 80000 | ¼ ms | rfEchoTx | Timeout waiting for response |
| FREQUENCY | 2412000000 | Hz | Both | Proprietary RF frequency |
No modifications to the rfEchoRx CC2340R5 LaunchPad are necessary. If done properly, with both LaunchPads programmed and powered on, you are able to push BTN-1 or BTN-2 on the rfEchoRx LaunchPad and, after the PACKET_INTERVAL expires, observe the stepper motor moving counter-clockwise or clockwise, respectively, after the packet is received by the rfEchoTx_stepper_motor LaunchPad.