2018-05-17 02:03 AM
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?
2018-05-17 02:14 AM
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 ?
2018-05-17 02:33 AM
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.
2018-05-17 04:54 AM
Or perhaps you forgot to pull the BOOTx pins on a defined level ?
2018-06-01 09:12 AM
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..
2018-06-01 07:10 PM
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...
2018-06-03 11:17 PM
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.