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.

CC1310: CC1310 Dosen't work with flash programmer2 after download, but does work with CCS Debug after debugging

Part Number: CC1310
Other Parts Discussed in Thread: TMDSEMU200-U, UNIFLASH

Tool/software:

Hi,

I have problem custom board.

below is my situation.

I got custom board with CC1310F128RSM.

I wanted to port from CC1310 launchpad to custom Board(CC1310F128RSM).

So, i modified code that used in CC1310 launchpad for custom board.

I only changed IO port following condition of custom board.

And then, I checked Board working.

It works with CCS Debug after debugging.

But, Doesn't work after download with flash programmer2.

I am using XDS200 Debug Probe(TMDSEMU200-U)

So, I have questions.

1. Is there anything that have to change code something for porting new custom board except IO port?

2. What is different between CCS Debug and Flash Programmer2 configuration ?

  • A typical issue seen in cases like this is that you don't have a 32 kHz xtal on your custom board and the code doesn't reflect this. If you search on the forum you will find a lot of similar cases where a board works with debugger and not when the code is downloaded. 

    I would also measure the current consumption to get an indication where the code is stuck. It's also possible to connect the debugger to a running target. 

    Most likely not relevant, but why the strong pull-up/ down on the JTAG interface and a diode instead of a cap on the reset?  

  • Hi,

    Thank you for reply.

    As you told, custom board doesn't have 32 kHz xtal.

    So i changed SET_CCFG_MODE_CONF_SCLK_LF_OPTION in ccfg.c like below.

    I don't know exactly below setting is correct.

    //#####################################
    // Clock settings
    //#####################################
    
    #ifndef SET_CCFG_MODE_CONF_SCLK_LF_OPTION
     #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION            0x0        // LF clock derived from High Frequency XOSC
    // #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION            0x1        // External LF clock
    //#define SET_CCFG_MODE_CONF_SCLK_LF_OPTION               0x2        // LF XOSC
    // #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION            0x3        // LF RCOSC
    #endif
    
    #ifndef SET_CCFG_MODE_CONF_XOSC_CAP_MOD
    // #define SET_CCFG_MODE_CONF_XOSC_CAP_MOD              0x0        // Apply cap-array delta
    #define SET_CCFG_MODE_CONF_XOSC_CAP_MOD                 0x1        // Don't apply cap-array delta
    #endif
    
    #ifndef SET_CCFG_MODE_CONF_XOSC_CAPARRAY_DELTA
    #define SET_CCFG_MODE_CONF_XOSC_CAPARRAY_DELTA          0xFF       // Signed 8-bit value, directly modifying trimmed XOSC cap-array value
    #endif
    
    #ifndef SET_CCFG_EXT_LF_CLK_DIO
    #define SET_CCFG_EXT_LF_CLK_DIO                         0x01       // DIO number if using external LF clock
    #endif
    
    #ifndef SET_CCFG_EXT_LF_CLK_RTC_INCREMENT
    #define SET_CCFG_EXT_LF_CLK_RTC_INCREMENT               0x800000   // RTC increment representing the external LF clock frequency
    #endif

    But, still same situation.

    Board works with debugger but not when code is download.

    I have been changed SET_CCFG_MODE_CONF_SCLK_LF_OPTION from 0 ~ 3.

    all of those is same.

    could you tell me about your code solution?


    Most likely not relevant, but why the strong pull-up/ down on the JTAG interface and a diode instead of a cap on the reset?  

    - I don't know exactly, Our H/W engineer is refer to CC1310-LAUNXAL board schematic. If you want to know the reason, I will ask H/W engineer.

  • I found different thing between debug and download.

    If i debug with CCS tool, 24MHz XTAL oscillation directly.

    But it is not working in download configuration.

    Below is custom board 24MHz XTAL.

    How can i resolve this problem?

    Thank you.

  • Hi Chanbin,

    After closing the debug session and resetting the device, does it work? Or it only works if you have an active debug session?

    Can flash programmer 2 successfully program the device?

    If you don't have a 32 kHz crystal you should use #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x3 // LF RCOSC

  • Hi Diego P,

    I solved my problem by using uniflash.

    I don't know reason. But it works with uniflash.

    what is the difference between uniflash and flash programmer 2 ?

    And I used  '#define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x3 // LF RCOSC'.

    Thank you.