Skip to main content
dave8
Associate
Jul 18, 2008 6:25 AM UTC
Question

jtag communication failure

Posted on July 18, 2008 at 08:25

jtag communication failure

    This topic has been closed for replies.

    12 replies

    john
    Associate III
    May 17, 2011 10:21 AM UTC
    Posted on May 17, 2011 at 12:21

    Thanks for the help - but I can't see any setting/control over the RTC

    clock :-

    FUNC void DebugSetup (void) {

    // Debug MCU Configuration

    // DBG_SLEEP Debug Sleep Mode

     

    // DBG_STOP Debug Stop Mode

     

    // DBG_STANDBY Debug Standby Mode

     

    // TRACE_IOEN Trace I/O Enable

     

    // TRACE_MODE Trace Mode

     

    // Asynchronous

     

    // Synchronous: TRACEDATA Size 1

     

    // Synchronous: TRACEDATA Size 2

     

    // Synchronous: TRACEDATA Size 4

     

    // DBG_IWDG_STOP Independant Watchdog Stopped when Core is halted

     

    // DBG_WWDG_STOP Window Watchdog Stopped when Core is halted

     

    // DBG_TIM1_STOP Timer 1 Stopped when Core is halted

     

    // DBG_TIM2_STOP Timer 2 Stopped when Core is halted

     

    // DBG_TIM3_STOP Timer 3 Stopped when Core is halted

     

    // DBG_TIM4_STOP Timer 4 Stopped when Core is halted

     

    // DBG_CAN_STOP CAN Stopped when Core is halted

     

    //

     

    _WDWORD(0xE0042004, 0x00000027); // DBGMCU_CR

     

    }

     

     

     

    John.

     

     

    ibtissem
    Visitor II
    May 17, 2011 10:21 AM UTC
    Posted on May 17, 2011 at 12:21

    Hi John Walsh,

    If you are using Keil toolchain, then the attached file: STM32 Debugger Initialization File can be helpful. In fact, from the IDE, you can use the wizard to change your settings or edited according to the DEBUG settings you need. It will be used as a macro.

    Same thing can be used with any toolchain.

    Please see the attached example build for keil toolchain including this file.

    Hopefully this helps.

    B.Regards,

    Ibtissem.