Compiling with btree module support

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
beka
Posts: 8
Joined: Wed Sep 20, 2017 9:29 am

Compiling with btree module support

Post by beka » Tue Apr 06, 2021 11:01 am

Hi All,

This is my first time posting. I needed to use a WROVER module with 8MB external flash so I attempted to compile code from https://github.com/micropython/micropython. While I finally managed to compile without errors I found that I could not import the btree module which is essential for my application. I could not find an option in menuconfig. Can anyone help on how I can compile in btree module support.

Best

marcidy
Posts: 133
Joined: Sat Dec 12, 2020 11:07 pm

Re: Compiling with btree module support

Post by marcidy » Tue Apr 06, 2021 9:09 pm

reproduced.

Looks like it's getting compiled, but I don't think it's getting linked. If I had to guess, the transition to cmake overlooked this.

I'm poking at it, but maybe worth raising an issue on GH.

marcidy
Posts: 133
Joined: Sat Dec 12, 2020 11:07 pm

Re: Compiling with btree module support

Post by marcidy » Tue Apr 06, 2021 11:15 pm

seems like the lib/berkeley-db-1.xx isn't getting picked up. I couldn't find a quick solution, and i suspect it needs to be adapted for cmake

beka
Posts: 8
Joined: Wed Sep 20, 2017 9:29 am

Re: Compiling with btree module support

Post by beka » Thu Apr 08, 2021 5:49 am

Thanks for following up...

wangshujun@tom.com
Posts: 61
Joined: Fri Feb 15, 2019 9:22 am

Re: Compiling with btree module support

Post by wangshujun@tom.com » Thu Apr 08, 2021 2:55 pm

BTREE module should be built-in. Do you need the support of 8 MB flash? If so, consider trying the firmware linked below, both 8 and 16 megabytes

These firmware only changed the frame buffer module,Added Chinese support and big font support

https://github.com/wangshujun-tj/mpy-Framebuf-boost

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Compiling with btree module support

Post by Roberthh » Thu Apr 08, 2021 6:13 pm

The btree module is about to be included again for the ESP32. Damien is working on it.

beka
Posts: 8
Joined: Wed Sep 20, 2017 9:29 am

Re: Compiling with btree module support

Post by beka » Fri Apr 09, 2021 8:56 am

Great that the btree module is going to be included, I will try wangshujun's branch in the meantime.

Best

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Compiling with btree module support

Post by Roberthh » Fri Apr 09, 2021 9:08 am

Btree is included now. You should have it in the daily build tomorrow.

beka
Posts: 8
Joined: Wed Sep 20, 2017 9:29 am

Re: Compiling with btree module support

Post by beka » Fri Apr 09, 2021 9:39 am

Many thanks to all!

beka
Posts: 8
Joined: Wed Sep 20, 2017 9:29 am

Re: Compiling with btree module support

Post by beka » Sat Apr 10, 2021 7:12 am

Just to confirm that I have compiled the daily build and I can now import the btree module - problem solved!

Best!

Post Reply