.. | ||
lib_wolfssl | ||
wolf_example | ||
README.md |
WolfSSL Example using the OM13076 (LPCXpresso18S37) board
To use, install the NXP LPCXpresso IDE and import the projects in a new workspace.
- Change names of
LPCExpresso.project
andLPCExpresso.cproject
files to.project
and.cproject
- Run LPCXpresso and choose a workspace location.
- Right click in the project explorer window and choose Import.
- Under General choose "Existing Projects into Workspace".
- Under "Select root directory" click browse and select the wolfSSL root.
- Check the "Search for nested projects" box.
- Make sure "wolfssl" and "wolfssl_example" are checked under "Projects:".
- Click finish.
- Download the board and chip LPCOpen package for your platform.
- Import the projects. For example "lpc_board_nxp_lpcxpresso_1837" and "lpc_chip_18xx" are the ones for the LPC18S37.
To setup this example to work with different baords/chips you will need to locate the LPCOpen sources for LPCXpresso on the NXP website and import the board and chip projects. Then you will need to update the "wolfssl_example" project properties to reference these projects (C/C++ General -> Paths and Symbols -> References). See the LPCOpen v2.xx LPCXpresso quickstart guide for all platforms for additional information.
WolfSSL example projects:
wolf_example
. It has console options to run the Wolf tests and benchmarks ('t' for the WolfSSL Tests and 'b' for the WolfSSL Benchmarks).
Static libraries projects:
wolfssl
for WolfSSL. The WolfSSL port for the LPC18XX platform is located inIDE/LPCXPRESSO/lpc_18xx_port.c
. This has platform specific functions forcurrent_time
andrand_gen
. TheWOLF_USER_SETTINGS
define is set which allows all WolfSSL settings to exist in theuser_settings.h
file (see this file for all customizations used).
Important Files
-
IDE/LPCXPRESSO/user_settings.h
. This provides a reference for library settings used to optimize for this embedded platform. -
IDE/LPCXPRESSO/lpc_18xx_port.c
. This defines the required time and random number functions for the WolfSSL library. -
IDE/LPCXPRESSO/wolf_example/wolf_example.c
. This shows use of the WolfSSL tests and benchmarks.