# vApplicationGeneralExceptionHandler: when?

**URL:** <https://forums.freertos.org/t/vapplicationgeneralexceptionhandler-when/2605>\
**Category:** Kernel\
**Created:** [May 28, 2008, 7:40pm UTC](https://forums.freertos.org/t/vapplicationgeneralexceptionhandler-when/2605 "2008-05-28T19:40:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 28, 2008, 7:40pm UTC](https://forums.freertos.org/t/vapplicationgeneralexceptionhandler-when/2605/1 "2008-05-28T19:40:19Z")

</div>

**[sander\_huijsen](https://sourceforge.net/u/sander_huijsen/)** wrote on [Wednesday, May 28, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/73909409/#9128):

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

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 28, 2008, 7:43pm UTC](https://forums.freertos.org/t/vapplicationgeneralexceptionhandler-when/2605/2 "2008-05-28T19:43:02Z")

</div>

**[sander\_huijsen](https://sourceforge.net/u/sander_huijsen/)** wrote on [Wednesday, May 28, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/73909409/#9128/9576):

Here is some more information:

ulCause = 0x1080081C  
ulStatus = 0x00000403

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

Regards,  
Sander

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 28, 2008, 8:06pm UTC](https://forums.freertos.org/t/vapplicationgeneralexceptionhandler-when/2605/3 "2008-05-28T20:06:51Z")

</div>

**[picmeup](https://sourceforge.net/u/picmeup/)** wrote on [Wednesday, May 28, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/73909409/#9128/9576/2665):

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.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 28, 2008, 8:36pm UTC](https://forums.freertos.org/t/vapplicationgeneralexceptionhandler-when/2605/4 "2008-05-28T20:36:03Z")

</div>

**[sander\_huijsen](https://sourceforge.net/u/sander_huijsen/)** wrote on [Wednesday, May 28, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/73909409/#9128/8d07):

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

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 28, 2008, 8:46pm UTC](https://forums.freertos.org/t/vapplicationgeneralexceptionhandler-when/2605/5 "2008-05-28T20:46:25Z")

</div>

**[picmeup](https://sourceforge.net/u/picmeup/)** wrote on [Wednesday, May 28, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/73909409/#9128/8d07/a465):

Cause values are in the MIPS SUM (software user manual). google MD00249-2B-M4K

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 28, 2008, 9:04pm UTC](https://forums.freertos.org/t/vapplicationgeneralexceptionhandler-when/2605/6 "2008-05-28T21:04:49Z")

</div>

**[sander\_huijsen](https://sourceforge.net/u/sander_huijsen/)** wrote on [Wednesday, May 28, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/73909409/#9128/ac08):

Thanks, I found it. 🙂
