Posts

Showing posts from August, 2021

Embedded Gardening, Part 5 - Software Considerations

Image
Working on this platform with Micro Python has been pretty interesting.  It's a strange combination of low level driver access patterns, memory limitations and debugging with higher level python and interpreted code.  Using the WebREPL for remote debugging and serial Python console afford pretty convenient and fast print and repl testing.  Breakpoints would be nice and I think you can do that with ESP32.  Early on I started getting out-of-memory (OOM) errors when loading all the python drivers for the peripherals I was using.  But I made an error in judgement, and rather than use the built-in tools to track down the exact memory usage of each module and memory used while the program was running.  It would have saved me some time. I decided that since each module was not needed simultaneously, rather than load all the modules into memory, I'd load them as needed, and then unload them.  When you use a python "import" statement, the module gets loaded int...