hsk-libs-dev  270
High Speed Karlsruhe XC878 library collection
C51 Compiler Toolchain Setup

This section describes the necessary compiler toolchain setup based on the Keil µVision IDE.

Device

It is critical for device flashing and programming to select the correct version of the µC. This dialogue also allows you to select the extended linker and assembler. Doing so is imperative to perform the necessary link time optimisations to fit the libraries into the limited memory of the device.

keil_options_Device.png
Keil µVision Device options dialogue

Target

The target dialogue lets you select several CPU architecture and memory layout settings.

The following options need to be set:

keil_options_Target.png
Keil µVision Target options dialogue

C51

The C51 is the C compiler configuration dialogue. The following settings are not obligatory for use of the HSK libraries, but recommended.

keil_options_C51.png
Keil µVision C51 options dialogue

LX51 Locate

LX51 is the extended linker of the C51 compiler tool chain, the Locate dialogue is used to map memory ranges. The form can also be used to assign portions of code to fixed addresses.

keil_options_LX51_Locate.png
Keil µVision LX51 Locate options dialogue

LX51 Misc

The Misc dialogue holds the remaining linker settings.

keil_options_LX51_Misc.png
Keil µVision LX51 Misc options dialogue

Inline Assembler

Inline assembler has to be activated for Groups or single files individually. The Group Options can be found in the context menu of a Group.

To activate an option in this menu it needs to be unchecked and checked again.

keil_options_Group.png
Keil µVision Group options dialogue

Device Programming and Debugging

To program or debug the device via On Chip Debug Support (OCDS) the Infineon Direct Access Server (DAS), a hardware access middleware, is required. The programming and debugging options can also be selected from the target options. Use the following settings in the Utilities tab:

keil_options_Utilities.png
Keil µVision LX51 Utilities options dialogue
See also
Infineon DAS Tool Interface website: http://www.infineon.com/das/

Select Settings to enter the "Infineon XC800 DAS Driver Setup". The default options are mostly fine. Make sure of the following options:

DAS_Driver_Setup.png
Keil µVision Infineon XC800 DAS Driver Setup

The Debug tab of the target options can be used to choose between in-simulator debugging and on-chip debugging.