what's wrong with my stm32f4 board?

Discussion in 'Embedded Systems and Microcontrollers' started by russian, May 26, 2014.

  1. russian

    Thread Starter Member

    Sep 1, 2012
    55
    1
    I have just finished soldering an stm32f4 board someone else has designed for me. Tiny problem is that I cannot get this board alive.

    3.3V gets to the chip. There is a BOOT<>VDD jumper and a reset button same as on discovery boards, but my windows does not recognize the device as "STM Device in DFU Mode". And another thing - my multimeter does not show any life on the 8MHz oscillator.

    [​IMG]

    Full-size picture: http://rusefi.com/images/forum_posts/brain_board_full_size.jpg
    Schematics: https://svn.code.sf.net/p/rusefi/code/trunk/hardware/brain_board/Schematic.pdf
    KiCad sources: https://svn.code.sf.net/p/rusefi/code/trunk/hardware/brain_board/

    Should I be expecting the oscillator to tick on a brand new board without firmware? Should I be expecting the chip to contain the bootloader recognizable as "STM Device in DFU Mode"?
     
  2. MrChips

    Moderator

    Oct 2, 2009
    12,447
    3,363
    What are you using to program the STM32F4? What software and what hardware?

    I have never used DFU Mode so I have to look up what that means.

    The STM32F0DISCOVERY is so inexpensive and therefore that is what I use to program my boards.
    I use the SWD connection and the IAR EWARM software.

    It does not require the 8MHz XTAL to be functioning.
     
    Last edited: May 26, 2014
  3. russian

    Thread Starter Member

    Sep 1, 2012
    55
    1
    AFAIK DFU Mode in this context is a way to program STM32F4 chip using the USB OTG interface. On STM32F0DISCOVERYif you jump the BOOT pin and connect to your STM32F0DISCOVERY via the microUSB cable (not the miniUSB ST-LINK), you are connecting directly to the chip and it's firmware. I am trying to repeat that - first step would be Windows recognizing a USB device which is not happening so far.

    I've just learned how easy SWD/ST-Link way is and the board is now alive! Apparently the problem is just in the USB department, but that should be easier.
     
  4. russian

    Thread Starter Member

    Sep 1, 2012
    55
    1
    So one issue was that PA9 was not connected to USB VBUS pin, once I did that I got USB working from my firmware. But I still cannot figure out how to program the chip via USB.

    I was pointed at "AN2606: STM32 microcontroller system memory boot mode"
    [​IMG]

    [​IMG]

    boot1 is PB2

    [​IMG]

    I guess I am still missing something.
     
Loading...