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.

CC2520DK SW examples problem with reading from CC2520 via SPI interface

Other Parts Discussed in Thread: CC2520

I am working with TI CC2520DK boards and using for debugging TI CC2520DK SW examples.

I found a problem with first read register access to CC2520.

I took as example Reg_read project in IAR workspace.

 Activates in halRfInit() after halRfWaitRadioReady the following:

data =  (CC2520_MEMRD8(CC2520_CHIPID)); data should return me 0x84(=CHIPID of CC2520).But the data was equal to 0x6.

After that(right after the first reading), i made again

data =  (CC2520_MEMRD8(CC2520_CHIPID));

and data was equal to 0x84.

Could you explain this phenomena?

  • I've just tried it out myself and got the same result as you. I can't explain this off the top of my head but writing top any register or memory location before doing the read seems to fix it. All the following SPI operations behave as expected.

**Attention** This is a public forum