[SOLVED] STM32F103CBT6 BOOT Problem

Generic boards that are not Maple or Maple mini clones, and don't contain the additional USB reset hardware
User avatar
Rick Kimball
Posts: 1038
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: STM32F103CBT6 BOOT Problem

Post by Rick Kimball » Tue Aug 29, 2017 4:00 pm

You should be using the ST-LINK upload method and no you don't need a bootloader. Selecting ST-Link as the upload method will load your code at 0x08000000 and would erase and replace the bootloader with whatever sketch you loaded.
-rick

Nawfal
Posts: 26
Joined: Tue Aug 29, 2017 2:57 pm

Re: STM32F103CBT6 BOOT Problem

Post by Nawfal » Tue Aug 29, 2017 4:02 pm

Rick Kimball wrote:
Tue Aug 29, 2017 4:00 pm
You should be using the ST-LINK upload method and no you don't need a bootloader. Selecting ST-Link as the upload method will load your code at 0x08000000 and would erase and replace the bootloader with whatever sketch you loaded.
Yes, This was my first impression

User avatar
Rick Kimball
Posts: 1038
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: STM32F103CBT6 BOOT Problem

Post by Rick Kimball » Tue Aug 29, 2017 4:03 pm

I don't there have been some discussions here however that are more geared towards using it with eclipse.
-rick

Nawfal
Posts: 26
Joined: Tue Aug 29, 2017 2:57 pm

Re: STM32F103CBT6 BOOT Problem

Post by Nawfal » Tue Aug 29, 2017 4:06 pm

Rick Kimball wrote:
Tue Aug 29, 2017 4:03 pm
I don't there have been some discussions here however that are more geared towards using it with eclipse.
I used to play with the STM32F7 on eclipse....A real headack....I opted for the STM32DUINO for the simplicity and for not having to write dozens of lines to blink an LED

Nawfal
Posts: 26
Joined: Tue Aug 29, 2017 2:57 pm

Re: STM32F103CBT6 BOOT Problem

Post by Nawfal » Tue Aug 29, 2017 4:36 pm

Any Other suggestions???

User avatar
Rick Kimball
Posts: 1038
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: STM32F103CBT6 BOOT Problem

Post by Rick Kimball » Tue Aug 29, 2017 4:51 pm

I would spend some time in the debugger. I'm wondering about your LED being on the 32k xtal pins. I might move that. Not sure if the generic stm32f103c libmaple core tries to initialize it.
-rick

stevestrong
Posts: 1747
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: STM32F103CBT6 BOOT Problem

Post by stevestrong » Tue Aug 29, 2017 6:21 pm

You probably uploaded a code in which the SWD interface got disabled, that is why you cannot upload over STLink anymore.
On maple mini the debug interface is disabled by default, I think.
To enable the debug interface again, you have to build another software version in which you insert in your setup code:

Code: Select all

 enableDebugPorts();
Then enter the perpetual bootloader mode (BOOT0=1, BOOT1=0, + reset) so that you can access the chip with STLink again, and re-flash it with the new version.
I hope it helps.

Nawfal
Posts: 26
Joined: Tue Aug 29, 2017 2:57 pm

Re: STM32F103CBT6 BOOT Problem

Post by Nawfal » Thu Aug 31, 2017 12:04 pm

It's not working neither....I'll give it a try using eclipse and I'll let you know

Nawfal
Posts: 26
Joined: Tue Aug 29, 2017 2:57 pm

Re: STM32F103CBT6 BOOT Problem

Post by Nawfal » Thu Aug 31, 2017 4:41 pm

It's not working under eclipse neither :(
Is there some fuse setting on STM32 µCs identical to the ones on AVRs ??? I've seen some settings on the st-link utility:
MCU core and Option bytes....Anyone knows what these things are about???

User avatar
Pito
Posts: 1593
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: STM32F103CBT6 BOOT Problem

Post by Pito » Thu Aug 31, 2017 5:24 pm

Try in ST_LINK
1. Erase Chip and then
2. Program&Verify.
Last edited by Pito on Thu Aug 31, 2017 5:26 pm, edited 1 time in total.
Pukao Hats Cleaning Services Ltd.

Post Reply