Running restrictedtask prefetch entry happening

sarathar1991 wrote on Sunday, June 10, 2018:


i have created a 3 task in which one is the restrictedtask and rest teo are noraml task
ie using xtaskcreate and xtaskcreaterestricted but from the restricted task instead
of running its going to prefetch entry ,whats the reason for it.


rtel wrote on Sunday, June 10, 2018:

I would need a lot more information on your set up to get close to an
accurate answer for your particular use case, but in general terms, if
you have created a restricted task then you limiting the memory the task
can access and the instructions the task can executed. If that task
hits an abort (prefetch in this case) then I assume it is accessing
something or executing something it does not have the required
privileges to do. Did you create the task privileged or unprivileged?
Can you simply step through the code to see which instruction is
triggering the abort?