Search found 29 matches

by fotis
Tue Sep 11, 2018 8:35 pm
Forum: Bug Reports
Topic: Priority order violation - Asserion fails Topic is solved
Replies: 41
Views: 3674

Re: Priority order violation - Asserion fails Topic is solved

No, I mean that according to ARM priority grouping must be set to 0 to be disabled, but Chibios sets it to 2, which I hope is equivalent.

I am using gcc version 6.3.1 20170215.
by fotis
Tue Sep 11, 2018 7:14 pm
Forum: Bug Reports
Topic: Priority order violation - Asserion fails Topic is solved
Replies: 41
Views: 3674

Re: Priority order violation - Asserion fails Topic is solved

Sorry, I was once again travelling abroad for business... Now I have some time for my project again. I spent some time investigating about the interrupts. I added some debug prints in my chSysHalt handler, so I can get exactly all NVIC settings when the assertion fails. As I see all settings are the...
by fotis
Sat Jul 14, 2018 1:30 pm
Forum: Bug Reports
Topic: Priority order violation - Asserion fails Topic is solved
Replies: 41
Views: 3674

Re: Priority order violation - Asserion fails Topic is solved

Unfortunatelly it seems that either the priority of SysTick is the issue.

I have set:
SVCall to 1
PendSV to 2
SysTick to 3
All other interrupts to 5

I just had one more occurrence of the problem.
Any other ideas on what to check?
by fotis
Thu Jul 05, 2018 10:23 pm
Forum: Bug Reports
Topic: Priority order violation - Asserion fails Topic is solved
Replies: 41
Views: 3674

Re: Priority order violation - Asserion fails Topic is solved

I just realized that I make use of a specific I-class function. Within my SysTick handler. Unlocking the system will cause a reschedule, so I don't think that this is the problem. My handler: void SysTick_Handler() { CH_IRQ_PROLOGUE(); chSysLockFromISR(); chSysTimerHandlerI(); chSysUnlockFromISR(); ...
by fotis
Thu Jul 05, 2018 10:20 pm
Forum: Bug Reports
Topic: Priority order violation - Asserion fails Topic is solved
Replies: 41
Views: 3674

Re: Priority order violation - Asserion fails Topic is solved

Yes I do have interrupts. My start-up code sets the priority for ALL interrupts to 5. Then Chibios starts which sets: NVIC_SetPriorityGrouping(CORTEX_PRIGROUP_INIT); //CORTEX_PRIGROUP_INIT = 2 NVIC_SetPriority(SVCall_IRQn, CORTEX_PRIORITY_SVCALL); //CORTEX_PRIORITY_SVCALL = 1 NVIC_SetPriority(PendSV...
by fotis
Thu Jul 05, 2018 7:15 pm
Forum: Bug Reports
Topic: Priority order violation - Asserion fails Topic is solved
Replies: 41
Views: 3674

Re: Priority order violation - Asserion fails Topic is solved

Regarding the I-Class functions (and generally the correct API usage), shouldn't the checks catch this?

I think I have all checks enabled.
by fotis
Thu Jul 05, 2018 7:13 pm
Forum: Bug Reports
Topic: Priority order violation - Asserion fails Topic is solved
Replies: 41
Views: 3674

Re: Priority order violation - Asserion fails Topic is solved

Assuming that's lwIp you're running, I have a vague recollection of a similar problem. In my case it was down to insufficient stack allocation for one of the tasks; a networking-related one IIRC. (The Chibi plugin for Eclipse will show you stack usage) Note that you can actually use the debugger to...
by fotis
Wed Jun 27, 2018 6:33 pm
Forum: Bug Reports
Topic: Priority order violation - Asserion fails Topic is solved
Replies: 41
Views: 3674

Re: Priority order violation - Asserion fails Topic is solved

I have checked this multiple times, but it didn't help me.

Either way, in case it is helpful for you, here you are.

Image
by fotis
Tue Jun 26, 2018 6:52 pm
Forum: Bug Reports
Topic: Priority order violation - Asserion fails Topic is solved
Replies: 41
Views: 3674

Re: Priority order violation - Asserion fails Topic is solved

Hi,

this still bugs me. I couldn't get a solution, and then I left it due to lack of free time.

No I am back at it. I tried again to track this down with no luck.

Can you please provide me some info on how to get a stack trace, and upload it here?
by fotis
Wed Jan 31, 2018 11:19 pm
Forum: Bug Reports
Topic: Priority order violation - Asserion fails Topic is solved
Replies: 41
Views: 3674

Re: Priority order violation - Asserion fails Topic is solved

The assertion fails when another thread (of a lower priority), manipulates a mutex (either locks it or unlocks it). If by stack trace you mean the functions call stack, as displayed in Eclipse debug view, there is nothing suspicious there. If you mean anything else, please explain me where to find it.

Go to advanced search