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.

CC2640R2F: I2C operates well while connected to the debugger but now while powered externally

Part Number: CC2640R2F
Other Parts Discussed in Thread: OPT3002

Hello,

I have a USB to UART w/ battery charger powering my CC2640r2 and peripheral four OPT3002 devices. When I'm connected to the debugger (via LaunchPad), I can compile, download and run the application. I can send commands via the USB port and collect optical readings from the OPT3002 - no problem. When I disconnect the debugger and power the device from the USB (or battery) the I2C bus no longer responds. I've checked the obvious stuff - supply voltages, gnd, etc. Is there something that the debugger is doing with respect to the I2C bus, Rx/Tx lines, or something else that would not happen if it were not connected and running in debug mode?

Any thoughts would be appreciated.

Patrick

  • Hello,

    It turns out that I had enabled Flow Control by assigning pins to RTS & CTS but I never hooked them up. Therefore Flow Control was enabled but not implemented in the hardware. As a result, the CC2640r2 would issue a write via Tx, but it never got a response via Rx. If you intend not to use Flow Control, be sure to do the following in your board file.

    // UART Board
    #define Board_UART_RX                       IOID_1
    #define Board_UART_TX                       IOID_0
    #define Board_UART_CTS                      PIN_UNASSIGNED //IOID_5
    #define Board_UART_RTS                      PIN_UNASSIGNED //IOID_6

    Thanks,

    Patrick

  • Hello Patrick,

    Thank you for providing the solution to your issue!

    Regards,
    Ryan