Skip to contentSkip to conversation

problem with watchdog/reboot MPC5200

DISCUSSION Arno Geissel 2 participants 3 messages Apr 20, 2006

lore
Share & tools
lore
#0 lore raw

Hello all,

I have a custom board based on MPC5200 processor running the latest linuxppc_2_4_devel.
Everything is working fine until a flash write access is performed using MTD. After this a (soft) reboot stucks in mpc5xxx_restart() where the watchdog timer is charged and linux waits with closed interrupts until the MPC performs the reset. Only power off helps in this situation.
It seems to me like a hardware problem, because the freescale MPC5200lite reference board does not run into this.
The main difference of the custom board to the reference board is, that it is using 16MB Intel Strada Flash instead of AMD flash, which has an erase block size of 128kB.
Has anybody else experienced such behaviour?

Arno Geissel

#1 lore raw

Arno,

I think your problem is related to Intel Strataflash specifics. After a write to strataflash, it remains in status mode until another read (or reset) command is issued. This means you don't get the flash contents when reading it, but a status bit (e.g. 0x8080 at every spot). So when the processor start executing after a reset, it's not reading proper instructions.

You first need to e.g. write a reset cmd (0x5050) to it or connect the processor's hardreset line to the flash device.

Jaap-Jan

Quoted 22 lines · Arno Geissel

Hello all,

I have a custom board based on MPC5200 processor running the latest linuxppc_2_4_devel.
Everything is working fine until a flash write access is performed using MTD. After this a (soft) reboot stucks in mpc5xxx_restart() where the watchdog timer is charged and linux waits with closed interrupts until the MPC performs the reset. Only power off helps in this situation.
It seems to me like a hardware problem, because the freescale MPC5200lite reference board does not run into this.
The main difference of the custom board to the reference board is, that it is using 16MB Intel Strada Flash instead of AMD flash, which has an erase block size of 128kB.
Has anybody else experienced such behaviour?

Arno Geissel
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

#2 lore raw

Jaap-Jan,

I'm not booting from flash. The kernel is loaded using bootp and the rootfs is mounted over NFS. Flash is not needed for the boot process at all. Fact is, that the mpc5200 watchdog timer does not work, if I have written something to flash while runtime of the system. If I have not, the reboot, which uses the watchdog, performs OK.
On the other hand I would expect that the MTD package should know how to handle an Intel Strataflash.

Arno

Quoted 36 lines

Arno,

I think your problem is related to Intel Strataflash specifics. After a write to strataflash, it remains in status mode until another read (or reset) command is issued. This means you don't get the flash contents when reading it, but a status bit (e.g. 0x8080 at every spot). So when the processor start executing after a reset, it's not reading proper instructions.

You first need to e.g. write a reset cmd (0x5050) to it or connect the processor's hardreset line to the flash device.

Jaap-Jan

Quoted 21 lines · Arno Geissel

Hello all,

I have a custom board based on MPC5200 processor running the latest linuxppc_2_4_devel.
Everything is working fine until a flash write access is performed using MTD. After this a (soft) reboot stucks in mpc5xxx_restart() where the watchdog timer is charged and linux waits with closed interrupts until the MPC performs the reset. Only power off helps in this situation.
It seems to me like a hardware problem, because the freescale MPC5200lite reference board does not run into this.
The main difference of the custom board to the reference board is, that it is using 16MB Intel Strada Flash instead of AMD flash, which has an erase block size of 128kB.
Has anybody else experienced such behaviour?

Arno Geissel
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded