Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner