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

vApplicationGeneralExceptionHandler: when?

Posted by Sander Huijsen on May 28, 2008
Hi,

I apologize for the rather blunt subject, but I couldn't fit in any more characters. :-)

I'm fairly new at using FreeRTOS, and I started out by changing the demo for the PIC32 to work on my own board, which is the PIC32 Starter Kit. For that purpose, I just disabled the LCD code, and changed the LED code to use PortD.

I succeeded in getting the demo running for a short while (I see all three LEDs on my board flashing with different intervals). But, after about 4-5 seconds, the program crashes (?) in the function vApplicationGeneralExceptionHandler(), which is simply an endless loop.

Can anyone explain to me why this would happen? How should I go about to handle this situation?

Thanks in advance.

Regards,
sander

RE: vApplicationGeneralExceptionHandler: when

Posted by Sander Huijsen on May 28, 2008
Here is some more information:

ulCause = 0x1080081C
ulStatus = 0x00000403

Am I right in assuming that I couldn't change my original post?

Regards,
Sander

RE: vApplicationGeneralExceptionHandler: when

Posted by PICmeup on May 28, 2008
0x1080081C is I think a bus error on load or store. This means a could be RAM problem. First thing to check is that the stack is ok. Try making the stack bigger in the tasks and check that the ISR stack is big enough. ISR stack size is set in FreeRTOSConfig.h. Also try making configMINIMAL_STACK_SIZE in same header file a little bigger. Does this fix the problem.

RE: vApplicationGeneralExceptionHandler: when

Posted by Sander Huijsen on May 28, 2008
Hi,

thanks for your suggestions. I tried increasing both ISR stack size and configMINIMAL_STACK_SIZE. The first doesn't improve the situation. The second actually makes the application not work anymore if I increase the value even with a bit. The default value is 230, and if I go above 260 (the highest I tried), the application doesn't run correctly.

Can you point me to where I can find out the Cause values that I might encounter? Perhaps in the PIC32 user manual?

Thanks,
Sander

RE: vApplicationGeneralExceptionHandler: when

Posted by PICmeup on May 28, 2008
Cause values are in the MIPS SUM (software user manual). google MD00249-2B-M4K

RE: vApplicationGeneralExceptionHandler: when

Posted by Sander Huijsen on May 28, 2008
Thanks, I found it. :)


[ 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