Keil™, An ARM® Company

Technical Support

ARM: PROGRAM OFF-CHIP FLASH ROM ON STR71X


Information in this article applies to:

  • Keil Development Tools for ARM
  • ULINK USB-JTAG Adapter

QUESTION

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?

ANSWER

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

MORE INFORMATION

  • Getting Started User's Guide, Flash Programming, Prepare Flash Programming

SEE ALSO

Last Reviewed: Tuesday, August 01, 2006


Did this article provide the answer you needed?
 
Yes
No
Not Sure