virtualabs / radiobit

Micro:Bit Radio framework
146 stars 33 forks source link

Reduce heap size #5

Closed qoelet closed 6 years ago

qoelet commented 6 years ago

There is a similar issue to builds failing with region RAM overflowed with stack mentioned in https://github.com/bbcmicrobit/micropython/issues/363.

I reduced it around 400 bytes to get yotta build to run without the mentioned error in NixOS.

virtualabs commented 6 years ago

This issue seems to be related to a new version of newlib, and that a fix is available.

virtualabs commented 6 years ago

Solution implemented in commit 2ab0203f66c7294cd389f1366e23d1d77c06e667. I followed the solution from the microbit team, and ported to this firmware. Hope this will fix this issue :)

qoelet commented 6 years ago

Awesome, I'll test this out and report back!

qoelet commented 6 years ago

Tested https://github.com/virtualabs/radiobit/commit/2ab0203f66c7294cd389f1366e23d1d77c06e667 and working, thanks!