Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner