Hi gugys,
I am new at this and would like some guidance. I've been attempting to use LVGL on R-Pi Pico. To that goal, I have a porting of lv_micropython - as obtained following the instructions at lvgl.io. The net result is that I have built a file called Firmware.elf.
This "Firmware.elf" I believe is what contains the LVGL library. Now since this is firmware.. its likely that it will overwrite the UF2 file that is the support system for Micropython. Now after loading this "Firmware.elf" will the earlier UF2 file get erased? And will the new elf file support programming in Thonny?
I'll really appreciate any help. Thanks
May I say that I think you did the right thing by trying to raise this with the lv_micropython developers. Maybe it is their annual vacation?
My experience of building ports of micropython for RP2 is very limited, so these comments may not be definitive.
Whenever I have built micropython I have found a <buildname>.uf2 in the output directory alongside the .elf
To upload a .elf I think you need an alternative uploader such as picotool which uses the debug connector on the Pico. Details are in the Raspberry Pi documentation.
My understanding is that uploading a .uf2 via the RPI-RP2 mass storage effectively replaces the code running on the Pico. So, yes, the old is 'erased.'
If the lv_micropython 'fork' of micropython simply adds the lvgl features to the base micropython implementation for RP2/Pico then I would expect the micropython usb REPL used by Thonny to be unaffected. But that is a guess, not based on knowledge or experience.
"Try it and see" would be my suggestion. Be sure you can reinstate your working version of the standard micropython .uf2 or other firmware before you do the test.
Statistics: Posted by B.Goode — Wed Jul 17, 2024 5:14 pm