How to build the bootloader?

STM32duino bootloader aka Maple bootloader
User avatar
RogerClark
Posts: 7147
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: How to build the bootloader?

Post by RogerClark » Mon Sep 04, 2017 5:20 am

The makefile works OK under windows as long as you have make installed

You need to have gcc-arm installed and in your path.

The binaries that are in github were compiled using gcc 5.4 2016q2, but older versions of the compiled used to work OK (as I originally use the same compiler that the Arduino IDE uses i.e 4.8.4-2014q1

C_D
Posts: 62
Joined: Mon May 11, 2015 3:27 am
Location: New Zealand

Re: How to build the bootloader?

Post by C_D » Mon Sep 04, 2017 8:01 pm

I had make installed in Windows, it was all the folder shuffling that failed for me. The makefile has mkdir with a -p flag which doesn't work on my Windows and also rm for deleting files.

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

Re: How to build the bootloader?

Post by RogerClark » Mon Sep 04, 2017 9:43 pm

I normally use the github command line client as a shell when building.

You could try using the windows power shell

C_D
Posts: 62
Joined: Mon May 11, 2015 3:27 am
Location: New Zealand

Re: How to build the bootloader?

Post by C_D » Mon Sep 04, 2017 10:27 pm

Ah, yeah that might do it.

No worries, I'm all set up to compile it under Linux now and it seems to work OK :)

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

Re: How to build the bootloader?

Post by RogerClark » Mon Sep 04, 2017 10:33 pm

BTW

I've not double checked, but your hex value looks wrong

The value I get is

0x0050400

How did you calculate the value you are using ?

Did you merge the bit pattern (0x1 << 18) so that no other bits apart from those from bits 18 to 22 were affected ?

Post Reply