First, thank you both for your help.
Rick, we have another MCF5272 board and we use Micron MT48LC32M16A2 using a 16x bus without problems. I think you can use the same board to test the new configuration. We know MCF5272 have an errata using 32x bus for 256 Mbit but we are using 128 Mbit:
"The SDRAM configuration using two 16-bit-wide, 256-Mbit SDRAM chips does not work. There is an
error in the page mode logic that prevents the SDRAM controller from correctly tracking which pages are currently open when using this configuration. All other SDRAM configurations documented in the 5272 user’s manual work correctly and are unaffected by this errata."
TomE, the problem is similar but I took a look on MCF5329 and I think the SDRAM controllers of MCF5272 and MCF5329 are quite different. We have a first program (called Bootloader) always running right and it is when this program load the operating system VxWorks when the random errors appear on some boards. The operating system uses more resources and SDRAM intensively.
Thank you anyway.
We have SDRAM initialization as described in the manual:
"Each SDRAM requires an initialization sequence before it can be accessed. After power up, the SDRAM
requires a certain time (100 µS) before it can accept the first command of the initialization procedure. After
this time, one PRECHARGE ALL command and eight REFRESH commands are required. After initialization,
an INITIATE LOAD REGISTER SET command is executed, which writes the SDRAM configuration into the
SDRAM device mode register.
SDRAM mode register data is transferred on the address signals, so all SDRAM devices are configured
simultaneously.
Initialization is enabled by setting SDCR[INIT] and performing a dummy write to the SDRAM address
space. The SDRAM controller executes the required PRECHARGE and REFRESH commands and
automatically loads the mode register, which configures the SDRAM as follows:
• SDRAM internal burst is always disabled.
• CAS latency is defined by SDTR[CLT].
SDCR[ACT] is set after initialization."