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

Undefined Handler - STR711

Posted 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 - STR711

Posted 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 - STR711

Posted 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 - STR711

Posted 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 - STR711

Posted by sotd on September 1, 2007
That something was probably having "-D THUMB_INTERWORK" defined in your makefile.


[ 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