Examples and demos¶
Various examples are provided for fast library evaluation on embedded systems. These are optimized prepared and maintained for
2 platforms, but could be easily extended to more platforms:
WIN32 examples, prepared as Visual Studio Community projects
ARM Cortex-M examples for STM32, prepared as STM32CubeIDE GCC projects
Library is platform independent and can be used on any platform.
There are many platforms available today on a market, however supporting them all would be tough task for single person.
Therefore it has been decided to support (for purpose of examples)
2 platforms only, WIN32 and STM32.
Examples for WIN32 are prepared as Visual Studio Community projects. You can directly open project in the IDE, compile & debug.
Embedded market is supported by many vendors and STMicroelectronics is, with their STM32 series of microcontrollers, one of the most important players. There are numerous amount of examples and topics related to this architecture.
Examples for STM32 are natively supported with STM32CubeIDE, an official development IDE from STMicroelectronics.
You can run examples on one of official development boards, available in repository examples.
Here is a list of all examples coming with this library.
Examples are located in
/examples/ folder in downloaded package.
Check Download library section to get your package.
Simple example, not using operating system, showing basic configuration of the library. It can be also called bare-metal implementation for simple applications
LwMEM library integrated as application memory manager with operating system.
It configurex mutual exclusion object
mutex to allow multiple application threads accessing to LwMEM core functions
LwMEM multi regions¶
Multi regions example shows how to configure multiple linear regions to be applied to single LwMEM instance. It uses simple varible array to demonstrate memory sections in embedded systems.
LwMEM multi instances & regions¶
This example shows how can application add custom (or more of them) instances for LwMEM memory management. Each LwMEM instance has its own set of regions to work with.
LwMEM instances are between each-other completely isolated.