Bootloader with PA2 as LED output

STM32duino bootloader aka Maple bootloader
Post Reply
bubulindo
Posts: 33
Joined: Fri Sep 11, 2015 10:51 am

Bootloader with PA2 as LED output

Post by bubulindo » Sun Sep 25, 2016 4:19 pm

Hello,

I recently got myself a ZET6 board and managed to burn the bootloader from the stm32duino github, but I realized afterwards that my board has the PA2 pin as the LED output and there isn't a version of hte bootloader that has this pin compiled.

How hard is it to compile the bootloader with this pin as the output? Also, would it be possible to update the bootloader by using the bootloader sketch that is normally used on Maple Minis?

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

Re: Bootloader with PA2 as LED output

Post by RogerClark » Sun Sep 25, 2016 8:58 pm

Its very easy to change and recompile

You need Make on your machine ( windows can install gnu make)

You need to add the path to the arm compiler to you PATH env var

But thats all really, after that you can just run

make TARGETNAME

from the command line

where TARGETNAME is the name of the target

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

Re: Bootloader with PA2 as LED output

Post by stevestrong » Mon Sep 26, 2016 12:11 pm

Shouldn't this info be put to github Wiki?

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

Re: Bootloader with PA2 as LED output

Post by RogerClark » Mon Sep 26, 2016 12:38 pm

I'm pretty sure its in the readme

bubulindo
Posts: 33
Joined: Fri Sep 11, 2015 10:51 am

Re: Bootloader with PA2 as LED output

Post by bubulindo » Thu Sep 29, 2016 10:38 am

Hello,

I had a bit of trouble as I used the GD32F1 bootloader and although it blinked it wouldn't accept anything.

I had to use the STM32F1 folder... after adding the configuration for this board, it was easy to get the bootloader going. :) eh eh

Now I can play with the DAC and SDIO hardware. Thanks for your help.

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

Re: Bootloader with PA2 as LED output

Post by RogerClark » Thu Sep 29, 2016 10:50 am

GD bootloader is configured for a 12 Mhz clock, if your board uses an 8Mhz clock the STM32 bootloader will probably work.

There are a few other minor differences e.g. USB Clock divider but the STM defaults mostly work on GD32

bubulindo
Posts: 33
Joined: Fri Sep 11, 2015 10:51 am

Re: Bootloader with PA2 as LED output

Post by bubulindo » Thu Sep 29, 2016 11:20 am

It's an 8MHz clock board and it doesn't have an additional button to go into perpetual bootloader mode.

Interestingly, I noticed an 8 pin connector on the board, but assumed it would be for debugging... turns out that it is a socket to fit an nRF24L01 module... I wasn't expecting it, but am not complaining. LOL

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

Re: Bootloader with PA2 as LED output

Post by RogerClark » Thu Sep 29, 2016 8:42 pm

Can you post a link to the board.

bubulindo
Posts: 33
Joined: Fri Sep 11, 2015 10:51 am

Re: Bootloader with PA2 as LED output

Post by bubulindo » Fri Sep 30, 2016 6:20 am


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

Re: Bootloader with PA2 as LED output

Post by RogerClark » Fri Sep 30, 2016 6:53 am

OK

I thought you'd found another GD32 board.

That one is an STM32, and I'm sure a few other people on the forum use it.

Post Reply