Deep Dive w/Scott: MicroPython 1.20 fixing & memory system changes #adafruit

Subscribers:
458,000
Published on ● Video Link: https://www.youtube.com/watch?v=i0Ovi0cL_BM



Duration: 1:35:19
921 views
21


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/
-----------------------------------------




Other Videos By Adafruit Industries


2023-10-11Advanced Manufacturing: Made in NYC by Adafruit 10/11/2023
2023-10-113D Hangouts – HAL 9000, Fraz Wrench and Grim Reaper
2023-10-11SHOW and TELL 10/11/2023 #ShowandTell #adafruit #diy
2023-10-11JP’s Product Pick of the Week 10/10/23 HalloWing M4 Goth Edition RECAP #adafruit
2023-10-10HAL 9000 with RP2040 PropMaker Feather #adafruit #3DPrinting #CircuitPython
2023-10-10CircuitPython Weekly meeting for October 10th, 2023 #circuitpython #adafruit
2023-10-10JP’s Product Pick of the Week 10/10/23 HalloWing M4 Goth Edition
2023-10-09Grim Reaper #3dprinting #adafruit #timelapse
2023-10-09The Great Search - Clamping Cable Ferrites #TheGreatSearch #DigiKey #Adafruit @Adafruit @DigiKey
2023-10-09The Desk of Ladyada - USB Host Featherwing + 2.8" Round Display & Clamping Cable Ferrites
2023-10-07Deep Dive w/Scott: MicroPython 1.20 fixing & memory system changes #adafruit
2023-10-06John Park's CircuitPython Parsec: Bitmap Label Highlighting #adafruit #circuitpython
2023-10-06JOHN PARK'S WORKSHOP LIVE 10/5/23 Nozzles and Chimes #adafruit
2023-10-05#NewProducts 10/4/23 Featuring #Adafruit VCNL4020 #Proximity and #LightSensor - #STEMMAQT !
2023-10-05EYE on NPI - Brady M210 Label Printer #Digikey #EYEonNPI @DigiKey @bradynasocial @adafruit
2023-10-05Adafruit Top Secret October 4, 2023 #Adafruit #AdafruitTopSecret #display @Adafruit
2023-10-05Python on Hardware weekly video 249 #CircuitPython #Python #adafruit @Adafruit @micropython
2023-10-05Advanced Manufacturing: Made in NYC by Adafruit 10/4/2023
2023-10-05ASK AN ENGINEER 10/4/2023 LIVE!
2023-10-043D Hangouts – Fraz Wrench, HAL 9000 and Skeletal Snake
2023-10-04SHOW and TELL 10/4/2023 #ShowandTell #adafruit #diy



Tags:
adafruit
electronics
diy
arduino
hardware
opensource
projects
raspberry
pi
computer
raspberrypi
microcontrollers
limor
limorfried
ladyada
STEAM
STEM
python
microbit
circuitpython
neopixel
neopixels
raspberry pi
circuitplaygound
nyc
make
makers
micro:bit
adafrit
adafruit promo code
ada fruit
adafruit coupons
raspberry pi zero
micropython
machine learning
ai
tensorflow