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

RTOS for dsPIC30F3011

Posted by Dharmesh Mehta on September 12, 2009
FreeRTOS for dsPIC is already available for dsPIC p33FJ256GP710.
I want to use the same for dsPIC30F3011.
I encountered this error:

port.c: In function 'prvSetupTimerInterrupt':

port.c:275: error: 'TCON_16BIT' has no member named 'TCKPS0'

port.c:276: error: 'TCON_16BIT' has no member named 'TCKPS1'

Kindly mention how to get through this.
I have made changes in the RTOSConfig.h so as to include the IC dsPIC30F3011.

RE: RTOS for dsPIC30F3011

Posted by Mike Hibbett on September 12, 2009
The demo code was written for the p33FJ256GP710, and now you are using a different processor. Have you check to see if the peripherals used on the original processor exist on your processor?

At a guess I would say that the p33 has a different set of register names. You might find that the timer being used does not exist on your processor, so you will need to re-write the code to use whatever timer exists on your processor.

Although Microchip are very good at re-using peripherals across different processor types, at the end of the day the two processors are different and you cannot expect them to have the same peripherals, or use the same register names.

You are not the first to find this - I come across it all the time!

Mike

RE: RTOS for dsPIC30F3011

Posted by Richard Damon on September 12, 2009
On some processors Microchip doesn't define those individual bits of the timer control register. They do define at TCLK_PS field that has both of these bits, so you need to change the two statements into one that set them together.

RE: RTOS for dsPIC30F3011

Posted by Dharmesh Mehta on September 17, 2009
Thank You for your earlier posts. They turned out to be quite helpful.
Going down the line, I encountered this error in case of DSPIC p33f3011:

**..\..\source\portable\MemMang\heap_1.o: Link Error: Could not allocate section .nbss, size = 5122 bytes, attributes = bss near
Link Error: Could not allocate data memory**

I tried configuring the port for DSPIC p30f6010/6011, but again, I faced this error.
Can you kindly help?

RE: RTOS for dsPIC30F3011

Posted by Dharmesh Mehta on September 17, 2009
I forgot to mention this..
p30f3011 has only 1kb of RAM, p33fj256gp710 (for which the RTOS was ported, has about 30K RAM) and p33f6010 has 8k RAM

RE: RTOS for dsPIC30F3011

Posted by Richard Damon on September 17, 2009
If you want to use a processor with only 1k, you are going to need to be very careful how you allocate it. It looks like you have heap1 set up to use 5k for the RTOS heap, which is more memory than you have.


[ 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