What is the value of ucCurrentPriority? Can you determine which interrupt are you in? Seems like you are calling a FreeRTOS API from an ISR priority of which is too high. See my this response which explains which ISRs can call FreeRTOS APIs: Understanding priority levels of ISR and FreeRTOS APIs - #16 by aggarg
Thanks.