FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [August 2007 Threads] Undefined Handler - STR711Posted by velososcooby on August 26, 2007 Hello,
I'm getting an undefined handler on vPortStartFirstTask(). It happens when "SUBS PC, LR, #4" executes... I've checked and MCU is in supervisor mode. I'm using STR711FR0.
Can anyone help me?
Tks, velososcooby
RE: Undefined Handler - STR711Posted by Dave on August 27, 2007 Can you be more specific? You are going into a default interrupt handler, or you are going into the undefined processor mode?
In the former case you will have to determine the source of the interrupt. Which interrupts do you configure prior to starting the first task.
I have no experience of the latter case other than to know the undefined processor mode is something to do with interfacing coprocessors so if you go into this state something very bad has happened.
RE: Undefined Handler - STR711Posted by velososcooby on August 27, 2007 I'm going into the undefined processor mode. I'm using FreeRTOS example and I didn't configure other interrupt source than wdg, configured by freertos. The tasks are created correctly but when restoring context of first task the MCU going into undefined mode. SUBS PC, LR, #4 must jump for the first task and copy SPSR to CPSR, ok? If I substitute that by SUB PC, LR, #4 it jumps for the task but stay in supervisor mode, don't enable interrupts and executes the first task forever.
Should I try recover task CPSR without enable interrupts? It doesn't resolve the problem but can show us if the it is wdg interrupt.
Tks
RE: Undefined Handler - STR711Posted by velososcooby on September 1, 2007 The CPSR created for my task was setting THUMB bit and causing the undefined processor mode. So, I change it by setting thumb bit to 0.
Tks
RE: Undefined Handler - STR711Posted by sotd on September 1, 2007 That something was probably having "-D THUMB_INTERWORK" defined in your makefile.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|