Skip to main content
Holger Hofmann
Associate
May 17, 2018
Question

Programming stm32f091 for the first time (using ST-LINK utility)

  • May 17, 2018
  • 5 replies
  • 1426 views
Posted on May 17, 2018 at 11:03

After programming stm32f091 for the first time (using ST-LINK utility), the chip does not reboot automatically. Only after plugging-off the power source. Read out protection is Level0. User configuration option bytes are default. Programming the same chip for the second time, chip reboots automatically. Any hints?

    This topic has been closed for replies.

    5 replies

    AvaTar
    Senior III
    May 17, 2018
    Posted on May 17, 2018 at 11:14

    I would suspect the application code.

    Most toolchains/debuggers support a reset of the target - and a debug without download.

    So you should be able to step through the code, and see where it gets stuck.

    After programming stm32f091 for the first time (using ST-LINK utility), ...

    What, exactly ?

    A board with some 'strange' bootloader, like mbed or Mikromedia ?

    Holger Hofmann
    Associate
    May 17, 2018
    Posted on May 17, 2018 at 11:33

    Our own board. No strange bootloader.

    It's a blank device that is programmed (Bin-file) in our production. Check box 'Reset after programming' is selected in ST-Link Utility.

    After programming the same chip (with the same application after a 'Full chip erase') for the second, third,.... time the chip resets automatically after the programming cycle as expected and starts the application.

    AvaTar
    Senior III
    May 17, 2018
    Posted on May 17, 2018 at 11:54

    Or perhaps you forgot to pull the BOOTx pins on a defined level ?

    Luke Iliffe
    Associate II
    June 1, 2018
    Posted on June 01, 2018 at 18:12

    I've been getting something similar but I don't think quite the same. You might be hitting into the Empty check feature of the STM32F091 see RM0091.pdf end of page 52 beginning of page 53..

    T J
    Senior III
    June 2, 2018
    Posted on June 02, 2018 at 04:10

    you may want to check the firmware version on the STlink.

    There was an update some time ago, not sure if your unit has that update...Just a thought...

    Holger Hofmann
    Associate
    June 4, 2018
    Posted on June 04, 2018 at 08:17

    Thank you for your replies and sorry for my late answer. I will check your ideas the next days and will give you a feedback.