Skip to main content
MAmem.1
Associate III
April 6, 2022
Solved

Lock Process or Priority (what is strongest)

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 ?

This topic has been closed for replies.
Pavel A.
Pavel A.Best answer
April 6, 2022

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

2 replies

Pavel A.
Pavel A.Best answer
April 6, 2022

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

MAmem.1
MAmem.1Author
Associate III
April 6, 2022

Thanks Pavel