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


Stuck in Dummy_Handler

Posted by DiBosco on January 21, 2013
I've started adding FAT file support to FreeRTOS, on top of a main_blinky setup. It works without the FAT code, but when I add a thread to start running code already tested on run-to-complete it jumps to the Dummy_Handler. It says this is for unused IRQs

I've added this very basic thread so far:

void FATFileProcessing( void *pvParameters )

/* Just to avoid compiler warnings. */
( void ) pvParameters;

FRESULT rc;/* Result code */
DIR dir;/* Directory object */
FILINFO fno;/* File information object */
char FileName[13];
unsigned int i;
FATFS Fatfs;/* File system object */
unsigned long SS;


f_mount(0, &Fatfs);
disk_ioctl (0,GET_SECTOR_COUNT,&SS);

rc = f_readdir(&dir, &fno);// Read a directory item

while (1)



Doesn't look to me like there are any HSMCI interrupts enabled, I certainly didn't enable them previously. If I take out this code, it's fine and doesn't stop in the Dummy_Handler();

It falls over in f_readdir(&dir, &fno);

If I take that call out it is fine. It's odd because there's no hardware initialisation in there at all! That is completely abstracted from the hardware, it is just examining previously created directory and file structures. I've given 4k of stack to this routine, so I assume it's nothing to do with running out of memory.

Anyone able to suggest what might be causing it or tell me how I can ascertain what peripheral's interrupt has gone off please?


RE: Stuck in Dummy_Handler

Posted by Richard on January 21, 2013
Assuming InitialiseSD() does not enable any interrupts....you are probably hitting the hard fault handler. Is Dummy_Hander() installed as the hard fault handler?



[ 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