wolfSSL Buildfest 2026: embedded platform IDEs

When building wolfSSL for a microcontroller, RTOS, or other embedded target, you will usually be working inside a vendor IDE or SDK such as STM32CubeIDE, Keil MDK, IAR Embedded Workbench, MCUXpresso, e² studio, ESP-IDF, Arduino, PlatformIO, or Zephyr.

These environments don’t run ./configure. Instead, wolfSSL ships ready-made project files, software packs, and components under the IDE/ directory, and every one of them is configured the same way: with a user_settings.h header and the WOLFSSL_USER_SETTINGS define.

When should I use an IDE project or pack?


Use the wolfSSL IDE support when:

  • You are targeting a microcontroller or RTOS.
  • Your toolchain is driven by a vendor IDE or SDK rather than a shell.
  • You want a known-good starting project for your board or chip family.
  • You want wolfSSL delivered through your vendor’s package manager (CMSIS pack, Cube pack, ESP component, Arduino library).
  • You need hardware crypto acceleration provided by a vendor port.

Choosing the right starting point

Platform / IDE Where to start
STM32CubeIDE / STM32CubeMX wolfSSL Cube pack (I-CUBE-wolfSSL), IDE/STM32Cube/
Keil MDK 5 wolfSSL::wolfSSL CMSIS pack, IDE/MDK5-ARM/
IAR Embedded Workbench IDE/IAR-EWARM/
NXP MCUXpresso IDE/MCUEXPRESSO/
Renesas e² studio / CS+ IDE/Renesas/
Espressif ESP-IDF IDE/Espressif/ESP-IDF/ or the ESP Component Registry
Arduino Arduino Library Manager, IDE/ARDUINO/
PlatformIO PlatformIO Registry, IDE/PlatformIO/
Zephyr zephyr/ west module
Plain GCC ARM / Makefile IDE/GCC-ARM/
Other (Microchip, Infineon, Silicon Labs, Xilinx, …) the matching IDE/ subdirectory and its README

How does an embedded IDE build work?


Every wolfSSL IDE project follows the same pattern:

  1. The IDE compiles the wolfSSL sources from src/ and wolfcrypt/src/ as part of your project (or as a library project alongside it).
  2. WOLFSSL_USER_SETTINGS is defined in the project’s preprocessor settings.
  3. wolfSSL’s settings.h includes your user_settings.h, which holds the full configuration.
  4. Platform macros in user_settings.h (for example WOLFSSL_STM32F4, FREERTOS, WOLFSSL_ESPIDF) let settings.h set up threading, memory, time, and filesystem support.

A typical project therefore looks like:

my-firmware/
├── Core/                 <- vendor-generated startup and HAL
├── App/
├── Config/
│   └── user_settings.h
└── Middlewares/
    └── wolfSSL/
        ├── src/
        └── wolfcrypt/src/

with Config/ on the include path.

Step 1: Get wolfSSL into your IDE


Use your vendor's package manager where one exists:

  • STM32: install the wolfSSL Cube pack in STM32CubeMX ("Manage software installations"), then select wolfSSL / Core and wolfCrypt / Core under "Software Packs".
  • Keil MDK 5: in the Pack Installer, install wolfSSL::wolfSSL, then enable wolfCrypt CORE and wolfSSL CORE under "Manage Run-Time Environment".
  • ESP-IDF: add wolfSSL from the ESP Component Registry, or start from an example in IDE/Espressif/ESP-IDF/examples/.
  • Arduino: install wolfSSL from the Arduino Library Manager.
  • PlatformIO: add wolfssl/wolfssl (or wolfssl/Arduino-wolfSSL) to lib_deps.
  • Zephyr: add wolfSSL as a project in your west.yml and enable it in Kconfig.

Otherwise, open the example project from the matching IDE/ subdirectory, or add the wolfSSL sources to your own project.

Step 2: Add the sources (manual projects only)


If you are adding wolfSSL to a project by hand, compile:

src/*.c
wolfcrypt/src/*.c

except files that are #included into others rather than compiled on their own:

  • src/ssl_*.c — included into src/ssl.c
  • wolfcrypt/src/evp.c — included into src/ssl.c
  • wolfcrypt/src/misc.c — inlined unless NO_INLINE is defined

Only add files from wolfcrypt/src/port// for the hardware you are actually using.

Step 3: Define WOLFSSL_USER_SETTINGS and provide user_settings.h


Add:

WOLFSSL_USER_SETTINGS

to the preprocessor definitions for both the wolfSSL sources and your application.

Packs and examples ship with their own user_settings.h (or generate one from the pack's configuration screen). For a manual project, start from a template in:

wolfssl/examples/configs/

such as user_settings_template.h, user_settings_baremetal.h, user_settings_stm32.h, user_settings_espressif.h, or user_settings_arduino.h.

Step 4: Include settings.h first


Your application should include:

#include 

before other wolfSSL headers.

For example:

#include 
#include 

Step 5: Run the wolfCrypt test on the target


Before writing any TLS code, build and run the wolfCrypt self-test on your board:

wolfcrypt_test(NULL);

from wolfcrypt/test/test.c. Most IDE examples include it, along with the wolfCrypt benchmark. A passing test confirms your configuration, entropy source, math, and hardware acceleration are working.

Why start from an IDE project or pack?


You generally should not build an embedded wolfSSL project from an empty template if a project for your platform already exists.

Starting from a wolfSSL IDE project or pack gives you:

  • A source list that already excludes the #included-only files
  • A user_settings.h already tuned for the target
  • Working entropy, time, and threading hooks for the platform
  • Hardware acceleration wired up where available
  • Test and benchmark applications for bring-up

A common mistake: configuring the library and application differently


One of the most common wolfSSL build problems is a mismatch between the configuration used to compile the wolfSSL library and the configuration used by the application.

In an IDE this usually happens when wolfSSL lives in a separate library project and WOLFSSL_USER_SETTINGS, or the include path to user_settings.h, is set in only one of the two projects.

The application and wolfSSL library need to use the same configuration.

Keep exactly one user_settings.h, put its directory on the include path of every project that touches wolfSSL, and define WOLFSSL_USER_SETTINGS everywhere.

Can I test my configuration on a PC first?


Yes. Copy your user_settings.h into the root of the wolfSSL source tree and run:

./configure --enable-usersettings --disable-examples
make

Platform-specific macros may need to be stubbed out, but this quickly catches typos and conflicting options before you flash a board.

Quick troubleshooting checklist


If your embedded build isn't working, check these first:

  1. Is WOLFSSL_USER_SETTINGS defined for the wolfSSL sources and your application?
  2. Is the directory containing user_settings.h on every project's include path?
  3. Are src/ssl_*.c, wolfcrypt/src/evp.c, and wolfcrypt/src/misc.c excluded from compilation?
  4. Does wolfcrypt_test() pass on the target?
  5. Is a real hardware entropy source configured?
  6. Is the system clock set, so certificate dates validate?
  7. Is the task or main stack large enough? Stack overflows commonly look like hard faults during the handshake.
  8. Are the CA certificates loaded? ASN_NO_SIGNER_E (-188) means the peer's signer wasn't found.

If you have questions about any of the above, please contact us at facts@wolfssl.com or call us at +1 425 245 8247.

Download wolfSSL Now