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.

Breakpoint CCS does not work with the CC3200 Launchpad

Other Parts Discussed in Thread: TEST2

Hi  ,

The forum discussion till now does not solve my problem or I do not understand it.

 I am capable to  manipulate the out of the box software with CCS.

Now for simple example, I have working incoming and out coming pins. But with debugging CCS I cannot stop this with breakpoints. The  with toggle making breakpoint Dot stays gray and not blue.

The break will not function.

For a solution, advise is very welcome.

Teun

  • Hello,
    It sounds like the debugger is unable to enable the source level breakpoints you set. There are many potential reasons this may be the case, such optimized code or the debugger is unable to associate the source code with the loaded program. Without a test case, it is hard to know for sure. Can you provide a reproducible test case?

    Thanks
    ki
  • Hi Ki,
    Thanks for reply!

    The test case is to modify the main.c from out of the box to look to the pins 3 and 4.
    Making Pin 3 high makes output pin 63 high(with a test led+Resistance) and Pin 4 makes 63 low again. This works fine. Here I show you the part I implement in de main.c:

    First the declaration. You see exactly where it is add in the program;


    #define AP_SSID_LEN_MAX 32
    #define SH_GPIO_3 3 /* P58 - Device Mode */
    #define AUTO_CONNECTION_TIMEOUT_COUNT 50 /* 5 Sec */
    #define SL_STOP_TIMEOUT 200

    #define INPUT3 12 //pin 3
    #define INPUT4 13 //pin 4
    #define INPUT5 14 //pin 5
    #define INPUT6 15 //pin 6

    #define POWERUP 5 //pin 60 GPIO 5 output GEGENEREERD MET Pinmux Tool
    #define PARASOLUP 6 //PIN 61 GPIO 6 output GEGENEREERD MET Pinmux Tool
    #define PARASOLDOWN 7 //PIN 62 GPIO 7 output GEGENEREERD MET Pinmux Tool
    #define TEST 8 //PIN 63 GPIO 8 output GEGENEREERD MET Pinmux Tool
    #define TEST2 9 //PIN 64 GPIO 9

    #define POWERUPHIGH GPIO_IF_Set(POWERUP,OUTPORT,OUTPIN,1)
    #define POWERUPLOW GPIO_IF_Set(POWERUP,OUTPORT,OUTPIN,0)
    #define PARASOLUPHIGH GPIO_IF_Set(PARASOLUP,OUTPORT,OUTPIN,1)
    #define PARASOLUPLOW GPIO_IF_Set(PARASOLUP,OUTPORT,OUTPIN,0)
    #define PARASOLDOWNHIGH GPIO_IF_Set(PARASOLDOWN,OUTPORT,OUTPIN,1)
    #define PARASOLDOWNLOW GPIO_IF_Set(PARASOLDOWN,OUTPORT,OUTPIN,0)
    #define TESTHIGH GPIO_IF_Set(TEST, OUTPORT, OUTPIN,1) //TEST =PIN63
    #define TESTLOW GPIO_IF_Set(TEST, OUTPORT, OUTPIN,0) //TEST =PIN63
    unsigned int OUTPORT;
    unsigned char OUTPIN;
    char inputtest ;
    typedef enum
    {
    LED_OFF = 0,
    LED_ON,
    LED_BLINK
    }eLEDStatus;


    And here I show you the extra input / output Lines implemented in the main.c where I like to place a breakpoint to test.

    //****************************************************************************
    //
    //! \brief OOB Application Main Task - Initializes SimpleLink Driver and
    //! Handles HTTP Requests
    //! \param[in] pvParameters is the data passed to the Task
    //!
    //! \return None
    //
    //****************************************************************************
    static void OOBTask(void *pvParameters)
    {
    long lRetVal = -1;

    //Read Device Mode Configuration
    ReadDeviceConfiguration();

    //Connect to Network
    lRetVal = ConnectToNetwork();
    if(lRetVal < 0)
    {
    ERR_PRINT(lRetVal);
    LOOP_FOREVER();
    }

    //Handle Async Events
    while(1)
    { GPIO_IF_GetPortNPin(INPUT3,&OUTPORT,&OUTPIN);
    inputtest = GPIO_IF_Get(INPUT3,OUTPORT,OUTPIN); //test op status pin 3
    if (inputtest == 1 ){ GPIO_IF_GetPortNPin(TEST, &OUTPORT, &OUTPIN) ; TESTHIGH; } //set pin 63 hoog

    GPIO_IF_GetPortNPin(INPUT4,&OUTPORT,&OUTPIN);
    inputtest = GPIO_IF_Get(INPUT4,OUTPORT,OUTPIN); //test op status pin 3
    if (inputtest == 1 ){ GPIO_IF_GetPortNPin(TEST, &OUTPORT, &OUTPIN) ; TESTLOW; } //set pin 63 laag



    //LED Actions
    if(g_ucLEDStatus == LED_ON)
    {
    GPIO_IF_LedOn(MCU_RED_LED_GPIO);
    osi_Sleep(500);
    }
    if(g_ucLEDStatus == LED_OFF)
    {
    GPIO_IF_LedOff(MCU_RED_LED_GPIO);
    osi_Sleep(500);
    }
    if(g_ucLEDStatus==LED_BLINK)
    {
    GPIO_IF_LedOn(MCU_RED_LED_GPIO);
    osi_Sleep(500);
    GPIO_IF_LedOff(MCU_RED_LED_GPIO);
    osi_Sleep(500);
    }
    }
    }

    //*****************************************************************************
    //
    //! Application startup display on UART



    I know from the distance its difficult but hope you see what is wrong.
    An another question I have, The pins here work after debugging and connect process but after flashing in the launchpad it does not . While adding jpg pictures will do flashing very well.
    Do I miss the overview?

    Thanks,
    Teun
  • Teun - I also need to know what build options you are using. If you can send me the whole project, that would be most useful

    Thanks
    ki