micro-bitcoin / uBitcoin

Bitcoin library for microcontrollers. Supports Arduino, mbed, bare metal.
https://micro-bitcoin.github.io/
MIT License
166 stars 34 forks source link

What is the memory requirements of this library? #26

Open dipunm opened 1 year ago

dipunm commented 1 year ago

I am trying to compile this into firmware for the Badger2040, but I have run into an issue:

/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: firmware.elf section `.bss' will not fit in region `RAM'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: region RAM overflowed
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: region `RAM' overflowed by 31496 bytes

I'm a little out of my depths here, but is it possible to figure out what the .bss (block started by symbol) usage is, and also what the typical memory requirements are for loading a mnemonic and fetching its fingerprint and xpub.

Even a rough estimate would help. Thanks.