Deep Dive w/Scott: MicroPython 1.20 fixing & memory system changes #adafruit
Join Scott as he works on the MicroPython 1.20 merge into CircuitPython, discusses CP memory changes coming in 9.0 and answers questions.
Thanks to dcd for timecodes.
0:00 getting started after obs issues
3:05 intro
4:40 unlabeled :-) IMX 1011 micro
6:07 Foamy Guy stream next week
7:05 restart where Left off... finished IDF 5.1
8:01 Re-enable RGB Matrix support
9:00 RGB Matrix hard faulted crashed into safe mode after a while
9:58 Invalid pin issue in CP 9 alpha -
10:28 Dan reviewed the RBB Matrix PR
10:47 Review PR 8446 - improve RGB matrix allocation tracking
14:44 memory allocaton free_memory(allocation_from_ptr(... ));
15:48 Code was leaking - protomater related
17:40 using a cache of allocations didn't really fix the leak
18:15 question / leading to 3d printing discord channel
19:40 Adafruit_ProtoMatter star trek reference
20:18 additional fixes in PR 8447 - Enable rgbmatrix on IDF 5.1
21:53 future topics about memory management - but back to the review
22:40 refresh logic adjusted
26:25 how to address compacting memory management - just don't do that :-)
27:50 release notes for micropython 1.21.0 MICROPY_GC_SPLIE_HEAP_AUTO
31:40 Protomatter and memory management - about half implemented
34:43 started the recent switch_to_split_heap branch
35:30 switching to espressif tlsf memory allocator ( port_malloc() )
36:45 potential issue with LARGE allocations in CP
37:30 removed stack resizing support
40:10 addressing display memory management - future followup
43:00 how do changes affect code size?
43:20 looking at CI run
44:10 Adafruit has the mask 2 display product - assumes one display
44:55 Newer memory allocation will give more flexible heap space
45:25 rewrite of tiny usb mentions (ram usage)
46:10 Pi 400 and other display products with USB host - self contained CP computers
47:15 Mostly build failing on CI
48:12 try reproduce issues locally ( no rule to make target .. )
49:35 git blame to find what changed - factored out
52:45 USB host chip connected over SPI for tiny usb
53:40 back to the CI run
54:00 Max 3421 host ( in tinyusb )
56:30 consider building mac related builds on the mac laptop?
59:30 CI not building - check on build errors
1:06:20 looking at Invalid Pin issue mentioned in circuitpython-dev on 9/30
1:08:18 maybe retry issue on espress S3 board
1:08:50 git doesn't have an issues tracker, but uses a mailing list :-(
1:10:05 git fetch all submodules
1:17:45 might be rebuilding mpy-cross for frozen libraries
1:18:50 back to test_um_pin branch
1:19:37 using tio to connect to espressif uart
1:22:08 at least pin 11 works
1:22:40 ac_index == 0 "that's not right" :-) - found the bug
1:24:40 found the fixed branch
1:27:00 file fixed was not updated "that's my problem"
1:28:17 ready to wrap up - but first - test analogin on board io1
1:29:12 it works now!
1:29:33 git switch -c fix_adc_pin_test_idf5
1:30:10 no issue yet - commit the fix and push
1:32:33 wrap up - after successful fix!
1:34:40 have a great weekend - see you in 2 weeks (probably :-)
Visit the Adafruit shop online - http://www.adafruit.com
-----------------------------------------
LIVE CHAT IS HERE! http://adafru.it/discord
Subscribe to Adafruit on YouTube: http://adafru.it/subscribe
New tutorials on the Adafruit Learning System: http://learn.adafruit.com/
-----------------------------------------