eMMC problem - data corruption

Hi,

We switched form VF50 to iMX6S and started to experiencing problems with database corruption.
We are using Sqlite 3.7.14 With WAL (write ahead log).
It happens that when powering the instrument off/on the database or the WAL gets corrupted.
This corruption happens approximately once in every 1000 power toggle.
Same problem occurs when module is in Colibri Dev board.

We tried different hardware supply and reset circuits for modules.
For now, we have success only with version 3 solution, but are not sure if database integrity is 100%.

1.RESET_IN (pin 26) pulled to module +3V3 supply via 10k resistor
+3V3 rise time ca. 3.8ms, +3V3 fall time to 1.0V ca. 55ms

  • RESET_IN (pin 26) connected to external voltage supervisor circuit

  • RESET_IN goes to +3V3 after ca. 150ms at turn on (before is at 0V)

  • at turn off, RESET_IN goes to 0V, after ca. 90ms +3V3 supply starts to drop

  • RESET_IN (pin 26) connected to external voltage supervisor circuit

  • RESET_IN goes to +3V3 after ca. 150ms at turn on (before is at 0V)

  • at turn off, RESET_IN goes to 0V, after ca. 160ms +3V3 supply starts to drop

Please advice.

Best regards,
Andrej

Could you clarify what is “version 3 solution”?
Are you doing graceful shutdown or just cutting power off?