Prepping environment to program the ESP32
Once Zerynth is installed and launched, there are a few things that need to happen before you can start programming the ESP32 with MicroPython. The steps are fairly straightforward, and I followed this documentation link to get everything set up.
The steps are as follows:
- Install drivers for ESP32 (may require a reboot)
- Connect ESP32 board to PC
- Register ESP32 with Zerynth
- Virtualize ESP32
- Test code!
During these steps, Zerynth will handle the firmware flashing to make the ESP32 MicroPython compatible!
Note on connecting the ESP32 to PC via micro USB: Be sure to use a known quality cable. One cable that I used was able to provide the board with power, but no data connectivity. When I switched cables, my PC was able to recognize the device.
Registering and virtualizing ESP32
Within Zerynth, you're able to register and virtualize your ESP32 board. The registration process allows Zerynth to build a virtual machine for your specific device. The created virtual machine can be virtualized (i.e. burned on the device).
I followed this section from the same link above to connect, register, and virtualize my ESP32.
Notes on selecting your virtual machine: There are a few options for the VM within Zerynth, all of which use FreeRTOS. We may need to register for a premium account in order to get the full features/more advanced options with FreeRTOS. I haven't had any issues yet relating to this, so we will test the functionality with what is provided, and if need be, we can look into the premium account option.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.