FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [December 2009 Threads] PIC32MX795F512L portSAVE_CONTEXT errorsPosted 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 errorsPosted 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 errorsPosted by BLo on December 10, 2009 That fixed it! Thanks!
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|