The SharkSSL ESP32 C source code IDE provides an easy to use C development environment for compiling SharkSSL IoT C code examples and for uploading the compiled examples to an ESP32. The IDE provides a complete development environment with no other tools required!
The SharkSSL FreeRTOS/lwIP ESP32 IDE is designed to run in a virtual machine (VM). The download is provided as an OVA file, which is compatible with any virtualization engine that can load the Open Virtualization Format. The VM has been tested in VmWare and VirtualBox. The SharkSSL IDE includes several projects, including the Barracuda App Server.
Note: the download is 2.3 Gigabytes.
The SharkSSL ESP32 IDE lets you fast track your understanding of the SSL/TLS protocol, Certificate Management, and secure IoT communication. The IDE includes several IoT C source code example programs that you can either compile "as is" or modify to suit your requirements. After working with a few examples, you will be an expert in using SSL for secure communication on a SharkSSL/FreeRTOS/lwIP powered device. Start your SharkSSL IoT development today with this easy to use IDE.
The virtual machine (VM) runs Linux and comes pre-installed with all required tools. Linux experience is not required, but advanced users can optionally use the Linux command line and work directly with the official ESP-IDF and the ready to use SharkSSL build tools. The easy to use web based development tools let any developer edit, compile, and upload code via a USB connection to an ESP32.
The IDE includes an easy to use web based graphical user interface for working with the following repositories:
Before opening the OVF file in VirtualBox, make sure you have a Host-only Adapter or select Bridge Adapter when configuring the VM as explained below:
The SharkSSL is loaded by navigating to the IP address printed in the VM's console window.
You will initially be prompted to enter your Wi-Fi configuration settings. The settings will be used when compiling the ESP32 specific Wi-Fi configuration code.
To upload a compiled example, connect an ESP32 using USB and make sure the Virtual Machine has ownership of the ESP32 USB device. The following screenshot shows how to take ownership using VirtualBox. VmWare provides similar configuration options.
VmWare remembers the "take ownership" configuration automatically, but not VirtualBox. You must repeat the above each time you unplug and plug the USB back in when using VirtualBox. However, VirtualBox lets you permanently recognize the USB device by right clicking on the VM and by selecting Settings -> USB. Permanently add the USB device by clicking the second add button as shown in the screenshot below:
When the ESP32 is connected, the SharkSSL ESP32 IDE's LED switches from red to green.
The VM is unable to get an IP address using DHCP if no IP address is shown in the VM's console window. Note that it may take some time before you can navigate to the IP address. Please try again if it fails. Something is wrong with the VM's network adapter settings if you are unable to navigate to the IP address after some time.
Some ESP32s require that you keep a boot button pressed when clicking the Run button in the SharkSSL ESP32 IDE. The button must be kept pressed until you see the firmware being uploaded. This process is automatic if the ESP32 does not have a boot button.
With VirtualBox, we had problems with connecting the monitor after the firmware upload process for ESP32 devices with the CP2102 USB UART (See figure 5). We could simply not connect the monitor using VirtualBox. If using VirtualBox, make sure not to use an ESP32 with a CP2102 USB UART. The ESP32 with the CP2102 is the one with the boot button.
The following is listed in order of preference. See details below Figure 6.
The ESP32 WROVER boards we tested have the CP2104 USB UART chip. These boards do not have the boot button. Uploading and connecting the monitor seems to be automatic with these devices. An additional benefit with the ESP32 WROVER is that you can also run the included Barracuda App Server.
When you see the error as shown in Figure 6, keep the boot button pressed on the ESP32 and then click the Monitor button in the IDE. You should, after a short time, see the following being printed in the console:
rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2)) waiting for download
When you see the above text, click the ESP32's reset button. The ESP32 will reboot, and the terminal will keep the connection (no USB connection errors).
You can connect any serial terminal to the ESP32. When the ESP32 is connected, open the Device Manager and expand "Ports". You should see the COM port being used by the USB UART. Use a terminal such as putty and connect using serial. Enter 115200 as the serial speed and enter the COM port as seen in the Device Manager.
A Linux Web Shell can be accessed by navigating to http://ip-addr/shell/. You can also remote in using SSH. The username and password is esp32.