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.

In CC2510: unable to swap the program from TX to RX and vise-versa (using IAR)

Other Parts Discussed in Thread: CC2510

 

I am using CC2510 development board. So far I have used two boards, one as a Transmitter and another is receiver at a time. Now I want to use one board for both modes. In the program (IAR) it  should switches automatically from one mode (for example RX mode) to other (for example TX mode). But it is not working. 

At very 1st time the boards are working as the given mode (TX or RX). When automatically switches to another mode then the program is stuck in a loop "while(!pktsendFlag);". i.e. interrupt vector is not responding. But same thing worked for the 1st phase of the program. I have checked DMA controller configuration but could not able to locate/understand the anomaly.

Please suggest me how to change the hardware register's configuration so that one board can be swapped from RX to TX or vise-versa at any time without stopping the program from outside.