J-Link Reset issues

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • J-Link Reset issues

    I am using the J-Link EDU unit with IAR 6.1 to develop code for an At91SAM7 microcontroller and I have some questions regarding hardware resets. My understanding of the J-Link is that RESET pin (pin 15) of the JTAG can be used to force a reset of the processor by being pulled low. I have a logic analyzer set up to monitor the reset line but I have not been able to find a way using the IAR embedded workbench reset command to toggle the line. I have tried several of the reset strategies provided in the setup options but have not found a way to make it work. So my questions are:

    1. Is what I am trying to do possible?
    2. If it is, does anyone have any things to try
    3. Is there a recommended macro file to use with IAR and the J-Link

    Thank you for your help.
    Keith
  • Hello Keith,

    >>but I have not been able to find a way using the IAR embedded workbench
    >>reset command to toggle the line.

    What exactly do you mean here.
    Are you talking about the time when the debug session is started?
    At this time, a toggle of the reset line should be possible when selecting the reset strategy "halt using breakpoint" or "halt at 0"

    To get the reset button in IAR EWARM performing a toggle of the reset line, the following lines should be added to the macro file:
    execUserReset() {
    __message "execUserReset()";
    __hwResetWithStrategy(0, 1);
    }

    Please note that the recommended reset strategy for Atmel SAM7 is reset strategy 0,
    since then J-Link auto-detects what is the best for the device and on the Atmel SAM7
    this is a reset of the peripherals by writing the RSTC_CR register.
    On the Atmel SAM7S by default the reset pin does not have any effect. It has to be enabled via software first.


    Best regards
    Alex
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.