This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC430F5137: hang problem

Other Parts Discussed in Thread: CC430F5137, CC1101

Parça Numarası: CC430F5137

Hi,

I am using your cc430F5137 product. Some of the devices I use CC430F5137 constantly enter while loops in the RF1A.c library. We think that this problem is caused by communication problem with cc1101.

As a precaution, I prepared a reset procedure.

However, it is something that I do not want the device to constantly reset.

It is not observed in all CC430F5137 products, however, some CC430F5137s do repeat cycles continuously.

Can you give information about solving this problem?

unsigned char ReadSingleReg(unsigned char addr)
{
unsigned char data_out;
işaretsiz kısa loopCount=0;
statik işaretsiz karakter wdtrsttime=0;

// Geçerli yapılandırma kayıt adresi olup olmadığını kontrol edin, 0x3E PATABLE
if ((addr <= 0x2E) || (addr == 0x3E))
// Adres gönder + Komut + 1 sahte bayt (otomatik okuma)
RF1AINSTR1B = (addr | RF_SNGLREGRD);
else
// Adres gönder + Komut + 1 yapay bayt (otomatik okuma)
RF1AINSTR1B = (addr | RF_STATREGRD);

while (!(RF1AIFCTL1 & RFDOUTIFG) ){
if(loopCount++>50000){
loopCount=0;wdtrsttime++;
if(wdtrsttime>2)
{
wdtrst = 7;
wdtrsttime=0;
}
__enable_interrupt();
0xFF döndürür;
}
}
loopCount=0;wdtrsttime=0;

data_out = RF1ADOUTB; // Verileri oku ve RFDOUTIFG'yi temizle

data_out'u döndür;
}