Quality RTOS & Embedded Software

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


Loading

PIC32 low SystemClock causes demo failures

Posted by Ralf Anders on January 17, 2009
Hi,
I have recognized the following certain behavior in the PIC32-demo-project:
The original project works with 80Mhz-SysCLK & 40MHz-PBCLK.
This is realized by the following lines in main.c:
#pragma config FPLLMUL = MUL_20, FPLLIDIV = DIV_2, FPLLODIV = DIV_1, FWDTEN = OFF
#pragma config POSCMOD = HS, FNOSC = PRIPLL, FPBDIV = DIV_2
// SysCLK = 8 / FPLLIDIV * FPLLMUL / FPLLODIV
The compiler itself gets this information by the following lines in FreeRTOSConfig.h:
#define configCPU_CLOCK_HZ( ( unsigned portLONG ) 80000000UL )
#define configPERIPHERAL_CLOCK_HZ( ( unsigned portLONG ) 40000000UL )

I lowered the CPU-Clock by setting FPLLODIV = DIV_2 // DIV4, DIV8, ...
(and customizing FreeRTOSConfig.h)
The PB-Clock is in each case half of the CPU-Clock.

The demo works with 80/40MHz (original settings). It works with 40/20MHz too.
But with 20/10MHz and 10/5MHz failures are reported via LCD-display:
"Error: Gen Q" , "Error: Blck time" ...

Is there anything known?

ralf

RE: PIC32 low SystemClock causes demo failure

Posted by Richard on January 17, 2009
The demos do all sorts of the self checks - some more detailed than others. Some will check that an event occurred within the expected time. If you slow the clock right down then the resolution of time measurement will decrease and some tasks will start to think they have missed deadlines. It is not something to worry about, you have just changed the execution environment from that the tasks were expected to find the selves operating under.

Regards.

RE: PIC32 low SystemClock causes demo failures

Posted by Ralf Anders on January 17, 2009
Thanks for Your answer.
I checked low clock rate under the aspect of minimal power consumption...
But I have another certain behavior... I'll start a new thread

ralf


[ 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