ulab + MicroPython v1.18 to PYBD SF2W: too large?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
EduardoDestefani
Posts: 4
Joined: Thu Jul 02, 2020 8:17 pm

ulab + MicroPython v1.18 to PYBD SF2W: too large?

Post by EduardoDestefani » Fri Jan 28, 2022 7:11 pm

Hello folks,

I was trying to create a newer MicroPython firmware with ulab using the same steps as version 1.17 for Pybaord-D SF2W. I tried to build the firmware following; https://github.com/EduardoDestefani/mic ... yboard-etc with the changes shown in; viewtopic.php?f=3&t=7005&p=49613&hilit=ulab#p49476

The steps above always worked for Pyboard-D SF2, as it doesn't have enough memory to handle the ulab library smoothly. When trying to reproduce the steps, the following error appeared with MicroPython version 1.18:

Code: Select all

CC ../../lib/lwip/src/core/ipv6/nd6.c
CC ../../lib/lwip/src/netif/ethernet.c
CC mbedtls/mbedtls_port.c
CC build-PYBD_SF2/pins_PYBD_SF2.c
LINK build-PYBD_SF2/firmware.elf
arm-none-eabi-ld: build-PYBD_SF2/code/numpy/io/io.o: in function `io_save':
io.c:(.text.io_save+0xd0): undefined reference to `sprintf'
arm-none-eabi-ld: io.c:(.text.io_save+0x124): undefined reference to `sprintf'
arm-none-eabi-ld: io.c:(.text.io_save+0x1de): undefined reference to `sprintf'
make: *** [Makefile:718: build-PYBD_SF2/firmware.elf] Erro 1
Does anyone know another way to make the ulab library fit on Pyboard-D SF2W boards?

andyy
Posts: 3
Joined: Sat Jan 22, 2022 1:38 pm

Re: ulab + MicroPython v1.18 to PYBD SF2W: too large?

Post by andyy » Fri Jan 28, 2022 7:53 pm

Hello,

there was a bug in ulab a few days ago, see https://github.com/v923z/micropython-ulab/issues/493.
There is also a solution mentioned if the build still doesn't work with latest ulab version.
A work-arround is to set ULAB_NUMPY_HAS_LOAD and ULAB_NUMPY_HAS_SAVE both to 0 - then in builds perfectly fine.
Hope this helps.

Post Reply