Device connection strategy - only one attempt w/o reset

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

    • Device connection strategy - only one attempt w/o reset

      I need to test the JTAG connection of a STM32F303R8, w/o doing any reset.

      At the moment I do following:

      Source Code

      1. jlinkexe -device STM32F303R8 -if JTAG -speed 4000 -JTAGConf -1,-1 -CommandFile stm.jlink -jlinkscriptfile init.jlink
      Source:

      init.jlink:

      Source Code

      1. int InitTarget(void) {
      2. return 0;
      3. }
      4. void ConfigTargetSettings(void) {
      5. return 0;
      6. }
      stm.jlink:

      Source Code

      1. connect
      2. exit

      JLINK tries to connect twice, first w/o reset (fine for me), then doing reset and trying again (I'd like to remove that part):

      Source Code

      1. Connecting to target via JTAG
      2. ConfigTargetSettings() start
      3. ConfigTargetSettings() end - Took 1us
      4. InitTarget() start
      5. InitTarget() end - Took 0us
      6. Could not measure total IR len. TDO is constant high.
      7. Failed to identify target. Resetting via Reset pin and trying again.
      8. ConfigTargetSettings() start
      9. ConfigTargetSettings() end - Took 6us
      10. InitTarget() start
      11. InitTarget() end - Took 1us
      12. Could not measure total IR len. TDO is constant high.
      13. Cannot connect to target.
      14. J-Link>exit
      Display All
      How to connect without the second connection attempt?