Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

UART can't send correct data in low power mode on stm32l151

Posted by hmtsai on March 17, 2016

I want to use uart function on STM32l151. It is ok when MCU run in normal mode. When I set configUSETICKLESSIDLE is 1. The uart can't send the correct data to pc terminal. I use oscilloscope to check uart data timing. If it is normal, the timing is ok. If it is wrong, the time is 1.5 times as long as the normal time. How do I check low power mode process?

Thanks


UART can't send correct data in low power mode on stm32l151

Posted by rtel on March 17, 2016

You would have to check the device data sheet to see the effect on the UART of entering low power mode (for example, its clock may stop), and how long it takes to exit low power mode. However it might be easier just to not enter low power mode while the UART is in use. You can use the pre and post sleep macros to abort entering low power mode.


UART can't send correct data in low power mode on stm32l151

Posted by hmtsai on March 17, 2016

I don't implement the MCU low power mode in FreeRTOS yet. I only use the default portSUPPRESSTICKSAND_SLEEP. Could it affect the uart?

Thanks


UART can't send correct data in low power mode on stm32l151

Posted by rtel on March 17, 2016

Evidence would seem to show that something is effecting the UART - whether that is software or hardware I can't say. Is the UART interrupt driven?


UART can't send correct data in low power mode on stm32l151

Posted by hmtsai on March 17, 2016

I only use USARTSendData. It is one byte function from STM32l151 driver. The timing is wrong in low power mode. Uart has the interrupt to MCU. If the configUSETICKLESS_IDLE is 0, the uart function is ok. So I thing software maybe be the answer. I want to find where could effect the uart.


UART can't send correct data in low power mode on stm32l151

Posted by hmtsai on March 21, 2016

Sorry. I found the wrong. The system clock is difference between in the low power mode and in normal mode.

Thanks


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists