Problem with Baite Maple Mini and bootloader 2.0

Discussion about the Maple and other bootloaders
edogaldo
Posts: 167
Joined: Fri Jun 03, 2016 8:19 am

Re: Problem with Baite Maple Mini and bootloader 2.0

Postby edogaldo » Fri Aug 19, 2016 12:45 pm

Pito wrote:I've been compiling the latest source version for my BluePill disconnect pin PB2 and it works fine with BluePill (it compiles for MM, so the BluePill with an external pmos transistor is basically the same as MMini with disconnect at PB2). My understanding therefore is the latests source is ok.
The checksums of the MMv20.bin dated 20.4.2016 I flashed into my MMini on 21.4. are:

Code: Select all

CRC-32: 7e4a31b6
   MD4: 6d8c354fa9620d258b38c505e3dd00f8
   MD5: 9dc7cae7c488420192ad3b2441dd1592
 SHA-1: 5a2915fb37ebfc023c070740056a98e1bc047680

Hi Pito, the problem seems to be with the maple mini HW, not with generic boards, probably bound to an error in the Maple reset hw management; I can confirm that the bootloader for generic boards seems ok: it works fine also for vcc-gnd VET6 and ZET6 boards.

Best, E.

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

Re: Problem with Baite Maple Mini and bootloader 2.0

Postby Pito » Fri Aug 19, 2016 2:23 pm

There is no difference between generic and maplemini sources except 3 lines handling the disconnect pin.
The MM_20.bin above works fine with my MMini clone.
I suspect the STM flashing utility is your problem. Try to flash it with stlink (clone).

edogaldo
Posts: 167
Joined: Fri Jun 03, 2016 8:19 am

Re: Problem with Baite Maple Mini and bootloader 2.0

Postby edogaldo » Fri Aug 19, 2016 5:00 pm

Ok, problem solved!

It seems that the "maple_mini_boot20.bin" available on GitHub is corrupted.
I recompiled it with no changes and the new file is different and working fine!

By the way, I recompiled all the bins and the only file that compiled differently was this one..

My guess is that it got corrupted because in the make_all.bat file there is no "make clean" before the "make maple-mini" like for the other builds; this can lead to file corruption if the compilation folder is not clean (i.e. running "make_all.bat" more than once consecutively).

@Roger: I'd kindly ask you to recompile the file and update GitHub.

ps: about

Code: Select all

#define CR_SHITF(pin) ((pin - 8*(pin>7))<<2)

vs

Code: Select all

#define CR_SHITF(pin) ((pin & 0x07)<<2)

I tested the change and it brought the exact same bins so it seems the compiler is smart enough to covert it automatically.


Best, E.

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

Re: Problem with Baite Maple Mini and bootloader 2.0

Postby Pito » Fri Aug 19, 2016 5:21 pm

The checksums of the current github binary:

Code: Select all

  File: maple_mini_boot20.bin
CRC-32: eb11a422
   MD4: 17a76aa2fe920162c880d792721897d6
   MD5: e43dd145f20152152630ab27a9064d4d
 SHA-1: 0dc1a29e5409da3e4144f72516b805e91951671d

It differs to the checksums I posted above.. I got the correct bin as I do not use makeall.bat but did make clean make maple-mini.. :)

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

Re: Problem with Baite Maple Mini and bootloader 2.0

Postby RogerClark » Fri Aug 19, 2016 9:14 pm

Thanks guys

I will update the make all bat , recompile and upload new binaries.

Actually I think of of the new targets is not in the bat file, as I forgot to add it ( but i compiled it manually)

It would be good if the problem was just as simple as a corrupt binary.

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

Re: Problem with Baite Maple Mini and bootloader 2.0

Postby RogerClark » Sat Aug 20, 2016 2:55 am

Guys

I've added a make clean to the start of the batch file and have run it to recompile them all.

Only the maple mini bootloader binary actually changed, which proves what @edogaldo has diagnosed as the problem

I've commited the change to male_all.bat and maple_mini20.bin to github


@edogaldo thanks again for your help in tracking this down.

edogaldo
Posts: 167
Joined: Fri Jun 03, 2016 8:19 am

Re: Problem with Baite Maple Mini and bootloader 2.0

Postby edogaldo » Sat Aug 20, 2016 6:23 am

Hi Roger, I can confirm that now the new "maple_mini_boot20.bin" from GitHub corresponds to the version I compiled and is working fine.

You're welcome!


Best, E.

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

Re: Problem with Baite Maple Mini and bootloader 2.0

Postby RogerClark » Sat Aug 20, 2016 6:44 am

Thanks @edogaldo

That's one more mystery solved.

PS. I've not changed the macro, but I agree your macro is better.

edogaldo
Posts: 167
Joined: Fri Jun 03, 2016 8:19 am

Re: Problem with Baite Maple Mini and bootloader 2.0

Postby edogaldo » Sat Aug 20, 2016 7:16 am

RogerClark wrote:PS. I've not changed the macro, but I agree your macro is better.

As said, changing the macro makes no difference in the bin files for me, so it seems the compiler is doing the job itself


Return to “Maple Bootloader”

Who is online

Users browsing this forum: No registered users and 1 guest