Hi
i am trying to init CC1310 RF core without ti-rtos, i use CCSv6 and CC13xxware, TI compiler.
I have copied settings from smartRF studio in files smartrf_settings.h and smartrf_settings.c.
My board is working with SmartRF, configures and transmits packets properly but when i am trying to write my own code to send TX packets i have some problems.
This is my code:
PRCMPowerDomainOn(PRCM_DOMAIN_RFCORE);//power bits are enabled properly
Delay1ms(10);
RFCClockEnable();//clocks bits are enabled properly
Delay1ms(10);
//rfc_CMD_GET_FW_INFO just for checking communication
HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDR) =(uintptr_t)&rfc_CMD_GET_FW_INFO;//i get 0x83 in status - UnknownDirCommand error for that, why???
Delay1ms(10);
do{
rfcstat=HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDSTA);
}while((rfcstat&0x01)!=0x01);
Delay1ms(100);
//---------------------------------------------------------------------------------
HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDR) = (uintptr_t)&RF_cmdPropRadioDivSetup;
Delay1ms(10);
do{
rfcstat=HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDSTA);
}while((rfcstat&0x01)!=0x01);
Delay1ms(100);
//i get 1 in CMDSTA and 2 in RF_cmdPropRadioDivSetup.status
//---------------------------------------------------------------------------------
HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDR) = (uintptr_t)&RF_cmdFs;
Delay1ms(10);
do{
rfcstat=HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDSTA);
}while(((rfcstat&0x01)!=0x01)&&((rfcstat&0x01)!=0));
//i get 0 in CMDSTA and 0 in RF_cmdPropRadioDivSetup.status
//---------------------------------------------------------------------------------
Please advice what am i doing wrong.
Tom