Update Bluepill wiki data

Generic boards that are not Maple or Maple mini clones, and don't contain the additional USB reset hardware
visinet
Posts: 9
Joined: Mon Dec 05, 2016 6:30 pm

Re: Update Bluepill wiki data

Post by visinet » Mon Dec 05, 2016 6:37 pm

FYI: Not sure if I just got lucky but I got 3 of these and all of them had the standard ST serial boot loader present. All the review I have seen state that these do not have the boot loader on them so not sure why mine did. Great little boards.

danieleff
Posts: 318
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: Update Bluepill wiki data

Post by danieleff » Mon Dec 05, 2016 7:12 pm

It is unfortunate but the ST system bootloader embedded in every ST chip, and the custom flash bootloader both have the same name "bootloader". You probably refer to the former.

testato
Posts: 39
Joined: Sun Aug 14, 2016 7:44 am

Re: Update Bluepill wiki data

Post by testato » Sat Dec 10, 2016 6:12 pm

@visinet
yep, on every ST MCU is there a factory bootloader, on some model is there many bootloaders, for example a serial BL and a I2C BL inside the same mcu.
The Bluepill have only the Serial BL inside, but you can manually install the stm32duino USB BL if you want upload new fw by usb.

testato
Posts: 39
Joined: Sun Aug 14, 2016 7:44 am

Re: Update Bluepill wiki data

Post by testato » Sat Dec 10, 2016 6:20 pm

the Software Installation section should be completely rewrited,
I think this Perpetual mode, is an old procedure ?
place the board into "perpetual bootloader" mode before you can upload a sketch; place resistor between pin PC14 and 3.3V, then reset the board

victor_pv
Posts: 1472
Joined: Mon Apr 27, 2015 12:12 pm

Re: Update Bluepill wiki data

Post by victor_pv » Tue Jan 03, 2017 10:53 pm

testato wrote:the Software Installation section should be completely rewrited,
I think this Perpetual mode, is an old procedure ?
place the board into "perpetual bootloader" mode before you can upload a sketch; place resistor between pin PC14 and 3.3V, then reset the board
Yeah, I think Roger took it out after some discussion in the forum around the time we reworked the bootloader to work on generic boards and take less flash, so anything that was not used was discussed in a thread and removed upon agreement (i.e. upload to RAM).

victor_pv
Posts: 1472
Joined: Mon Apr 27, 2015 12:12 pm

Re: Update Bluepill wiki data

Post by victor_pv » Tue Jan 10, 2017 12:12 am

testato wrote:the Software Installation section should be completely rewrited,
I think this Perpetual mode, is an old procedure ?
place the board into "perpetual bootloader" mode before you can upload a sketch; place resistor between pin PC14 and 3.3V, then reset the board
I see you updated the wiki on that board, and noticed you added this comment:
512b reserved by bootloader
I believe that may not be accurate.
When I worked in the first few revisions of the generic bootloader with other forum members we ensured no RAM would be reserved by the bootloader, so the sketch would have all 20KB for it. I haven't followed in about a year, so something may have changed to reserve 512bytes. if that's the case would you mind pointing me to the thread so I can learn about it.

User avatar
RogerClark
Posts: 6375
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Update Bluepill wiki data

Post by RogerClark » Tue Jan 10, 2017 2:44 am

I can confirm the bootloader does not take any RAM after its finished running. I think it used to take 3k.

User avatar
RogerClark
Posts: 6375
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Update Bluepill wiki data

Post by RogerClark » Tue Jan 10, 2017 2:45 am

Victor

BTW.
Anyone can register on the wiki and update it

victor_pv
Posts: 1472
Joined: Mon Apr 27, 2015 12:12 pm

Re: Update Bluepill wiki data

Post by victor_pv » Tue Jan 10, 2017 10:00 pm

RogerClark wrote:Victor

BTW.
Anyone can register on the wiki and update it
I know, I already added some stuff ;)
I did not want to take this away without confirming there has not been a change that reserves 512 bytes, I thought better first ask just in case...

User avatar
RogerClark
Posts: 6375
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Update Bluepill wiki data

Post by RogerClark » Tue Jan 10, 2017 11:01 pm

OK

There have not been too many changes to the bootloader over the last year.

There was a fix for newer versions of GCC and also some experimental code to use the battery backed registers to hold the bootloader in DFU (aka perpetual mode) but I think thats about it apart from new variants (but those are just #defines in the config file)

Post Reply

Who is online

Users browsing this forum: victor_pv and 1 guest