Hello everyone,
I am getting a mutex run time error.
I am using mbed studio (mbed6).
Board is STM32F446RE
Below is my code:
.
.
int main() {
pc.set_baud(115200); //1
printf("...1\n"); //2
wait_us(400000); //3
Init_HW(&gpio); //4
wait_us(100); //5
.
.
}
Line 4 calls setup some GPIO and PWM then following line:
NVIC_EnableIRQ(TIM1_UP_TIM10_IRQn);
When the Nested Vector Interrupt Enable line is called during running,
I get the following Mutex error:
++ MbedOS Error Info ++
Error Status: 0x80010133 Code: 307 Module: 1
Error Message: Mutex: 0x200006D0, Not allowed in ISR context
Location: 0x80108AD
Error Value: 0x200006D0
Current Thread: main Id: 0x20002DF0 Entry: 0x800D205 StackSize: 0x1000 StackMem: 0x20001140 SP: 0x2001FED4
For more info, visit: mbedos-error
– MbedOS Error Info –
Will be thankful for any input, if you need more information please ask.