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.

Hard reset through XDS100 interface for Hercules USB stick

Other Parts Discussed in Thread: RM48L952, LAUNCHXL2-RM46, LAUNCHXL2-TMS57012

Hi,

I am using Hercules USB stick ,I would like to hard reset the board using XDS100 from host PC's CLI.

Note: host PC is linux and windows.

Any feedback is highly appreciated.

Thanks

  • Shrikanth,

    Two options:

    1) easiest, but not most effective, is to issue a 'system reset'.  this will reset the CPU and peripherals on the device but it is not as effective as a full nPORRST reset.    Which means some registers like sticky bits in ESM will remain unchanged by this reset.

    2) more powerful, but not sure it will work without blue wires:

    The lastest CCS emulation pack has added support for a "Board Reset".  This is supported by the XDS100v2 but it has to be wired to the nPORRST and I am not sure if your USB stick has this connection.   If it doesn't then you could try it out and if you see it toggling, you could then blue wire it to the nPORRST of the MCU.

    We also have not exposed this feature yet,  so while it's in CCS you don't see it yet for Hercules targets.

    If you want to see the feature, you have to

      a: edit the XML file for your device .    For example C:\ti\ccsv6\ccs_base\common\targetdb\devices\rm48952.xml  if you are using an RM48L952 part.

     b: add a property:   <property Type="hiddenfield" Value="1" id="Use Board Reset" /> * See below

    c: you may need to restart CCS and create a new target configuration file for this target.

    * This is where to add the property - adjust for your part #:

                                 <!--  END Project Wizard Settings -->
                                <property Type="numericfield" Value="0x02000100" id="Access Port Designator"/>
                                <property Type="numericfield" Value="0x80001000" id="Address"/>
                                <property Type="filepathfield" Value="../../emulation/gel/rm48l952.gel" id="GEL File"/>
    			    <property Type="hiddenfield" Value="1" id="Use Board Reset" /> 
                                <!-- Additional Core Registers -->

    Now

      d.  launch the target configuration  but do not connect to the target. 

           -or- if you are automatically connected to the target, do a 'disconnect' 

      e.  look under the Run->Reset menu (you need to be in the CCS Debug Perspective)

          under the options, in addition to System Reset you should now see 'Board Reset'

    Issuing a 'board reset' should pulse the SRST\ pin on the 20 pin header of a standalone XDS100v2.

    What I don't know is if the same pin is connected to the Hercules nPORRST pin on the boards where the XD100v2 is integrated.

    But if it isn't you *could* blue wire it from the FTDI chip or Xilinx chip to Hercules.

    This is most effective, because it's the same as pressing an nPORRST button or doing a cold power up. 

    But then I'm not sure if you need this or if you are ok w just a system reset.

  • Minor update.

    I don't think that the power on reset (Board Reset) is wired up on the USB stick, so it may work but you'll need to find the pin and make the wire connection if you want to try it.

    I did verify that the feature works on the LAUNCHXL2-RM46 and LAUNCHXL2-TMS57012 new launchpads with the XDS110 Debug Probe.
    The "Board Reset" simulates pushing the physical nPORRST button, and you get a 125ms ish reset pulse out of the voltage supervisor.
  • Hi Anthony,

    Thanks for the answer.
    If you could tell me the hardware changes(wire connection for nPORRST) I need to do then it would be helpful.

    Thanks in advance.
  • Srikanth,

    Given that this feature works on the new RM46 / TMS57012 launchpads, if you can I'd suggest ordering one of these. They're only $20 and that's going to be easier than doing the blue wire.

    If you want to do the blue wire change, then the reference schematics for XDS100v2 are here: software-dl.ti.com/.../XDS100v2Schematic(rev2)-Setup.zip and details are on this page: processors.wiki.ti.com/.../XDS100

    The signal you want to attach to is T_SRST_N on J1 Sheet 3.
    Unfortunately, I don't think the hercules USB stick has the CPLD on it like the XDS100v2 reference design.
    I think the pin you want on the FTDI chip is ACBUS1 (GPIOH1) pin 27 but you should double check.
    You can issue the "Board Reset" and check for a pulse on this pin. It should pulse low for a few ms.
  • Hi Srikanth,

    Wanted to check if this thread is resolved now or if you have additional questions.