ARM Technical Support Knowledge Articles

STARTUP CODE CHANGES DO NOT WORK WITH MCB167-NET

Applies to: MON166 Target Monitor

Answer


Information in this article applies to:


QUESTION

I'm using the MCB167-NET evaluation board to debug my application. I am using external devices and have changed the configuration of the SYSCON, BUSCONx, and ADDRSELx registers. I have changed the RP0H value using the PORT0 configuration DIP switches that are provided on the MCB167-NET board.

No matter what values I change in START167.A66, the values in SYSCON and RSTCON do not change. It appears to accept only the default values.

ANSWER

It sounds like you are using Monitor-166 to download and test your program. For the C16x device, the startup code in Monitor-166 will also be used by your application. This is because once the startup code in the monitor executes the EINIT instruction, it is impossible to change the configuration of SYSCON and RSTCON. Since EINIT has already executed when the monitor runs your target program, your startup code changes are ignored.

You must modify the startup code used by the monitor to configure the device.

The project that configures the Monitor for the MCB167-NET board is stored in the KEILC166MONITORKEIL MCB167 NET folder. You must modify the CONFIG.INC file so that it contains the same settings as the START167.A66 file of your application. Then, generate the modified Monitor with uVision using Project — Rebuild all Target Files.

MORE INFORMATION

SEE ALSO

Article last edited on: 2007-07-27 08:39:18

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