Tool/software: Code Composer Studio
I am using the sample rfPacketErrorRate to measure the time of when RX starts and ends during data transfer by another side TX in HSM (@915MHz). I followed some instructions to use GPIO output for monitoring the RX cycle but it did not success. Here below is some of my codes to do this task.
for HSM override setting, add below
uint32_t pOverrides_hsm[] = {
...
(uint32_t) (0x008F88B3),
HW_REG_OVERRIDE(0x1110, RFC_DBELL_SYSGPOCTL_GPOCTL0_RATGPO1 | // route RAT_GPO1 (RX) to RFC_GPO0
RFC_DBELL_SYSGPOCTL_GPOCTL1_RATGPO0), // route RAT_GPO0 (TX) to RFC_GPO1
(uint32_t) (0xFFFFFFFF),
}
in the menu.c, add below to set the GPIO routing
PINCC26XX_setMux(buttonPinHandle, CC1310_LAUNCHXL_RF_TX, PINCC26XX_MUX_RFC_GPO1);
PINCC26XX_setMux(buttonPinHandle, CC1310_LAUNCHXL_RF_RX, PINCC26XX_MUX_RFC_GPO0);
and in the rfPacketErrorRate.c, add below to set GPIO setting
PIN_Config_buttonPinTable[] = {
...
CC1310_LAUNCHXL_RF_TX | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,
CC1310_LAUNCHXL_RF_RX | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,
}
I expect the GPIO CC1310_LAUNCHXL_RF_RX has logic change to indicate the whole RX cycle during TX by another side but it has no any signal output. Any suggestion for this? Thanks.
Teddy