Good morning
Thank You for follow up.
I will try to do better.
The PDB and the ADC are used together for producing the sampling activity. The PDB has an 8KHz period.
The two ADCs are chained with the pre triggers of the PDB. Everything has worked fine.
Now I need to save some data in the controller flash.
When I write in the flash the PDB does two ugly things:
a) process the pre trigger errors
b) stops to work irreversibly.
In the interrupt pf the PDB with interrupt errors enabled the flags are cleared, but it reenters without end with these error interrupt flags active.
In this condition the ADC is no more active.
Whatever I do to recover the situation the PDB is irreversibly dead.
I tried to stop deinit and reinit but no way.
The killing action is the flash erase/write process.
Something in this process enters the mcu in a status not tolerable with the PDB.
I see the situation can be more quiet if I decrease the period of the PDB. But I need a more consistent solution..
Thank You