Skip to main content
jeffj2
Associate II
June 23, 2010
Question

disable jtag following the chip stuck

  • June 23, 2010
  • 2 replies
  • 1543 views
Posted on June 23, 2010 at 04:56

disable jtag following the chip stuck

    This topic has been closed for replies.

    2 replies

    jeffj2
    jeffj2Author
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:55

    Hi, thanks for your tips, it's work that I try as ur suggest use a new board, but the old one still, anyway thanks ur help!

    chikos332
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 13:55

    No,

    normally you have at least three options:

     - Connect with Serial Wire Jtag (SW)

     - Set boot pins to RAM and connect with your JTAG

     - Connect with bootloader then set ReadProtection then disable ReadProtection (JTAG has nothing to do with Bootloader, you just have to power off/on you device before connecting to bootloader, reset is not sufficient in some cases)

    For the bootloader connection make sure you have all the necessary condtions to connect (read the AN2606

    http://www.st.com/stonline/products/literature/an/13801.pdf

    :(

    ''

    To connect to the STM32F105xx and STM32F107xx during System memory boot mode, the

    following conditions have to be verified:

    οΏ½? The RX pins of the unused peripherals in this bootloader have to be kept at a known

    (low or high) level, and should not be left floating during the detection phase as

    described below:

    – If USART1 is used to connect to the bootloader: the USART2_RX (PD6),

    CAN2_RX (PB5), OTG_FS_DM (PA11) and OTG_FS_DP (PA12) pins have to be

    kept at a high or low level and must not be left floating during the detection phase.

    – If USART2 is used to connect to the bootloader: the USART1_RX (PA10),

    CAN2_RX (PB5), OTG_FS_DM (PA11) and OTG_FS_DP (PA12) pins have to be

    kept at a high or low level and must not be left floating during the detection phase.

    – If CAN2 is used to connect to the bootloader: the USART1_RX (PA10),

    USART2_RX (PD6), OTG_FS_DM (PA11) and OTG_FS_DP (PA12) pins have to

    be kept at a high or low level and must not be left floating during the detection

    phase.

    – If DFU is used to connect to the bootloader: the USART1_RX (PA10),

    USART2_RX (PD6) and CAN2_RX (PB5) pins have to be kept at a high or low

    level and must not be left floating during the detection phase.

    οΏ½? Connect to the peripheral to be used through:

    – an RS232 serial interface (example, ST3232 RS232 transceiver) has to be directly

    connected to the USART1_RX (PA10) and USART1_TX (PA9) pins when

    USART1 is used, or to the USART2_RX (PD6) and USART2_TX (PD5) pins when

    USART2 is used

    – a CAN interface (CAN transceiver) has to be directly connected to the CAN2_RX

    (PB5) and CAN2_TX (PB6) pins

    – a certified USB cable has to be connected to the microcontroller (optionally an

    ESD protection circuitry can be used)

    ''

    For future think about keeping a piece of code resetting JTAG options when needed (using a GPIO state/exti ...).