Quality RTOS & Embedded Software

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


Loading

LPC2378 freertos

Posted by sachinwaghmode on December 6, 2016

Trying to convert LPC2129 port rtos code to PLC2378(using keil compiler), for that i changed project startup file and all neccessary changes i did (means changing header file and IC name in project),but still its not working, when i am trying to run code then it hangs at DABt Handler instruction in startup file whose PC=0x0000004C so please suggest to come out of this problem


LPC2378 freertos

Posted by rtel on December 6, 2016

If you changed the start up code then you will probably have replaced the vector table. Did you install the FreeRTOS interrupt handlers?


LPC2378 freertos

Posted by sachinwaghmode on December 6, 2016

Thank you for quick responce This is already available in startup file so i think thereis no need to add interrupt handler still if you suggest to add interrupt handler then please guid me with few words in that way

Vectors LDR PC, ResetAddr
LDR PC, UndefAddr LDR PC, SWIAddr LDR PC, PAbtAddr LDR PC, DAbtAddr NOP ; Reserved Vector ; LDR PC, IRQAddr LDR PC, [PC, #-0x0120] ; Vector from VicVectAddr LDR PC, FIQ_Addr

ResetAddr DCD ResetHandler UndefAddr DCD UndefHandler SWIAddr DCD SWIHandler PAbtAddr DCD PAbtHandler DAbtAddr DCD DAbtHandler DCD 0 ; Reserved Address IRQAddr DCD IRQHandler FIQAddr DCD FIQHandler

UndefHandler B UndefHandler SWIHandler B SWIHandler PAbtHandler B PAbtHandler DAbtHandler B DAbtHandler IRQHandler B IRQHandler FIQHandler B FIQHandler

; Reset Handler

            EXPORT  Reset_Handler

Reset_Handler​


LPC2378 freertos

Posted by rtel on December 6, 2016
You need to install the FreeRTOS handlers. Just copy how it is done in the vector table defined in the start up file included in the project you used as a base.


LPC2378 freertos

Posted by sachinwaghmode on December 6, 2016

and one more thing LPC 2129 Demo code is working and same code i am converting in LPC 2378 in same compiler so i think there should not be interrupt handler issue


LPC2378 freertos

Posted by sachinwaghmode on December 6, 2016

I think you are right, you are talking about changes in port.c file where ISR handlers defined


LPC2378 freertos

Posted by sachinwaghmode on December 7, 2016

LPC2378 freertos

Posted by sachinwaghmode on December 7, 2016

when i am debugging i found after scheduler start program hangs at "DAbt handler" i think it means tick is not working properly so i checked interrupt vector add tables for LPC2129 and LPC2378 and timer initialization also but i am not able to trace exact problem so please help...​


[ 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.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

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