Skip to content

Using STM32L475 MCU with FreeRTOS kernel. BCM43362 wifi driver using wiced sdk,ported thirdparty framework LVGL LWIP FATFS and eclipse/mqtt.

License

Notifications You must be signed in to change notification settings

AirMaxSys/stm32l475_freertos_iot

Repository files navigation

stm32l475_freertos_iot

Development environment

Keil

  • Toolchain: MDK-ARM
  • Toolchain version: 5.29.0.0
  • Compiler: ArmClang
  • Compiler version: 6.13.1

GNU

  • Toolchain: GCC
  • Build system: CMake Makefile

RTOS

FreeRTOS synopsis

FreeRTOS port

  • Get FreeRTOS kernel source code.

  • In FreeRTOS-kernel/portable directory, finding appropriate port.c and portmacro.h files. Firstly, enter the next level directory according to the toolchain you use. In my case, we use ArmClang compiler, goto ARMClang subdirectory find Use-the-GCC-ports.txt file that means we should use GCC portable files. So enter the GCC subdurectory. Secondly, enter the next subdirectory according to the MCU/MPU architecture, in my case, use ARM cortex-M4 MCU so entern the ARM_CM4F and get port.c and portmacro.h files.

  • Choosen one memory management algorithm. In the FreeRTOS-kernel/portable/MemMang directory has 5 kinds of algorithms. In most of case heap_4.c is a good choice.

  • Get FreeRTOSConfig.h file. In FreeRTOS github repositories can find many usage demo, according to your toolchain and MCU/MPU architecture entern one appropriate demo and get the FreeRTOSConfig.h file.

  • Configure RTOS. Make sure the following macros are defined in FreeRTOSConfig.h file. Other customisation configuration options can refer to FreeRTOS configuration website.

#define xPortPendSVHandler PendSV_Handler
#define vPortSVCHandler SVC_Handler
#define xPortSysTickHandler SysTick_Handler

About

Using STM32L475 MCU with FreeRTOS kernel. BCM43362 wifi driver using wiced sdk,ported thirdparty framework LVGL LWIP FATFS and eclipse/mqtt.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages