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.

PGA970: Device is held in reset. Take the device out of reset, and retry the operation.

Part Number: PGA970
Other Parts Discussed in Thread: USB2ANY

Hi,

So we progressed a bit and were able to load the code of the generic firmware.

We deleted all files from the project apart the cmd, cxml and startup ones and replaced by our own code.

We were able to compile and load but now we are getting the following error each time we try to load our software, we get the following error:
Error connecting to the target: (Error -1266 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.0.27.9)

It seems we are not able anymore to do anything.

We have that put in our code: MICRO_INTERFACE_CONTROL = RESET;

Might it be the reason ?

We are going to try to reload the code using the other interface and not the probe to see if we can erase the code.

Thanks,
Clément

  • Hi Clément,

    If you are communicating to the PGA970 and loading the code to the device through the XDS200 debugger, you will need to leave the internal M0 running.

    If you comment out the section that places the Micro in reset, it should work again.

    Regards,

  • Hi,

    Well at that point we were unable to load again and had the error above.

    So not sure what you meant, was that our reset thingy that avoided us and leaded to the error ?
    What should we have done ?

    Clément

  • Hi Clément,

    The debugger will not connect to the PGA970 if the microcontroller is held in reset, exactly as the error says.

    Additionally, the firmware will not run if the microcontroller is held in reset, so the firmware itself should not reset the microcontroller unless you wish for it to stop running.

    If you have loaded firmware that places the microcontroller in reset, once you start the device, the firmware will run until it gets to the command that resets the microcontroller, at which point it will reset and it will be impossible to connect through the debugger.

    If you are programming the PGA970 through the GUI and the USB2ANY, you will need to place the microcontroller in reset, but this is done by directly setting the MICRO_INTERFACE_CONTROL register through the digital interface (SPI or OWI via the USB2ANY).

    Regards,
  • Hi Scott,

    Understood, hopefully we did that on the EVM where we have the USB2ANY.

    If we had done that on our own board we would be doomed.

    Thanks for the explanations,
    Clément