# CF2 config file for F4 bootloader

**URL:** <https://forum.makecode.com/t/cf2-config-file-for-f4-bootloader/1146>\
**Category:** Arcade\
**Created:** [February 2, 2020, 6:12pm UTC](https://forum.makecode.com/t/cf2-config-file-for-f4-bootloader/1146 "2020-02-02T18:12:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![3issa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/3issa/32/591_2.png) [@3issa](https://forum.makecode.com/u/3issa)\
**Post date:** [February 2, 2020, 6:12pm UTC](https://forum.makecode.com/t/cf2-config-file-for-f4-bootloader/1146/1 "2020-02-02T18:12:09Z")

</div>

Hi everyone,

I’m making my own makecode arcade hardware based on the reference design provided on github ([https://github.com/microsoft/pxt-arcade-hardware-designs](https://github.com/microsoft/pxt-arcade-hardware-designs)).

According to the schematics, I have configured the button Menu as active on high level while the others are actives on low level. But, after compiling the bootloader from the f401 board, it turns out that even the button Menu is active on low.

It seems that we can change this behavior with the cf2 config file but I can’t find how. Can anyone tell if it is possible and how to do that ?

Thanks.

---

<div class="post-metadata">

**Author:** ![mmoskal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mmoskal/32/20_2.png) [@mmoskal](https://forum.makecode.com/u/mmoskal)\
**Post date:** [February 2, 2020, 10:57pm UTC](https://forum.makecode.com/t/cf2-config-file-for-f4-bootloader/1146/2 "2020-02-02T22:57:43Z")

</div>

If you can still change it I suggest to set it to active low. Otherwise, you can use the setting from the mvd bootloader in the repo. I think it should work with arcade beta as I recently fixed it, not quite sure it made it to beta yet. It is broken in the main version of arcade, sorry.

---

<div class="post-metadata">

**Author:** ![3issa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/3issa/32/591_2.png) [@3issa](https://forum.makecode.com/u/3issa)\
**Post date:** [February 3, 2020, 6:21am UTC](https://forum.makecode.com/t/cf2-config-file-for-f4-bootloader/1146/3 "2020-02-03T06:21:46Z")

</div>

Thanks for your reply. That is not a good news for me.

Is your idea to patch the bootloader with PIN\_BTN\_MENU = 0x110000 ?  
According to the configkeys.h, this matches the label BTN\_FLAG\_ACTIVE\_HIGH which seems what I am looking for. But, I don’t understand how you choose the pin in this case (I use the same pin as the reference design).

In addition to that, I’ll try to modify my PCB or make a new one.

---

<div class="post-metadata">

**Author:** ![mmoskal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mmoskal/32/20_2.png) [@mmoskal](https://forum.makecode.com/u/mmoskal)\
**Post date:** [February 3, 2020, 7:02am UTC](https://forum.makecode.com/t/cf2-config-file-for-f4-bootloader/1146/4 "2020-02-03T07:02:40Z")

</div>

The pin is pa0 which has number zero. If it was pb7 it would be 0x110017

I checked and the latest arcade beta should work with 0x110000

---

<div class="post-metadata">

**Author:** ![3issa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/3issa/32/591_2.png) [@3issa](https://forum.makecode.com/u/3issa)\
**Post date:** [February 3, 2020, 7:17am UTC](https://forum.makecode.com/t/cf2-config-file-for-f4-bootloader/1146/5 "2020-02-03T07:17:12Z")

</div>

Ok, I understand. I’ll give it a try.

Thank you.

---

<div class="post-metadata">

**Author:** ![3issa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/3issa/32/591_2.png) [@3issa](https://forum.makecode.com/u/3issa)\
**Post date:** [February 8, 2020, 4:41pm UTC](https://forum.makecode.com/t/cf2-config-file-for-f4-bootloader/1146/6 "2020-02-08T16:41:48Z")

</div>

Hi,  
Just to let you know that it works with the beta but I can’t use the menu button anymore to wake the board up when it is in deep sleep.
