Tool/software: TI-RTOS
Hello,
I have been developing on the cc2640r2 platform around the simple_central example and I am very familiar with GPIO configuration and general driver usage. However, I recently performed a hardware revision to my project and added a small Mosfet with it's gate tied to DIO_9. Note I am also using this same model Mosfet in an almost identical situation (different IO pin) on the same board to control a small vibration motor. However, I have been experiencing some very strange behavior with DIO_9.
Originally, DIO_9 is used as part of the SPI bus, however, I have redefined these pins to be different and am using them without a problem. I have configured DIO_9 with the GPIO driver as an output, with high drive, default high, no pull and it seems to be affecting the startup process of the entire chip. I can successfully flash my program onto the chip, and it runs perfectly right after the flash. However, if a hard reset (push of the reset button on the launchpad) or power-cycle occur, the chip seems totally unresponsive. The only way around this that I have found is to disconnect both the Mosfet and the 10k pulldown resistor on the gate from the IO pin and the system responds totally normally.
It seems that in debugging mode after a flash, something is flagged or skipped over that is different during normal operation after a reset. I am unsure what this could be. I have stripped down my code almost to the bare simple_central example and the problem still remains. I can't find anything special about DIO_9 in the documentation, it looks like a normal GPIO to me. Is there something I am missing? Is this pin being configured somewhere else that I don't see?
Any help is greatly appreciated, this is a tricky problem I have been stuck on for some time now.
Thanks!