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

PIC32MX795F512L portSAVE_CONTEXT errors

Posted by BLo on December 9, 2009
I was previously using the PIC32MX460F512L device and have just upgraded to the PIC32MX795F512L (128kB of RAM!) and now am having problems with the FreeRTOS port. It appears that the portSAVE_CONTEXT and portRESTORE_CONTEXT cause a bus error. I am using the supplied demo project and commented out all tasks except for the prvCheckTask. Within that task i commented out everything and just made a infinite loop containing a vTaskDelay() call. When the timer interrupt fires it gets to the portSAVE_CONTEXT macro and then this causes a bus error. Any ideas on how to fix this or what could be causing the bus error?

RE: PIC32MX795F512L portSAVE_CONTEXT errors

Posted by Richard on December 9, 2009
These (brand) new PIC32 parts has some extensions which include extra configuration bits. One of the first things to try is adding:

#pragma config FSRSSEL = PRIORITY_7

to the top of main().

Let me know if that doesn't work, there are a couple of other possibilities.

Regards.

RE: PIC32MX795F512L portSAVE_CONTEXT errors

Posted by BLo on December 10, 2009
That fixed it! 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