Hi everyone,
I have a CC2530 on a custom PCB. Unfortunately, we seem to be stuck in the "Hello Word" stages as we cannot get the LEDs to turn on.
Here's our code:
int main (void)
{
P1DIR = LED1_MASK | LED2_MASK;
for(;;)
{
LED1_ON(); // Turn LEDs on
LED2_ON();
delayMs(100);
LED1_OFF(); // Turn LEDs off
LED2_OFF();
delayMs(100);
}
}
The macros just basically set P1_1 or P1_0 to 1 or 0.
Are there any other registers we need to set? Are we missing something?
One thing to note is that if we generate a .hex file from IAR and load it through Flash Programmer (erase, program and verify), we get a hex verification error. So it is possible that the code did not download properly and that there is a hardware issue. Any insights on this would be helpful but we'd preferably like to rule out software mistakes as well.
Thanks!