# Pic32mz issues with free RTOS

**URL:** <https://forums.freertos.org/t/pic32mz-issues-with-free-rtos/19206>\
**Category:** Microchip\
**Created:** [February 18, 2024, 3:12pm UTC](https://forums.freertos.org/t/pic32mz-issues-with-free-rtos/19206 "2024-02-18T15:12:52Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![joshzarr](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@joshzarr](https://forums.freertos.org/u/joshzarr)\
**Post date:** [February 21, 2024, 3:02pm UTC](https://forums.freertos.org/t/pic32mz-issues-with-free-rtos/19206/3 "2024-02-21T15:02:30Z")

</div>

This might be a long shot, but maybe give this suggestion a try?

> [@configLIST\_VOLATILE required - Missing configASSERT in listREMOVE\_ITEM](https://forums.freertos.org/t/configlist-volatile-required-missing-configassert-in-listremove-item/16400):
>
> Using the provided sample code for the PIC32 platform and FreeRTOS v202112.00. I ran into an issue in tasks.c when enabling the compiler optimizations (XC32 v4.00 compiler, -O2 optimization). The exception happens in xTaskResumeAll() when the listREMOVE\_ITEM macro tries to remove an item with a null pointer as the container. The macro creates a pointer pxList and de-references it without checking if it is NULL, causing an exception. In my case, it seemed to be caused by an aggressive compiler …

I would be very curious if this helps resolve the problem you are seeing.

---

_[View the full topic](https://forums.freertos.org/t/pic32mz-issues-with-free-rtos/19206)._
