ARM Technical Support Knowledge Articles

PROGRAM OFF-CHIP FLASH ROM ON STR71X

Applies to: ARM Development Tools

Answer


Information in this article applies to:


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

SEE ALSO

Article last edited on: 2006-08-01 10:51:07

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential