ARM: PROGRAM OFF-CHIP FLASH ROM ON STR71X
Information in this article applies to:
I have a problem with programming off-chip Flash devices on STMicroelectronics STR7 devices. It seems that the Flash device cannot be correctly addressed.
How can I solve this issue?
ARM devices with off-chip Flash require the external BUS to be configured properly. Do this with an Init File (in Project — Options for Target — Utilities — Init File) which contains the debug commands required to configure the off-chip Flash before the Flash programming is started. The content depends on the off-chip Flash devices used and on the ARM device that you have.
The following file provides the BUS setup on the STR71x for PC0, PC1 and PC2 address windows with a 16-bit BUS.
// A.20..23 on P2.4..7 (Alternate Push-Pull Outputs + enable CS.0/1 P2.0..1) _WDWORD(0xE0005000, (_RDWORD(0xE0005000) | 0x00F3) ); // PC0 _WDWORD(0xE0005004, (_RDWORD(0xE0005004) | 0x00F3) ); // PC1 _WDWORD(0xE0005008, (_RDWORD(0xE0005008) | 0x00F3) ); // PC2
Last Reviewed: Tuesday, August 1, 2006
of your data.