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

freeRTOS dsPIC demo shuts down after 2 mins

Posted by John Baker on August 31, 2009
The dsPIC demo shuts down after about 2 minutes and 20 seconds. No error messages, just the message on the LCD screen every 20 seconds: "80 ns max jitter." Is this shutdown to be expected and should the jitter update be every 20 secs?

Also I can't find where ulBaudRate is defined. Any ideas?
Thanks!

RE: freeRTOS dsPIC demo shuts down after 2 mi

Posted by Dave on August 31, 2009
I don't know what you mean by shuts down, but the best thing you can do is stop it on the debugger to see what it is doing. The standard demo applications normally write to the lcd ever 3 or 5 seconds.

RE: freeRTOS dsPIC demo shuts down after 2 mins

Posted by John Baker on August 31, 2009
I mean that the demo appears to stop and reverts to the stop condition, waiting for me to click the start arrow. Then I can click the start arrow and restart the demo app. Then after another 2 mins and 20 secs, the demo stops running and again reverts to the stop condition, awaiting the start arrow to be clicked.

Yes, I had expected the LCD to be updated every 4 seconds but I see it being updated every 20 seconds with the 80 ns max jitter message updating every 20 seconds, alternating to the top and bottom lines. So it appears to me that it's updating at 1/5 the expected rate.

Thanks!

RE: freeRTOS dsPIC demo shuts down after 2 mi

Posted by Richard on August 31, 2009
Could it just be that you have the configuration fuses set incorrectly? The PIC24 demo is configured to allow the MPLAB IDE setup the fuses. If you have turned that off or changed the configuration it might not execute at the correct speed.

Regards.

RE: freeRTOS dsPIC demo shuts down after 2 mi

Posted by John Baker on August 31, 2009
Yes, Richard, that's at least part of the problem. The config bits were set wrong with the primary oscillator turned off. I wasn't aware of these settings, instead expecting some board jumpers. So hopefully that will fix the 1/5 speed problem but I haven't had a chance to see if the demo shuts down after X seconds. Would the oscillator setting affect that too, or just speed up the shutdown?

Thanks!

RE: freeRTOS dsPIC demo shuts down after 2 mi

Posted by John Baker on September 1, 2009
My problems with the dsPIC shut-down in 2-1/3 minutes and the low-speed operation are now corrected. The shut-down problem was from the WatchDog timer and low-speed was an incorrect oscillator, both from faulty settings of the configuration bits. So it looks promising now but have to get the serial I/O working next.

Thanks for the suggestions Dave and Richard!


[ 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