Quality RTOS & Embedded Software

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




Loading

ST 32f429I-Discovery wrong delay timing

Posted by fabio-it on January 16, 2015

Hi guys, I'm trying to use freeRTOS 8.1.2 with the aforementioned board but till now I only have bad timings. I've attached my current configuration for freeRTOS

any idea?


ST 32f429I-Discovery wrong delay timing

Posted by edwards3 on January 16, 2015
#define configCPU_CLOCK_HZ ( SystemCoreClock )

Are you setting SystemCoreClock anywhere? To do that you normally call SystemCoreClockUpdate.

Attachments

freertosconfig.h (7801 bytes)

ST 32f429I-Discovery wrong delay timing

Posted by fabio-it on January 16, 2015

Yes, I've checked and it correctly returns 180000000 (180MHz). I'm using the Standard Peripheral Driver from ST website, no problem at all with STM32F407 cpu

Attachments

freertosconfig.h (7801 bytes)

ST 32f429I-Discovery wrong delay timing

Posted by edwards3 on January 16, 2015

Is SystemCoreClockUpdate() setting up the clock, or just setting SystemCoreClock to 180000000. If it is not setting up the clock does anything set up the clock. Maybe it is done before main() is called.

My guess is the clock is not actually running at 180000000.

Attachments

freertosconfig.h (7801 bytes)

ST 32f429I-Discovery wrong delay timing

Posted by fabio-it on January 16, 2015

SystemCoreClock is 168000000 at default, after initialization becames 180000000. I'm really stuck in this, seems like if the clock is about 4 times slower. I was wondering, on which clock the tick frequency is calculated? Could it be a PCLK1 or PCLK2?

Attachments

freertosconfig.h (7801 bytes)

ST 32f429I-Discovery wrong delay timing

Posted by fabio-it on January 16, 2015

Solved, the default main clock, as you said, was different. FIXED

Thanks a lot

Attachments

freertosconfig.h (7801 bytes)


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




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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

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

OpenRTOS and SafeRTOS