From 5174ad77f28a17ebb8518c2446cbc2633deef295 Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 27 Feb 2018 06:26:49 +0100 Subject: [PATCH 1/2] Added support for `WOLFSSL_STM32F1`. --- wolfssl/wolfcrypt/settings.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index 61654acf8..28ec97093 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -986,7 +986,7 @@ extern void uITRON4_free(void *p) ; #endif #if defined(WOLFSSL_STM32F2) || defined(WOLFSSL_STM32F4) || \ - defined(WOLFSSL_STM32F7) + defined(WOLFSSL_STM32F7) || defined(WOLFSSL_STM32F1) #define SIZEOF_LONG_LONG 8 #define NO_DEV_RANDOM @@ -1016,6 +1016,8 @@ extern void uITRON4_free(void *p) ; #include "stm32f4xx_hal.h" #elif defined(WOLFSSL_STM32F7) #include "stm32f7xx_hal.h" + #elif defined(WOLFSSL_STM32F1) + #include "stm32f1xx_hal.h" #endif #ifndef STM32_HAL_TIMEOUT @@ -1040,6 +1042,8 @@ extern void uITRON4_free(void *p) ; #endif #elif defined(WOLFSSL_STM32F7) #include "stm32f7xx.h" + #elif defined(WOLFSSL_STM32F1) + #include "stm32f1xx.h" #endif #endif /* WOLFSSL_STM32_CUBEMX */ #endif /* WOLFSSL_STM32F2 || WOLFSSL_STM32F4 || WOLFSSL_STM32F7 */ @@ -1646,7 +1650,7 @@ extern void uITRON4_free(void *p) ; #undef OPENSSL_EXTRA_X509_SMALL #define OPENSSL_EXTRA_X509_SMALL #endif /* OPENSSL_EXTRA */ - + #ifdef __cplusplus } /* extern "C" */ From 5699afe63dba628c6f1572270a6feddf015c68a7 Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 6 Mar 2018 09:09:44 -0800 Subject: [PATCH 2/2] Fix for minor typos in OPENSTM32 README.md. --- IDE/OPENSTM32/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IDE/OPENSTM32/README.md b/IDE/OPENSTM32/README.md index ec1e618cc..600dc3a61 100644 --- a/IDE/OPENSTM32/README.md +++ b/IDE/OPENSTM32/README.md @@ -8,11 +8,11 @@ ## Setup -1. Using the STM32CubeMX tool, load the `/IDE/OPENSTM32/wolfSTM32.ino` file. +1. Using the STM32CubeMX tool, load the `/IDE/OPENSTM32/wolfSTM32.ioc` file. 2. Adjust the HAL options based on your specific micro-controller. 3. Generate source code. 4. Run `SystemWorkbench` and choose a new workspace location for this project. -5. Import `wolfSTM32' project from `/IDE/OPENSTM32/`. +5. Import `wolfSTM32` project from `/IDE/OPENSTM32/`. 6. Adjust the micro-controller define in `Project Settings -> C/C++ General -> Paths and Symbols -> Symbols -> GNU C`. Example uses `STM32F437xx`, but should be changed to reflect your micro-controller type. 7. Build and Run @@ -24,4 +24,4 @@ The settings for the wolfSTM32 project are located in `/IDE/OPENST ## Support -For questions please email [support@wolfssl.com](mailto:support@wolfssl.com) \ No newline at end of file +For questions please email [support@wolfssl.com](mailto:support@wolfssl.com)