Hi,
I am trying debug why the sample PER-test is stuck while reading SLEEPSTA.
Using IAR compiler, bit 4 in the swru191b.pdf is refer to as reserved.
Do you know where I can find the latest CC2530 user guide document.
Thanks,
James
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.
Hi James, The most up to date cc2530 User Guide (Rev. B) can be found on cc2530 web page. Bits 1,2,5 and 6 reserved, bit 3 and 4 are the "Last reset cause" indicators. What is the HW you are running the PER-test on.. (cc2530EM, cc2531 USB dongle...)?
Hi Igor,
Downloaded CC2530 software example and cc2530 user manual swru191b.pdf.
Using the latest IAR EWB6.0, converts and correct option set to cc2530.
Load the code to target board cc2530 that have the following info: Chip ID 0xA5, ver:0x22,info0:0x44 and info1:0x7.
It stuck on clockSetMainSrc:
while (!CC2530_IS_HFRC_STABLE() || ((SLEEPSTA & SLEEP_OSC_PD_BM)!=0));
here are definition:
#define SLEEP_XOSC_STB_BM 0x40 // bit mask, check the stability of XOSC
#define SLEEP_HFRC_STB_BM 0x20 // bit maks, check the stability of the High-frequency RC oscillator
#define SLEEP_OSC_PD_BM 0x04 // bit mask, power down system clock oscillator(s)
// Macro for checking status of the high frequency RC oscillator.
#define CC2530_IS_HFRC_STABLE(x) (SLEEPSTA & SLEEP_HFRC_STB_BM)
From your email those bit above are reserved but it is used in this TI Sample code.
My question to you, Is TI have latest document of CC2530?
Thanks,
James
Hi James,
Well, the link to a document I gave you is the most up to date.
Regarding your problem, it seems like something wrong with
32MHz crystal on your board. You didn't mention what exactly
the board your testing with? Is it TI's module, or your custom
board? Is there a 32MHz crystal on the board (I suppose there is)?
Hi jlao.
I quitely agree with you.
I also find the same problem, and besides, I find that the value of defines such as "SLEEP_XOSC_STB_BM" is from CC2430, where TI just copy one to another. And my program is stunk at the while(!CC2530_IS_HFRC_STABLE() || ((SLEEPSTA & SLEEP_OSC_PD_BM)!=0)); too.
I also searched the errata note of cc2530, but I fine nothing helpful. I hope TI can do something for our common problem!