Keil™, An ARM® Company

Technical Support

GCC: PROBLEM WITH INITIALIZED VARIABLES ON ADUC7000


Information in this article applies to:

  • GNU C Compiler for ARM Version 3.22

QUESTION

I have started using the Analog Devices ADuC7000 Quick Start Development Kit. Everything worked fine until I started using variables that are initialized at the file level. There seem to be two problems:

  1. When I use ULINK for Flash programming, I receive the following error:
    Error: No Algorithm found for Address 0x00010000
    
  2. When I use the simulator to debug the program the variables have incorrect values.

ANSWER

The configuration for the ADuC7000 that is part of DK-ARM version 1.3 has these problems. Download the configuration files in the Attached Files below and use them in your project.

  • The ADuC702X.ld linker script corrects a locating problem with the initialized variables.
  • The STARTUP.S startup code clears the memory before the initialized data are copied. This prevents the initialized data from being overwritten when the .bbs and .data sections are overlapping.

MORE INFORMATION

  • Getting Started User's Guide (GSA.CHM), CPU Setup

SEE ALSO

ATTACHED FILES

Request the files attached to this knowledgebase article.

Last Reviewed: Monday, July 10, 2006


Did this article provide the answer you needed?
 
Yes