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

FIQ Error

Posted by mayi on March 18, 2008
Hi all,

Controller: AT91SAM7S256
Dev Board: AT91SAM7S-EK
Compiler: IAR 5.11


I have downloaded demo project provided for the above said configuration, compiled and transferred it to the target using ATMEL SAM-ICE (J-Link). But when I say run it hangs when it tries to execute the following line

orr r0,r0,#FIQ_MODE ; Set FIQ mode bits


and comes to the following section of the code

__und_handler:
ldr pc,[pc,#+24] ;; Undefined instructions


I guess a interrupt is getting generated. But cant understand it fully.
Looking forward for replies.

RE: FIQ Error

Posted by Dave on March 18, 2008
This is in the startup code right, before main() is called? All it does is set r0 so nothing that could cause it to jump to the FIQ handler. Does the program hang when you run it without the debugger also? It could be the debugger is not initializing the micro correctly so there is an FIQ pending. I don't think this can be the case though as setting the processor into FIQ mode is very different from actually generating an FIQ.

RE: FIQ Error

Posted by Dave on March 18, 2008
more -

I note you are using the S256. Did you change the target device in the project settings to be for this device, and select the correct linker script. I think the demo yo are basing it on is for a SAM7 with less memory.


[ 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