Documentation (c) 2006-2008 Hobby-Robotics, LLC


Chapter 8. Runtime Module Reference

Table of Contents

Runtime Module the MOD file
Standard Runtime Variants
Atmel AT91SAM7S Devices
Supported AT91SAM7S Devices
Programming AT91SAM7S and AT91SAM7X devices
SAM-BA Boot
SAM-BA recovery (summary)
Programming steps for serial interface (RS-232)
Programming steps for USB interface
Installing SAM-ICE JTAG support
Programming steps for SAM-ICE JTAG interface
NXP LPC2000 Device
Supported LPC2000 Devices
Programming LPC2000 devices
Programming steps for serial (RS-232) interface
Runtime Startup process
Interrupt Handling
Spurious interrupts
Configuring MOD
Linker configuration
Runtime configuration
LPC2000 configuration
AT91SAM7 configuration

Copyright © 2006-2008 Hobby-Robotics, LLC. All rights reserved.20

HHBR Basic Runtime Module

Version 2.000

Runtime Module the MOD file

ARM7TDMI based controllers are sophisticated 32 bit System On the Chip (SOC) devices that require fair amount of runtime environment to operate correctly. In HBBR Basic environment this role is handled by code embedded in the Runtime Module (MOD file).

The code in the MOD file accomplishes two major tasks:

  1. Providing hardware support including startup, initialization and interrupt handling

  2. Providing HBBR Basic language runtime functionality and debugging support

    Even in a family of closely related devices like NXP LPC2000 there is a great variety of hardware configuration and memory sizes to support. To effectively address this issue HBBR Basic allows the user to select the MOD file with a specific feature set that best matches the project needs, further customization can be accomplished by the user through MOD file options. For example correct setting of the crystal speed (XTAL) is crucial for programming and communication with the board.

    HBBR Basic language itself requires number of the support functions referred to a as runtime, these functionality is also provided by the code in the MOD file.