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 port for MPLAB/PIC18F452

Posted by joconnor37 on January 2, 2008
I have FreeRTOS demo project building successfully for 18F452 in MPLAB, programming successfully into an 18F452 development board from Forest Electronics Development(FED), but getting "little action" on the board. The FreeRTOS demo project should flash LEDs on PORTD but doesn't. In starting to dig deeper into the code, something immediately confuses me - partest.h defines:-

#define partstDEFAULT_PORT_ADDRESS ( ( unsigned portSHORT ) 0x378 ) - I presume this is

PORTD, PORTD<7:4> drive the 4 LEDs on the FED development board. But the Microchip datasheets
give the address of PORTD as F83h. I cannot complete the reference chain between the #define statement above, and actual PORTD - so maybe the demo project is not asking PORTD to do anything at present....?

Has anyone else worked with this particular port of FreeRTOS? Any advice gratefully accepted as I am probably missing something simple here.

Regards,

John O'Connor

RE: FreeRTOS port for MPLAB/PIC18F452

Posted by Richard on January 2, 2008
The name partest.c is a left over from the original "PARallel port TEST", and the 0x378 is the default address used to access the parallel port on a PC compatible system. I didn't realise the definition was in the partest.h file, it should be moved to the FreeRTOS/Demo/PC/Partest/Partest.c file as this is the only file to which it is relevant, sorry for any confusion caused. It will not be used in the PIC code.

Look at the file FreeRTOS/Demo/PIC18_MPLAB/Partest/partest.c to see how the LEDs are accessed on the FED hardware.

Its been quite I while since I fired up the FED board. My first suggestion would be to double check that all the fuse settings are correct.

Regards.

RE: FreeRTOS port for MPLAB/PIC18F452

Posted by joconnor37 on January 2, 2008
Thanks 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