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.

Problem connection to Prototyping board

Other Parts Discussed in Thread: TMS570LS20216, HALCOGEN

Hi,

I am trying to connect and load my program but everytime i get the following error

"Error connecting to the target:

(Error -2062 @ 0x0)

Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK).

(Release 5.0.333.0)"

In my board i see the ESM pin gets set  everytime i reset the board with POR reset
maybe someone can give me an advise how can i establish a connection to the board?
Regards
Burim

  • Please provide some information about:

    Board you are using:

    Emulator:

    CCS version:

    Regards,

    Haixiao

  • Hi

    Here are the infos

    Board: TMS570LS20216

    Emulator: XDS100v2 

    CCS version: 4.2.3

     

    Regards Burim

  • 1. Check if the Oscillator/Crystal has signal, if it has 16MHz signal

    2. Try to erase the flash using nowFlash, it can be download from: http://focus.ti.com/mcu/docs/mcuprodtoolsw.tsp?sectionId=95&tabId=2661&familyId=1870&toolTypeId=1.

    Regards,

    Haixiao

     

  • Hi Haixiao

    1. For the first proposal i dont have an oscilloscope  to perform the check

    2. With nowFlash it is the same: can't connect to the board.

    This problem happens since i installed the HalcoGen 2.09 Today

    Actually in my system.c i have seen this changes

    ---------------------------------------------------------------------

        /** @b Initialize @b Lpo: */<

        systemREG1->LPOMONCTL = (0U << 24U)

                              | (8U << 8U)

                              |  8U;

        /** @b Initialize @b Secondary Pll: */

        systemREG2->PLLCTL3 = ((2U - 1U) << 22U)

                            | ((10U - 1U) << 8U)

                            |  (1U - 1U);

    ------------------------------------------------------------------------

        /** - set ECLK pins functional mode */

        systemREG1->SYSPC1 = 0U;

     

        /** - set ECLK pins default output value */

        systemREG1->SYSPC4 = 0U;

     

        /** - set ECLK pins output direction */

        systemREG1->SYSPC2 = 1U;

     

        /** - set ECLK pins open drain enable */

        systemREG1->SYSPC7 = 0U;

     

        /** - set ECLK pins pullup/pulldown enable */

        systemREG1->SYSPC8 = 0U;

     

        /** - set ECLK pins pullup/pulldown select */

        systemREG1->SYSPC9 = 1U;

     

        /** - Setup ECLK */

        systemREG1->ECPCNTL = (0U << 24U)

                            | (0U << 23U)

                            | ((8U - 1U) & 0xFFFFU);

    --------------------------------------------------------------------------------

    I has checked my Application without these upper Code lines in another  board  and it runs fine

    Will try to analyze this lines to see what happens

    Regards 

    Burim

  • Hi

    After several many trying the solution was to hold pressed the warm reset button

    and flash the new code in the microcontroller

    Regards Burim