STX/Freescale ADS5121 Board

Incorrect ALE timings

Problem:

[CPU Rev. 2: PVR 0x80862010, SVR 0x80180020]
Attempts to program the flash memory
(including for example using the "saveenv" command)
fail silently: the code that gets written to flash is
corrupted.
This also applies for attempts to program
the flash memory using a JTAG debugger like the
Abatron BDI3000.

Solution:

The problem is caused by incorrect
(for this CPU revision)
ALE timing for the CS0 and CS2 chip selects.
The problem is fixed by U-Boot version
v1.3.4-254-g8a49042
(git commit ID 8a490422bed6,
released Thu Aug 28 13:17:07 2008)
or later.

Workaround:

To fix the problem temporarily
(i. e. until the next reset of the board)
you can use the following
command in U-Boot:
Make sure to type the commands exactly as listed here!

Then power off the board,
remove (open) the backup jumper at P4,
then power on again.

Problem:

You want to install a more recent version of U-Boot in
the backup flash which shall be run when you boot from the backup
flash.
Note: this is a critical operation. Think twice if you
really know what you are doing.

Solution:

power off the board,
install (close) the backup jumper at P4,
then power on again; interrupt the autoboot sequence by hitting a
key while the count-down is running. Then enter the following
commands:

Then power off the board,
remove (open) the backup jumper at P4,
then power on again.

Update CPLD Code

Problem:

In some rare cases it may be necessary or advisable
to update the CPLD code on the board.
New versions of the CPLD code are available from the
STX download page.
WARNING: this is a critical operation;
you may damage your hardware! Think twice if you really know what you are doing.

Download the CPLD code from the
STX download page.
Note that this file comes in POF ( Programmer Object Format),
but for the UrJTAG tool we need it in SVF
(Serial Vector Format).
You can convert POF into SVF if you have access to the
Altera tools.
Alternatively, you can download the
SVF-file from the DENX web page: