Part Number: CC1352R
Other Parts Discussed in Thread: TIMAC, , CC2630
I imported the sensor 2.4G example from simplelink_cc13x2_26x2_sdk_3_30_00_03\examples\rtos\CC1352R1_LAUNCHXL\ti154stack\sensor_2_4g into IAR 8.40.1 and it builds and runs ok sending/receiving messages I wanted.
I imported the RF CW example from simplelink_cc13x2_26x2_sdk_3_30_00_03\examples\rtos\CC1352R1_LAUNCHXL\drivers\rfCarrierWave and got it running with my IAR IDE and confirmed it was sending a CW at the frequency I wanted on my Launchpad board (2.4GHz).
Then I tried to combine the two projects by taking the simple code (like the RF_open call and the two RF_runCmd calls plus all the structure definitions like RF_cmdRadioSetup_ieee154_0) for CW generation and adding it into my TI 15.4 Stack-based sensor project and discovered that functions like RF_runCmd and RF_open either don't exist or are defined differently in the two projects, which causes my combined project to reset the MCU when calling RF_runCmd().
Digging deeper, I found that TI 15.4 Stack-based projects use a sort of a lookup table based off of a pointer called macRfDrvTblPtr, whose definition I couldn't find anywhere. RF_runCmd and RF_open functions (or function-like macros?) need this pointer to get their ROM addresses. Does anyone know where this pointer is defined? I know it's declared as an extern in rf_mac_api.h, but the actual assignment must be hiding in some library somewhere. I couldn't figure it out.
Bottom line is, if anyone knows how to add CW generation code to a TI 15.4 Stack-based project like Sensor 2.4G, this would help me a lot!
Thanks,
Michael