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.

CC2640: Toggle GPIO pin through a timer in CC2640

Part Number: CC2640


Hi,

I am using CC2640 in my custom board. And also one watchdog timer IC is connected on board. Time period of this watchdog IC is 1.6 sec. I am starting one timer for toggling the watchdog input pin in Application code.Once initialized, this timer will toggle the watchdog pin every 5 ms. In that, external flash OTA firmware upgrade support is also provided.

Issue:-  

After doing OTA upgrade, we are rebooting the board and bootloader used to copy the image from external flash to internal memory of controller. But, it takes some time to be copied and if it crosses 1.6 sec to reach the Application code where we are running the timer to toggle the watchdog pin, then watchdog will be triggered and board got reset again and again.

I have tried by increasing the bit rate of transferring this image data, but now also sometimes it is working and sometimes not.

Please suggest something if we can start this timer in bootloader itself to prevent this watchdog trigger.