This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM46L852: TI FreeRTOS - Calling portRESET_PRIVILEGE() in a IRQ raise Prefetch Abort

Part Number: RM46L852
Other Parts Discussed in Thread: SEGGER, CCSTUDIO

Hi QJ and Jagadish,

Thanks for your help in the past few days, it is very appreciated.

I finally found out why in "Streaming mode", Segger SystemView makes the TI FreeRTOS port fail.
When we hit "play", an ISR is raised (the CPU is in IRQ mode) to start the recording session.

The problem is: The SEGGER_SYSVIEW_Start function calls MPU_uxTaskGetStackHighWaterMark which ends up resetting to User mode, generating a permission abort.

Here's a video showcasing the problem

Here's the proof that it's a privilege problem using CP15

In your opinion, what would be the best way to solve this problem?

Best regards,
Gabriel