Skip to content

Latest commit

 

History

History
132 lines (94 loc) · 5.33 KB

README.md

File metadata and controls

132 lines (94 loc) · 5.33 KB

wolfSSL ESP32 Examples

These are wolfSSL TLS 1.3 clients and servers for both wired and wireless Internet.

Note: wolfSSL v5.5.4 or newer is needed to use these examples with ESP-IDF v5.

See the setup scripts to install.

ESP32 TLS 1.3 Server

coming soon:

  • Wireless AP client
  • Arduino client

ESP32 TLS 1.3 Client

coming soon:

  • Wireless AP server
  • Arduino server

Creating VisualGDB Projects

VisualGDB-create-new-project.png

VisualGDB-configure-new-project.png

VisualGDB-new-espressif-project.png

VisualGDB-new-espressif-project-toolchain.png

VisualGDB-new-espressif-project-eth_enc28j60.png

VisualGDB-new-espressif-project-debug.png


ESP-IDF

Although the examples were created using VisualGDB extension for Visual Studio, the examples can of course be compiled using the ESP-IDF idf.py.

Once the EDP-IDF is installed, use the setp_win.bat to copy wolfSSL files to the esp-idf\components directory, typically in C:\Users\%username%\esp\esp-idf\components or C:\Users\%username%\Desktop\esp-idf\components. Be sure to run the ESP-IDY X.Y CMD command prompt that has %IDF_PATH% defined.

cd \workspace\
git clone https://github.com/wolfSSL/wolfssl.git
cd wolfssl\IDE\Espressif\ESP-IDF\
.\setup_win.bat

Build with VisualGDB toolchain from WSL

. /mnt/c/SysGCC/esp32/esp-idf/v5.0/export.sh
idf.py -b 115200 -p /dev/ttyS15 build flash monitor

Tips

If JTAG gets into a mode where it is simply always returning an error (app continually resetting) try using serial port to program a basic, operational "hello world". The Arduino IDE or command-line ESP-IDF can be handy here.

Toolchain Switching in VisualGDB

Due to occasional difficulty in switching between toolchains, separate VisualGDB solution files are included for ESP-IDF v4.4.1 and v5.0.

See the ProjectModeSettings of the respective .vgdbproj file:

      <ESPIDFExtension>
        <IDFCheckout>
          <Version>release/v5.0</Version>
          <Subdirectory>esp-idf/v5.0</Subdirectory>
          <Type>ESPIDF</Type>
        </IDFCheckout>
        <COMPort>COM20</COMPort>
        <SuppressTestPrerequisiteChecks>false</SuppressTestPrerequisiteChecks>
        <UseCCache>false</UseCCache>
        <DeviceID>ESP32</DeviceID>
      </ESPIDFExtension>

See also:


Support

Please contact wolfSSL at [email protected] with any questions, bug fixes, or suggested feature additions.