cancel
Showing results for 
Search instead for 
Did you mean: 

Lock Process or Priority (what is strongest)

MAmem.1
Associate III

Let's assume we have a software that uses FDCAN Classic and I2C with multiple slaves.

FDCAN Priority = 1

I2C Priority = 2

During the transmission / Receiving process, the I2C is locked : __HAL_LOCK(hi2c);

If an FDCAN interruption arrives during the I2C process, does the I2C get interrupted or does it wait until the I2C process get unlocked ?

1 ACCEPTED SOLUTION

Accepted Solutions
Pavel A.
Evangelist III

I2C gets interrupted. Because NVIC normally is set up to allow nested interrupts.

View solution in original post

2 REPLIES 2
Pavel A.
Evangelist III

I2C gets interrupted. Because NVIC normally is set up to allow nested interrupts.

MAmem.1
Associate III

Thanks Pavel