The Desk of Ladyada - Complex kernel compiles? Docker it up!
Ladyada will be talking about using Docker for kernel compiles on ESP32S3 to overcome issues with other methods; they created a Docker container, simpler and smaller than VirtualBox. And we're discussing on adding a 2x5 0.05" JTAG/SWD connector to ESP32-S3 boards, highlighting options for easy debugging.
This week at the Desk of Ladyada we're playing around with @jcmvbkbc 's linux-for-ESP32S3 script (https://gist.github.com/jcmvbkbc/316e6da728021c8ff670a24e674a35e6). We tried compiling a few different ways: MSYS2, WSL, VirtualBox and Mac OS, but bumped into different issues each time - not major issues but still kinda annoying stuff. if we want others to be able to reproduce this we did what any REAL engineer does when they have a big toolchain to massage: make a Docker container! (https://www.hanselman.com/blog/docker-101-and-how-do-containers-work) - much simpler and smaller than virtualbox because it has only the bare essentials. no cruft to deal with from python versions or operating system setups. we'll chat about how to make a Dockerfile, how to port over a shell script, and then how to terminal in once running. the Dockerfile is herehttps://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/ESP32S3_Linux/Dockerfile and if you want to just download the container image post-compilation check it out at https://hub.docker.com/repository/docker/ladyada/esp32_linux_builder/general
The Great Search - 2x5 0.05" JTAG / SWD connector and cable
https://www.digikey.com/short/rcmjwc81
On our latest ESP32-S3 board, we added a JTAG conector as we do on many Metros. This is a 'standard' port for SWD or JTAG that is smaller than the common 2x10 connector. This size is common to many debuggers like the Atmel ICE (https://blog.adafruit.com/2022/07/01/the-great-search-programmer-debugger-for-atsamd21-chips-adafruit-digikey-microchipmakes/) or J-Link (https://www.digikey.com/en/products/detail/segger-microcontroller-systems/8-08-00/2175882). The connector is a jellybean part, with many possible vendors. Let's find a few options that you can put onto your next dev board for easy debugging!
#espressif #esp32 #espfriends