Hello,
I have developed a board with a CC2538 device. I used the same crystal configuration that the CC2530EM board has (for my convenience). The problem is that I cannot start this oscillator correctly.
As soon as the processor starts I do this:
val = 0x00220101;
HWREG(SYS_CTRL_CLOCK_CTRL) = val;
while((HWREG(SYS_CTRL_CLOCK_STA) & SYS_CTRL_CLOCK_STA_OSC) != 0);
But I cannot pass the while loop since the SYS_CTRL_CLOCK_STA_OSC register does not became 0. I try to debug it using the CCS and the SYS_CTRL_CLOCK_CTRL register updates correctly with "val" value but the SYS_CTRL_CLOCK_STA_OSC register does not changes to 0.
I also checked it with an oscilloscope and I cannot see any wave on the crystal and checked the connection between the crystal and the capacitors, and the capacitors with the ground. The problem is that I cannot check the connections with the processor since I cannot reach them.
When I use the oscilloscope I can see a continuous 1v signal on the crystal (referenced to the ground). Also the SOURCE_CHANGE bit on the SYS_CTRL_CLOCK_STA is always 1. I can see that this bit is 1 since the processor starts on the CSS debugger.
I would like to know if you have any idea or hint how can I check wether this is a hardware issue (maybe soldering) or a software issue (I forgot to modify any register).
Thanks for your help.
Regards,
Danko