# Error in vTaskPlaceOnEventList

**URL:** <https://forums.freertos.org/t/error-in-vtaskplaceoneventlist/4261>\
**Category:** Kernel\
**Created:** [March 29, 2010, 3:26pm UTC](https://forums.freertos.org/t/error-in-vtaskplaceoneventlist/4261 "2010-03-29T15:26:15Z")\
**Posts on this page:** 4\
**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:** [March 29, 2010, 3:26pm UTC](https://forums.freertos.org/t/error-in-vtaskplaceoneventlist/4261/1 "2010-03-29T15:26:15Z")

</div>

**[ale82t](https://sourceforge.net/u/ale82t/)** wrote on [Monday, March 29, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/bb8d9154/#a558):

Hi to all,  
using xQueueReceive inside a task for getting events generated from several ISRs that push the queue with xQueueSendFromISR, i saw that a fault occurs on my stm32 board . The error happens when  
the istruction&nbsp;  
pxIndex-\>pxNext-\>pxPrevious = ( volatile xListItem \* ) pxNewListItem  
in vListInsertEnd called by&nbsp; vTaskPlaceOnEventList  
is executed few times. Why a memory access violation to the&nbsp; pxIndex-\>pxNext-\>pxPrevious location happens ?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 29, 2010, 3:38pm UTC](https://forums.freertos.org/t/error-in-vtaskplaceoneventlist/4261/2 "2010-03-29T15:38:31Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Monday, March 29, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/bb8d9154/#03e7):

Probably a problem with interrupt priority assignments.

Check the priority of all interrupts that use the FreeRTOS API are set to below configMAX\_SYSCALL\_INTERRUPT\_PRIORITY (being below means having a higher value, so priority 255 is below priority 0). Next check that when you set the priority of the interrupt you are passing in the priority value in the way that the function expects. Some functions that set interrupt priorities expect the value to be passed in the least significant bits, while others expect the value to be shifted to the highest priority bits.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 29, 2010, 4:25pm UTC](https://forums.freertos.org/t/error-in-vtaskplaceoneventlist/4261/3 "2010-03-29T16:25:46Z")

</div>

**[ale82t](https://sourceforge.net/u/ale82t/)** wrote on [Monday, March 29, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/bb8d9154/#f997):

thanks for your answer. I’m using freeRTOS on Cortex M3 so configMAX\_SYSCALL\_INTERRUPT\_PRIORITY is set at the value 191(equivalent to 0xb0, or priority 11) and interrupts are set at the value 14. Through a led i saw i execute that function more than 250 times,so a part of a priority problem, are there other reasons for which i have a bus/hardfault?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 31, 2010, 7:10am UTC](https://forums.freertos.org/t/error-in-vtaskplaceoneventlist/4261/4 "2010-03-31T07:10:15Z")

</div>

**[ale82t](https://sourceforge.net/u/ale82t/)** wrote on [Wednesday, March 31, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/bb8d9154/#cc13):

I resolved this problem.I had an old version of FreeRTOS(5.4.2) with the version 6.0.4 i don’t have this problem.
