FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [March 2014 Threads]
Hello,
A general question regarding FreeRTOS MPU for Cortex M microcontrollers. I understand that using FreeRTOSMPU a task can be created in restricted mode which restricts the stack to the memory area defined for that particular task. What I would like to ask is that when and if any task tries to access outside of the defined task or when some memory violation happens how can it be detected? Is there a macro defined for this scenario where the user may generate some trigger like setting an output or something to get a notification?
Regards,
Owais.
if any task
tries to access outside of the defined task or when some memory
violation happens how can it be detected?
A memory fault occurs, which causes the Cortex-M core to execute the
MemManage fault handler.
The MemManage fault handler is installed in the interrupt vector table
(exception type 4 which is at offset 0x10) and should be provided by the
application. The FreeRTOS-MPU demos provide a very simple
implementation that just unwinds the stack to find the instruction that
generated the fault.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.