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 on PIC32 Starter Kit

Posted by Hector on April 21, 2010

Hello,

I'm new with using RTOSes.

I need to implement a PIC32MX with FreeRTOS for our current project.

For the tests, all I have is a PIC32 Ethernet Starter Kit ( PIC32MX795F512L processor).

Since FreeRTOS comes with a demo project for the Explorer 16 developpement board with a plug in module (PIM) containing a PIC32MX360F512, could some one guide me on how to adapt the demo to the PIC32 Ethernet Starter Kit?

Thank you

RE: FreeRTOS on PIC32 Starter Kit

Posted by Dave on April 21, 2010
The PIC32 ebook comes with projects that run on the USB2 starter kit. I would suggest starting with those.

RE: FreeRTOS on PIC32 Starter Kit

Posted by Hector on April 21, 2010
Thank you for the information.
For simple applications, it should make no difference which one on the Starter Kits I use.

RE: FreeRTOS on PIC32 Starter Kit

Posted by Dave on April 21, 2010
I was not suggesting you change starter kits. I was just suggesting you start with a project that is already configured to run on one of the new starter kits. The new PIC32 devices have at least one (maybe more?) extra configuration bits that must be set up for proper operation. If you start with a project that already has this configured you won't get any issues.


RE: FreeRTOS on PIC32 Starter Kit

Posted by Hector on April 27, 2010
Hello,

I tried the RTOS demo on my PIC32 Ethernet Starter Kit.
Most calls in the main.c are commented.
I just keep:


int main( void )
{
prvSetupHardware();

vStartLEDFlashTasks( tskIDLE_PRIORITY );

vTaskStartScheduler();

return 0;
}


I did the necessary changes in ParTest.c (PORTA becomes PORTD and the JTAG port is enabled so debugging is possible).

When the program is running in "Animate" mode (automatic Step by step) the first LED (RD0, task priority of 0) does blink,
but the program just keeps doing the "for(;;)" loop in flash.c
No matter how long I wait, no other task stops this.

Any ideas of what is the problem?

Thank you

RE: FreeRTOS on PIC32 Starter Kit

Posted by Richard on April 27, 2010
What did you use as the starting point for the project? The code form the FreeRTOS download or the code that comes with the PIC32 book.

If the former, then did you add the extra

#pragma config FSRSSEL = PRIORITY_7

line?

Regards.

RE: FreeRTOS on PIC32 Starter Kit

Posted by Hector on April 28, 2010
Thnak you.

The three LEDs are now blinking.

I would like to understand why the line #pragma config FSRSSEL = PRIORITY_7 is necessary, tough.

RE: FreeRTOS on PIC32 Starter Kit

Posted by Richard on April 28, 2010
To quote a message from several days ago in this thread:

“I was not suggesting you change starter kits. I was just suggesting you start with a project that is already configured to run on one of the new starter kits. The new PIC32 devices have at least one (maybe more?) extra configuration bits that must be set up for proper operation. If you start with a project that already has this configured you won't get any issues.”

RE: FreeRTOS on PIC32 Starter Kit

Posted by Hector on April 28, 2010
I see

Thank you for helping me

RE: FreeRTOS on PIC32 Starter Kit

Posted by WA4SWJ on April 22, 2011
Keydmer,

From the datasheet for the PIC32MX795 this command sets the interrupt priority for the shadow register. Sets bits 18-16 of the device configuration word 3.

Hope this helps.

Regards,

Ed Long


[ 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