1.8 KiB
wolfSSH for STM32 Cube IDE
The wolfSSH Cube Pack can be found here
-
The first step is to set up the wolfCrypt library in your ST project following the guide here https://github.com/wolfSSL/wolfssl/blob/master/IDE/STM32Cube/README.md. To run the wolfSSH unit tests, name the entry function
wolfSSHTest
instead ofwolfCryptDemo
. -
Then install the wolfSSH Cube Pack in the same manner as the wolfSSL pack with CUBEMX.
-
Open the project
.ioc
file and click theSoftware Packs
drop down menu and thenSelect Components
. Expand thewolfSSH
pack and check all the components. -
In the
Software Packs
configuration category of the.ioc
file, click on the wolfSSH pack and enable the library by checking the box. -
Since LwIP is a dependency for the Cube Pack, enable LwIP in the
Middleware
configuration category of the project. Also enable theLWIP_DNS
option in the LwIP configuration settings. -
Save your changes and select yes to the prompt asking about generating code.
-
Build the project and run the unit tests.
Notes
-
Make sure to make these changes to redirect the printf's to the UART.
-
If looking to enable filesystem support, the pack assumes the user has defined their own filesystem in
wolfssh/myFilesystem.h
. That file will originally contain a dummy filesystem. If going the FATFS route, make sure to replace#define WOLFSSH_USER_FILESYSTEM
with#define WOLFSSH_FATFS
in thewolfSSL.I-CUBE-wolfSSH_conf.h
header file. The wolfSSL Cube Pack also defaults to disabling filesystem support so make sure to remove#define NO_FILESYSTEM
fromwolfSSL.I-CUBE-wolfSSL_conf.h
.