Bootload command no longer responds

Development environment specific, Arduino, Eclipse, VS2013, Em::Blocks etc
Post Reply
Renato
Posts: 11
Joined: Thu Feb 20, 2020 9:19 pm

Bootload command no longer responds

Post by Renato »

Arduino IDE, board STM32G071RB select, but using STM32G071KB.
First load of the code occurs correctly via USART1.
A new load does not occur because the microcontroller does not respond to the bootload command (BOOT0 to 1 and reset).
After reset the preloaded code continues running.
What could be happening ?

User avatar
fpiSTM
Posts: 679
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 25
Location: Le Mans
Contact:

Re: Bootload command no longer responds

Post by fpiSTM »

So you flash over serial ?
when you told a new load does not occur ? You reset it before the load with the correct bootX config ?

Renato
Posts: 11
Joined: Thu Feb 20, 2020 9:19 pm

Re: Bootload command no longer responds

Post by Renato »

fpiSTM wrote:
Tue Jun 23, 2020 6:08 am
So you flash over serial ? Yes
when you told a new load does not occur ? Exactly. Seems like not entry in boot mode, because after reset, immediately starting pre loaded code execution.
You reset it before the load with the correct bootX config ? Yes. BOOT0 pin to 3.3V and reset

User avatar
fpiSTM
Posts: 679
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 25
Location: Le Mans
Contact:

Re: Bootload command no longer responds

Post by fpiSTM »

Well you have to ensure all the pattern conditions are met (according to the AN):
pattern11.png
pattern11.png (13.35 KiB) Viewed 1465 times
https://www.google.com/url?sa=t&rct=j&q ... PpgQX1P-ho

If it does not works, then I advise to ask on ST community.

Renato
Posts: 11
Joined: Thu Feb 20, 2020 9:19 pm

Re: Bootload command no longer responds

Post by Renato »

Well, I am far from being an STM32 MCU expert. I am learning.
Analyzing the pattern 11, I deduce that having recorded the first time, the last 3 options are eliminated.

The second option there are 2 bits to consider.
I conclude then that CubePRG could have changed these bits and canceled this bootload function, may be
from Arduino IDE command to CubePRG CLI. (?)
Anyway, tell me how to reactivate the mcu in a situation like this and how to proceed to avoid this.
Tks and rgrds

User avatar
fpiSTM
Posts: 679
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 25
Location: Le Mans
Contact:

Re: Bootload command no longer responds

Post by fpiSTM »

I've dig into this and I think I understand why you are in this situation.

The first time you flashed you were in the 3rd line with the flash memory empty.

Using the Cube programmer you will be able to see how your board is configured. I guess the nBOOT_SEL is checked then you will not be able to enter in bl mode using the BOOT0 pin.
You will have to uncheck it and apply.

I've do it and it now works as you expect.
G0CubeProgOptionsBytes.png
G0CubeProgOptionsBytes.png (79.27 KiB) Viewed 1392 times

Renato
Posts: 11
Joined: Thu Feb 20, 2020 9:19 pm

Re: Bootload command no longer responds

Post by Renato »

That's it ! Thanks.

User avatar
fpiSTM
Posts: 679
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 25
Location: Le Mans
Contact:

Re: Bootload command no longer responds

Post by fpiSTM »

Fine. Can you add [solved] to your first post title. Thanks.

Post Reply

Return to “IDE's”