Other Parts Discussed in Thread: SYSCONFIG,
Hi,
Trying to get the diversity antenna working on a custom board.
When I selecting the Antenna Selection it seems as though I cannot get proper operation after changing the setting, below I have tired enabling the diversity through sysconfig and manually through code:
Radio.ANT1_PAD = "28"; Radio.ANT2_PAD = "22"; Radio.ANT_SEL_MODE = "3";
sl_Start(0, 0, 0); typedef struct { _u8 Mode; /* antenna selection mode - [disable = 0 | ant1 = 1 | ant2 = 2 | auto = 3 | manual = 4] */ _u8 Ant1Pad;/* antenna1 selection pad (not pin!) */ _u8 Ant2Pad;/* antenna2 selection pad (not pin!) */ _u8 Reserved; _u32 Options; } SlWlanAntSelectionConfig_t; _i16 Status; SlWlanAntSelectionConfig_t AntSelConfig; AntSelConfig. Mode = SL_WLAN_ANT_SELECTION_AUTO; Status = sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, SL_WLAN_GENERAL_PARAM_ANT_SELECTION_CONFIG, sizeof(SlWlanAntSelectionConfig_t), (_u8 *)&AntSelConfig); if( Status ) { /* error */ UART_PRINT("STATUS ERROR: %d\r\n", Status); } /* restart the device */ Status = sl_Stop(0); sl_Start(NULL,NULL,NULL);
Either of these result in the same thing which is a general error indicating that the setup failed, and a fatal error I have not been able to parse:
SL GeneralEventHandler [GENERAL EVENT] - ID=[-30738] Sender=[0] SL FatalErroEventHandler ID:1 [ERROR] - FATAL ERROR: Abort NWP event detected: AbortType=2, AbortData=0x365
Is there an initialization that I am missing, or another sysconfig setting? Diversity pins are 15 and 18 on the CC3235SF.
Insight is greatly appreciated, thanks!
Note: Also see this result on the development board though the diversity antennas are not on that board.