Search found 3 matches

by ManWithACrowbar
Fri Dec 19, 2025 6:34 pm
Forum: STM32 Support
Topic: STM32F103C8T6 I2C halting with "priority prder violation"
Replies: 4
Views: 5035

Re: STM32F103C8T6 I2C halting with "priority prder violation"

I found the issue, appearently I forgot to divide sizeof of int array by sizeof(int), which caused loop to go over a huge chunk of RAM, likely corrupting ready list in the process. Thank you, please close the thread.
by ManWithACrowbar
Fri Dec 19, 2025 4:17 pm
Forum: STM32 Support
Topic: STM32F103C8T6 I2C halting with "priority prder violation"
Replies: 4
Views: 5035

Re: STM32F103C8T6 I2C halting with "priority prder violation"

Thank you for your reply. State checking is already enabled and doesn't seem to fire (as I understand, it is supposed to halt system in case of a context violation, but halt happens from here:
#0 chSysHalt (
reason=reason@entry=0x8006e78 <__func__.4> "chSysUnlock"&#41;
at /home/portia_labiata ...
by ManWithACrowbar
Fri Dec 19, 2025 2:20 pm
Forum: STM32 Support
Topic: STM32F103C8T6 I2C halting with "priority prder violation"
Replies: 4
Views: 5035

STM32F103C8T6 I2C halting with "priority prder violation"

Hello, everyone. I was trying to implement a simple I2C scanner using ChibiOS v. 7.0.5 on STM32F103C8T6 using custom build environment (CMake-based). I ran into issue, when I try to scan the bus, chSysUnlock() in i2cReleaseBus fails on assert "priority order violation". I do not understand, what am ...