Weather application for STM32L
The example uses the embedded temperature and pressure sensors of the STM32L152 EvoPrimer target board.
It runs in two modes, stand alone or inserted into a EvoPrimer base, and shows the STM32L Low Power capacities.
The aim of this example is also :
- to show how use the ST library for Low Power modes of the STM32L152,
- to show how to build a CircleOS application with several sources files, thanks to a library application,
- to show how to use the SX8724 Semtech signal conditioner.
(See the Readme.tx file in the project root directory)
Stand alone mode :
When the target board is energized outside the base, the application starts in "Stand Alone" mode, without CircleOS.
At the configured period, the STM32L is waked up by the RTC, acquires the current temperature and pressure values, then saves it into the embedded STM32L EEPROM, refresh the local LCD, and finally enters in Low Power "STOP" mode.
Up to 180 values can be logged into the memory, managed as a circular buffer.
In base mode :
When the target board is inserted into the base, CircleOS runs in nomal mode. You can lauch the application "Weather" thanks to the menu.
The application allows to plot the logged data from the EEPROM if any (Log mode), to plot realtime acquisition (Real Time mode) or to configure the next acquisition campaign.
- The "Evo_Circle_STM32L.elf" and "FAT_OP4.elf" files location depend on your Ride installation; delete them from the projet and add it back before building the project.
- This example also can use the SWV functionality for debugging.
Check that SWO is enabled in "RLink Configuration/Advanced Options/SWO configuration" and CPU clock equals 32000 KHz (for SPEED_VERY_HIGH configuration).
Please refer to the Ride7 ARM Kit documentation for how to configure the SWV debug functionnality at the Ride side.
- For more information about the Semtech signal conditioner, see : http://www.semtech.com/