Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

make BOARD=trinket_m0 fails with undeclared identifier
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

make BOARD=trinket_m0 fails with undeclared identifier

by Kangus on Fri Mar 19, 2021 11:56 am

Following https://learn.adafruit.com/building-cir ... cuitpython guide (and keeping track of the changes needed for Windows 10 WSL2) I ended up with:

kevin@Aorus:~/circuitpython/ports/atmel-samd$ make BOARD=trinket_m0

../../py/gc.c: In function 'gc_sweep':
../../py/gc.c:298:68: error: 'MP_QSTR___del__' undeclared (first use in this function)
298 | mp_load_method_maybe(MP_OBJ_FROM_PTR(obj), MP_QSTR___del__, dest);
| ^~~~~~~~~~~~~~~
../../py/gc.c:298:68: note: each undeclared identifier is reported only once for each function it appears in
make: *** [../../py/mkrules.mk:55: build-trinket_m0/py/gc.o] Error 1
kevin@Aorus:~/circuitpython/ports/atmel-samd$

Git was ran on 3/19/2021, downloaded toolchain 3/19/2021 gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
python3 -V = Python 3.85

Kangus
 
Posts: 38
Joined: Sat May 19, 2018 10:01 pm

Re: make BOARD=trinket_m0 fails with undeclared identifier

by tannewt on Fri Mar 19, 2021 3:38 pm

Try doing a `make BOARD=trinket_m0 clean` and then trying again. The QSTR dependency logic isn't perfect.

The Discord is a good place to get build help too: https://adafru.it/discord

tannewt
 
Posts: 2385
Joined: Thu Oct 06, 2016 8:48 pm

Re: make BOARD=trinket_m0 fails with undeclared identifier

by Kangus on Fri Mar 19, 2021 7:40 pm

That worked! firmware.uf2 370176 bytes - The screen flashed white/black for 6~10 seconds and it was done.
Now I can start working on getting the worlds best MCU setup for circuitpython using the: MAX32630FTHR board.
Might add the 'clean' thing to the 'how to'.

Thanks!

Kangus
 
Posts: 38
Joined: Sat May 19, 2018 10:01 pm

Please be positive and constructive with your questions and comments.