Keil Logo

MON166: STARTUP CODE CHANGES DO NOT WORK WITH MCB167-NET


Information in this article applies to:

  • C166 All Versions

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 \KEIL\C166\MONITOR\KEIL 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 µVision using Project — Rebuild all Target Files.

MORE INFORMATION

  • Getting Started User's Guide, Chapter 11. Monitor-166
  • Refer to Monitor Configuration in the MON166 User's Guide.

SEE ALSO

Last Reviewed: Friday, July 27, 2007


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.