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.

CCS/CC2642R: Debug printing inconsistent unless breakpoints are enabled

Part Number: CC2642R

Tool/software: Code Composer Studio

Hi,

I am programming an external board with a CC2642 chip on it. I am using a launchpad to program the chip with a ribbon cable from P7. I can consistently program and run, however it seems that my (SysMin) debug statement prints are inconsistent. Also, they are consistent (prints always work) when a breakpoint is enabled in the application, otherwise sometimes they do not print at all. This is running the exact same application via CCS v8.0.0.00016. The CC2642 SDK is 2.10.00.44. I was curious if anyone else had that issue. Thanks

  • Hello,
    Are you using system_printf? And what do you mean my "inconsistent"? Some messages never get sent to the console or are they out of order? Note that the output is not immediately outputted but instead placed in a circular buffer that needs to get flushed. Try calling System_flush() after your system_printf call to output your message.

    Thanks
    ki
  • I mean "inconsistent" as in it was working about 60% of the time. Yes, I was using flush properly, as it was working sometimes.

    The issue is resolved, and the solution seemed to be linked directly to the CCFG values not disabling the internal DC-DC converter, since I am running at 1.8V on an external regulator. After disabling, I haven't had issues at boot.

    That is,
    #define SET_CCFG_MODE_CONF_DCDC_RECHARGE 0x1 // Do not use the DC/DC during recharge in powerdown
    #define SET_CCFG_MODE_CONF_DCDC_ACTIVE 0x1 // Do not use the DC/DC during active mode

    needed to be those values in ccfg_app_ble.c when using at 1.8V with an external regulator, as per document SWRA498.