Skip to main content
antonius
Associate III
December 24, 2013
Question

STM32F107 on STM32F103 board

  • December 24, 2013
  • 11 replies
  • 1883 views
Posted on December 24, 2013 at 11:16

Hello Guys,

I tried to put STM32F107VCT6 on STM32F103VCT6 board,

I got this error when I tried to upload / erase the flash, any ideas why ?

Thanks

* JLink Info: Could not measure total IR len. TDO is constant high.

**JLink Warning: CPU core not found.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

* JLink Info: Could not measure total IR len. TDO is constant high.

***JLink Error: Wrong AHB ID (15:3). Expected 0x04770001 (Mask 0x0FFFFF0F), Found 0xFFFFFFFF
    This topic has been closed for replies.

    11 replies

    Tesla DeLorean
    Guru
    December 24, 2013
    Posted on December 24, 2013 at 14:00

    I haven't done the analysis on the pins, but would seem it's just not working, or incorrectly orientated. A secondary test would be via a serial port connected to USART1 and BOOT0 High, and trying to send 0x7F at 9600 8E1, and confirming an 0x79 response.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    antonius
    antoniusAuthor
    Associate III
    December 24, 2013
    Posted on December 24, 2013 at 16:25

    Here's the schematic with STM32F103

    antonius
    antoniusAuthor
    Associate III
    December 24, 2013
    antonius
    antoniusAuthor
    Associate III
    December 24, 2013
    Posted on December 24, 2013 at 16:39

    From J-commander :

    SEGGER J-Link Commander V4.24c ('?' for help)

    Compiled Mar  4 2011 20:04:53

    DLL version V4.24c, compiled Mar  4 2011 20:04:34

    Firmware: J-Link ARM V8 compiled Jan 31 2018 18:34:52

    Hardware: V8.00

    S/N: 20080643

    Feature(s): RDI,FlashDL,FlashBP,JFlash,GDBFull

    J-Link>r

    WARNING: CPU core not found.

    ****** Error: Supply voltage too low (1 Volt is required, Measured: 0.0 Volt).

    Please check target power.

    Reset delay: 0 ms

    Reset type UNKNOWN: ???

    J-Link>power on

    J-Link>r

    WARNING: CPU core not found.

    Reset delay: 0 ms

    Reset type UNKNOWN: ???

    WARNING: CPU core not found.

    J-Link>hwinfo

    HWInfo[00] = Target power is enabled

    HWInfo[02] = 38mA       (ITarget)

    HWInfo[03] = 1959mA     (ITargetPeak)

    HWInfo[04] = 51mA       (ITargetPeakOperation)

    HWInfo[10] = 0ms        (ITargetMaxTime0)

    HWInfo[11] = 1ms        (ITargetMaxTime1)

    HWInfo[12] = 1ms        (ITargetMaxTime2)

    J-Link>st

    VTarget=3.351V

    ITarget=38mA

    TCK=1 TDI=0 TDO=1 TMS=0 TRES=1 TRST=1

    Supported JTAG speeds:

     - 48 MHz/n, (n>=4). => 12000kHz, 9600kHz, 8000kHz, ...

     - Adaptive clocking

    J-Link>halt

    ****** Error: Can not read register 8 (CPSR) while CPU is running

    ****** Error: Can not read register 9 (R15 (PC)) while CPU is running

    PC: (R15) = 00000000, CPSR = 00000000 (Unknown mode, ARM)

    ****** Error: Can not read register 7 (R7) while CPU is running

    ****** Error: Can not read register 6 (R6) while CPU is running

    ****** Error: Can not read register 5 (R5) while CPU is running

    ****** Error: Can not read register 4 (R4) while CPU is running

    ****** Error: Can not read register 3 (R3) while CPU is running

    ****** Error: Can not read register 2 (R2) while CPU is running

    ****** Error: Can not read register 1 (R1) while CPU is running

    ****** Error: Can not read register 0 (R0) while CPU is running

    R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000

    R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000

    ****** Error: Can not read register 14 (R12_USR) while CPU is running

    ****** Error: Can not read register 13 (R11_USR) while CPU is running

    ****** Error: Can not read register 12 (R10_USR) while CPU is running

    ****** Error: Can not read register 11 (R9_USR) while CPU is running

    ****** Error: Can not read register 10 (R8_USR) while CPU is running

    USR: R8 =00000000, R9 =00000000, R10=00000000, R11 =00000000, R12 =00000000

    ****** Error: Can not read register 16 (R14_USR) while CPU is running

    ****** Error: Can not read register 15 (R13_USR) while CPU is running

         R13=00000000, R14=00000000

    ****** Error: Can not read register 22 (R12_FIQ) while CPU is running

    ****** Error: Can not read register 21 (R11_FIQ) while CPU is running

    ****** Error: Can not read register 20 (R10_FIQ) while CPU is running

    ****** Error: Can not read register 19 (R9_FIQ) while CPU is running

    ****** Error: Can not read register 18 (R8_FIQ) while CPU is running

    FIQ: R8 =00000000, R9 =00000000, R10=00000000, R11 =00000000, R12 =00000000

    ****** Error: Can not read register 17 (SPSR_FIQ) while CPU is running

    ****** Error: Can not read register 24 (R14_FIQ) while CPU is running

    ****** Error: Can not read register 23 (R13_FIQ) while CPU is running

         R13=00000000, R14=00000000, SPSR=00000000

    ****** Error: Can not read register 25 (SPSR_SVC) while CPU is running

    ****** Error: Can not read register 27 (R14_SVC) while CPU is running

    ****** Error: Can not read register 26 (R13_SVC) while CPU is running

    SVC: R13=00000000, R14=00000000, SPSR=00000000

    ****** Error: Can not read register 28 (SPSR_ABT) while CPU is running

    ****** Error: Can not read register 30 (R14_ABT) while CPU is running

    ****** Error: Can not read register 29 (R13_ABT) while CPU is running

    ABT: R13=00000000, R14=00000000, SPSR=00000000

    ****** Error: Can not read register 31 (SPSR_IRQ) while CPU is running

    ****** Error: Can not read register 33 (R14_IRQ) while CPU is running

    ****** Error: Can not read register 32 (R13_IRQ) while CPU is running

    IRQ: R13=00000000, R14=00000000, SPSR=00000000

    ****** Error: Can not read register 34 (SPSR_UND) while CPU is running

    ****** Error: Can not read register 36 (R14_UND) while CPU is running

    ****** Error: Can not read register 35 (R13_UND) while CPU is running

    UND: R13=00000000, R14=00000000, SPSR=00000000

    J-Link>

    Tesla DeLorean
    Guru
    December 24, 2013
    Posted on December 24, 2013 at 16:46

    Ok, so you have both RS232 and USB. You'll want to try the serial port test with BOOT0 high, and if the USB comes up in DFU mode. If these don't work the chip is not functioning, no amount of banging on the JLink will resolve this.

    Your second test doesn't even appear to be powering the board. Check the 3V3 rail, and 5V from the JLINK.

    Do not understand the purpose of R13 coupling NJTRST and NRST
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    December 24, 2013
    Posted on December 24, 2013 at 17:05

    Pin 94 (BOOT0) doesn't appear to be connected to anything.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    antonius
    antoniusAuthor
    Associate III
    December 24, 2013
    Posted on December 24, 2013 at 23:34

    it's not connected properly (pin 94) I checked it just now, let me recheck it, thanks

    antonius
    antoniusAuthor
    Associate III
    December 24, 2013
    Posted on December 24, 2013 at 23:51

    I checked it with voltmeter, pin 94 is connected properly to 10K resistor (R4),

    do you recommend me to undo R13 ?

    Have you seen the schematic ?

    antonius
    antoniusAuthor
    Associate III
    December 24, 2013
    Posted on December 24, 2013 at 23:59

    without R13 and boot0 = 0 :

    SEGGER J-Link Commander V4.24c ('?' for help)

    Compiled Mar  4 2011 20:04:53

    DLL version V4.24c, compiled Mar  4 2011 20:04:34

    Firmware: J-Link ARM V8 compiled Jan 31 2018 18:34:52

    Hardware: V8.00

    S/N: 20080643

    Feature(s): RDI,FlashDL,FlashBP,JFlash,GDBFull

    J-Link>power on

    J-Link>r

    Info: Could not measure total IR len. TDO is constant high.

    WARNING: CPU core not found.

    Reset delay: 0 ms

    Reset type UNKNOWN: ???

    Info: Could not measure total IR len. TDO is constant high.

    WARNING: CPU core not found.

    J-Link>st

    VTarget=3.351V

    ITarget=45mA

    TCK=1 TDI=0 TDO=1 TMS=0 TRES=1 TRST=1

    Supported JTAG speeds:

     - 48 MHz/n, (n>=4). => 12000kHz, 9600kHz, 8000kHz, ...

     - Adaptive clocking

    J-Link>

    antonius
    antoniusAuthor
    Associate III
    December 25, 2013
    Posted on December 25, 2013 at 01:10

    it's working already, I resoldered it, could be dry join or something like that,

    thanks for helping

    SEGGER J-Link Commander V4.24c ('?' for help)

    Compiled Mar  4 2011 20:04:53

    DLL version V4.24c, compiled Mar  4 2011 20:04:34

    Firmware: J-Link ARM V8 compiled Jan 31 2018 18:34:52

    Hardware: V8.00

    S/N: 20080643

    Feature(s): RDI,FlashDL,FlashBP,JFlash,GDBFull

    J-Link>power on

    J-Link>st

    VTarget=3.351V

    ITarget=77mA

    TCK=1 TDI=0 TDO=1 TMS=0 TRES=1 TRST=1

    Supported JTAG speeds:

     - 48 MHz/n, (n>=4). => 12000kHz, 9600kHz, 8000kHz, ...

     - Adaptive clocking

    J-Link>hwinfo

    HWInfo[00] = Target power is enabled

    HWInfo[02] = 77mA       (ITarget)

    HWInfo[03] = 2056mA     (ITargetPeak)

    HWInfo[04] = 90mA       (ITargetPeakOperation)

    HWInfo[10] = 0ms        (ITargetMaxTime0)

    HWInfo[11] = 1ms        (ITargetMaxTime1)

    HWInfo[12] = 2ms        (ITargetMaxTime2)

    J-Link>st

    VTarget=3.351V

    ITarget=77mA

    TCK=1 TDI=0 TDO=1 TMS=0 TRES=1 TRST=1

    Supported JTAG speeds:

     - 48 MHz/n, (n>=4). => 12000kHz, 9600kHz, 8000kHz, ...

     - Adaptive clocking

    J-Link>r

    Info: TotalIRLen = 9, IRPrint = 0x0011

    Reset delay: 0 ms

    Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.

    Info: TotalIRLen = 9, IRPrint = 0x0011

    Info: Found Cortex-M3 r1p1, Little endian.

    Info: TPIU fitted.

    Info: ETM fitted.

    Info:   FPUnit: 6 code (BP) slots and 2 literal slots

    J-Link>r

    Reset delay: 0 ms

    Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.

    Info: TotalIRLen = 9, IRPrint = 0x0011

    Info: Found Cortex-M3 r1p1, Little endian.

    Info: TPIU fitted.

    Info: ETM fitted.

    Info:   FPUnit: 6 code (BP) slots and 2 literal slots

    J-Link>