Other Parts Discussed in Thread: CC1352P7
Tool/software:
hi experts,
my customer have been migrated opus codec example to CC1352P7 due to lack of memory in CC1352P1.
they confirmed that the one-way communication works well. however, when the two-way service is started, the system stops.
so, Tx thread and Rx thread are configured as independent, the system stops as the same.
Please advise me on this matter.
If you need it, I will send you the project source file by separate e-mail.
mainThread()
{
SYS.MicRunning = true; //JHL-20250203 , TX를 위한 설정
Board_initGeneral(); AudioHAL_init(); Packetizer_init();
//Setup OPUS Parameters
eventHandle = Event_create(NULL, NULL);
RF_Params rfParams; RF_Params_init(&rfParams);
RFQueue_defineQueue(…);
RF_cmdPropTx.xxxx 설정
RF_cmdPropRx.xxxx 설정
rfHandle = RF_open(&rfObject, &RF_prop, (RF_RadioSetup*)&RF_cmdPropRadioDivSetup, &rfParams);
AudioHAL_Params_init()
tlv320Handle = AudioHAL_open()
packetizerHdl = Packetizer_open()
AudioHAL_startStream(tlv320Handle, AUDIOHAL_INPUT_OUTPUT);
RF_postCmd(rfHandle, (RF_Op*)&RF_cmdPropRx, RF_PriorityNormal,
&rxDoneCB, RF_EventRxEntryDone);
While(1)
{
Events= Event_pend();
if(SYS.MicRunning)
{
If(event_TX_AUDIO)
{
AudioHAL_readBufGet(tlv320Handle, (void *)audioIn);
RF_scheduleCmd(rfHandle, (RF_Op*)&RF_cmdPropTx,…)
GPIO_toggle(RED_LED);
}
}
GPIO_toggle(GREEN_LED);
if(event_RX_AUDIO)
{
…
}
}
}
thanks
BR,