Keil Logo

C166: START167.A66 for Evaluation Boards


Information in this article applies to:

  • C166 All Versions
  • MCB167NET evaluation Board All Versions
  • Phytec KC167CR evaluation Board All Versions

QUESTION

I have a Phytec KC167CR evaluation board and a simple IO port example to demonstrate the board. I use the default START167.A66 provided by the Keil C166 compiler. The program does not run on the KC167CR board. What could be wrong?

ANSWER

The purpose of the START167.A66 file is to configure specific hardware conditions of the C16X device specifically for the target hardware. In this case the target hardware is the Phytec KC167CR evaluation board. Therefore, you must have the specific Phytec provided START167.A66 file for the KC167CR.

The START167.A66 contains the startup code for the C167 derivative devices. It is executed immediately upon reset of the device and optionally performs the following operations in order:

  • Initializes the SYSCON SFR registers (and BUSCON0 for the C167)
  • Initializes the ADDRSELx and BUSCONx SFR registers to configure memory access
  • Reserves and initializes the hardware stack and the stack underflow and overflow registers
  • Sets up DPP0 to DPP3 and CP for memory and registerbank access
  • Reserves and initializes the user stack area and the user stack pointer (R0)
  • Clears data memory
  • Initializes variables that were explicitly initialized
  • Calls the main function

If you are using the monitor, then the monitor contains it's own startup code that performs most of these operations. Once it has been completed, the startup code in your own application has no effect on the configuration of the device.

The C:\Keil\C166\EXAMPLES\BOARDS directory has examples and the appropriate START167.A66 files for popular C16X evaluation boards.

MORE INFORMATION

  • Refer to START167.A66 in the C166 User's Guide.
  • Refer to the \KEIL\C166\EXAMPLES\BOARDS folder for example projects for popular C16X evaluation boards.

SEE ALSO


Last Reviewed: Thursday, February 25, 2021


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.