ARM Technical Support Knowledge Articles

INCREMENTING A CAST POINTER PRODUCES AN INTERNAL ERROR

Applies to: C166 C Compiler

Answer


Information in this article applies to:


QUESTION

The following code demonstrates a problem that occurred when I upgraded from V4.06 to V4.20c.

   unsigned char data[10];
   unsigned long flash_ptr = 0x180000;

   data[j] = *(unsigned char huge *)(flash_ptr++);

The code compiled successfully with the old version but generates the following error when compiled with V4.20c:

ERROR C11: INTERNAL ERROR

RESOLUTION

This problem has been resolved. You may download the latest updates from the Keil Website.

ATTACHED FILES

Request the files attached to this knowledgebase article.

Article last edited on: 2003-01-08 00:00:00

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