Infrequent freezing when flashing OS section

We are working with

  • a Colibri iMX7D 512MB module
  • running WinCE7 (v 1.3b2)
  • Toradex CE Libraries 2.6

We’ve infrequently experienced an issue where the flashing of the OS section sometimes froze. Since it happened randomly, it was hard to trace. While researching another issue with our update process, I happened to partially log the debug output via UART and it’s the same error over and over. The code seems to be just sitting in an endless loop. In the past, this led to a bricked module but since we changed our flashing order (OS is flashed first now), we can simply reboot and restart the update process.

ERROR: c:\wince700\platform\toradeximx7\src\common\nand\core\cspnand.c line 661: Failed Read cs=0, sector=0xc697
DMA Wait timeout!
GPMI_DEBUG = 0x100.
GPMI_DEBUG2 = 0xfaf340.
GPMI_DEBUG3 = 0xffff0000.
ERROR: c:\wince700\platform\toradeximx7\src\common\nand\core\cspnand.c line 661: Failed Read cs=0, sector=0xc697

What could possibly cause this issue and how could we prevent it? The only other issue here that mentioned that particular error was a multicore issue from some years ago, but I doubt it’s the cause since it happens quite rarely in our updating. For more detail, our updater does the following:

  • Terminate our firmware process and wait until it’s really dead (so it should be done accessing the flash disk)
  • Check some pin states
  • Read the configuration file from USB HD

Another side note, we also experienced this issue while using our old update script which did:

  • Terminate the firmware process
  • Copy a lot of small files to SD Card (~1000 files, so took some time)
  • flash sections

Best regards
Lukas

Most likely, these are symptoms of this issue. Please update your OS from version 1.3b2 to version 1.3.

Hi Alex,

Thank you for your reply. We’ll update our image. Since the issue was rare to begin with, we’'ll just have to see if it happens again sometime in the future.

Regards
Lukas