wolfssl-examples/Arduino/sketches/wolfssl_AES_CTR/README.md

1.4 KiB

Arduino AES CTR Example

Open the wolfssl_AES_CTR.ino file in the Arduino IDE.

Other IDE products are also supported, such as:

For examples on other platforms, see the IDE directory. Additional examples can be found on wolfSSL/wolfssl-examples.

Troubleshooting

When encountering odd errors such as undefined reference to ``_impure_ptr', such as this:

c:/users/gojimmypi/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\gojimmypi\AppData\Local\Temp\arduino\sketches\EAB8D79A02D1ECF107884802D893914E\libraries\wolfSSL\wolfcrypt\src\logging.c.o:(.literal.wolfssl_log+0x8): undefined reference to `_impure_ptr'
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

Try cleaning the Arduino cache directories. For Windows, that's typically in:

C:\Users\%USERNAME%\AppData\Local\Temp\arduino\sketches

Remove all other boards from other serial ports, leaving one the one being programmed.