ARM Technical Support Knowledge Articles

ACCESS PROBLEM WITH XC16X ON-CHIP FLASH

Applies to: C166 C Compiler

Answer


Information in this article applies to:


SYMPTOM

The Errata Sheets for XC161, XC164, and XC167 Infineon document a FCPUR X.162832 Flash Read Performance problem. This Flash problem is indicated by a Class B Trap with PACER=1 (bit 4 set in TFR). The problem depends on the operating temperature and the CPU frequency. To avoid this problem, Infineon recommends that you increase the wait states for Flash ROM (WSFLASH) in the IMBCTR control register as shown below:

For Ambient Temperatures -40 to 85 degrees Celsius the setting of WSFLASH should be:

For Ambient Temperatures above 85 degrees Celsius the setting of WSFLASH should be:

RESOLUTION

To set the wait states in your application, you must use startup code (START_V2.A66) version 5.05 or higher. This file may be downloaded (see the Attachments section below) or you may download the latest updates from the Keil Website. The waitstates for on-chip Flash ROM can be configured under CPU Configuration - Definitions for Internal Memory Block Control Register IBMCTR - WSFLASH: Wait States for the Flash Memory. Select the number of waitstates as required for your application.

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-05-28 22:55:44

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