forked from wolfSSL/wolfssl
Merge pull request #1419 from dgarske/stm32f1
Added support for `WOLFSSL_STM32F1`
This commit is contained in:
@@ -8,11 +8,11 @@
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
1. Using the STM32CubeMX tool, load the `<wolfssl-root>/IDE/OPENSTM32/wolfSTM32.ino` file.
|
1. Using the STM32CubeMX tool, load the `<wolfssl-root>/IDE/OPENSTM32/wolfSTM32.ioc` file.
|
||||||
2. Adjust the HAL options based on your specific micro-controller.
|
2. Adjust the HAL options based on your specific micro-controller.
|
||||||
3. Generate source code.
|
3. Generate source code.
|
||||||
4. Run `SystemWorkbench` and choose a new workspace location for this project.
|
4. Run `SystemWorkbench` and choose a new workspace location for this project.
|
||||||
5. Import `wolfSTM32' project from `<wolfssl-root>/IDE/OPENSTM32/`.
|
5. Import `wolfSTM32` project from `<wolfssl-root>/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.
|
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
|
7. Build and Run
|
||||||
|
|
||||||
|
@@ -986,7 +986,7 @@ extern void uITRON4_free(void *p) ;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WOLFSSL_STM32F2) || defined(WOLFSSL_STM32F4) || \
|
#if defined(WOLFSSL_STM32F2) || defined(WOLFSSL_STM32F4) || \
|
||||||
defined(WOLFSSL_STM32F7)
|
defined(WOLFSSL_STM32F7) || defined(WOLFSSL_STM32F1)
|
||||||
|
|
||||||
#define SIZEOF_LONG_LONG 8
|
#define SIZEOF_LONG_LONG 8
|
||||||
#define NO_DEV_RANDOM
|
#define NO_DEV_RANDOM
|
||||||
@@ -1016,6 +1016,8 @@ extern void uITRON4_free(void *p) ;
|
|||||||
#include "stm32f4xx_hal.h"
|
#include "stm32f4xx_hal.h"
|
||||||
#elif defined(WOLFSSL_STM32F7)
|
#elif defined(WOLFSSL_STM32F7)
|
||||||
#include "stm32f7xx_hal.h"
|
#include "stm32f7xx_hal.h"
|
||||||
|
#elif defined(WOLFSSL_STM32F1)
|
||||||
|
#include "stm32f1xx_hal.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef STM32_HAL_TIMEOUT
|
#ifndef STM32_HAL_TIMEOUT
|
||||||
@@ -1040,6 +1042,8 @@ extern void uITRON4_free(void *p) ;
|
|||||||
#endif
|
#endif
|
||||||
#elif defined(WOLFSSL_STM32F7)
|
#elif defined(WOLFSSL_STM32F7)
|
||||||
#include "stm32f7xx.h"
|
#include "stm32f7xx.h"
|
||||||
|
#elif defined(WOLFSSL_STM32F1)
|
||||||
|
#include "stm32f1xx.h"
|
||||||
#endif
|
#endif
|
||||||
#endif /* WOLFSSL_STM32_CUBEMX */
|
#endif /* WOLFSSL_STM32_CUBEMX */
|
||||||
#endif /* WOLFSSL_STM32F2 || WOLFSSL_STM32F4 || WOLFSSL_STM32F7 */
|
#endif /* WOLFSSL_STM32F2 || WOLFSSL_STM32F4 || WOLFSSL_STM32F7 */
|
||||||
|
Reference in New Issue
Block a user