Username:     
Password:     
             

Projects
STM32L Weather application v1.1
 
This application shows STM32L low power capabilities. It logs and displays temperature and atmospheric pressure.

Code size:20K Author:yrt
Source files included:yes Version:v1.1
Use circleOS:yes (circleOSversion) Creation date:2011-10-03 15:51:56
Hardware modification:no Modification date:2013-07-29 12:09:07
Based on the STM32 Primer:EvoPrimer
   
Downloads:1441 Views:23378
   
Vote:
Average ratings:0/5 (0 rates)

Download:    STM32L-Weather-application-v1.1.zip (409 KB)

Description:

Weather application for STM32L

Introduction :

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.

Application:
(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.

 

 

  Notes :  

  • 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/

Version V1.1

  • Adapted to CircleOS v4.5

Version V1.0

  • First release