Bootloader + Main App (ARM7) -

Hi,

Currently im developing a project which takes advantage of the In Application Programming feature on the ARM7 MCU. These individual projects are a Bootloader (IAP enabled) and a Main Application.

Ive found that both Apps utilise the same drivers etc but have not seen a way in which Bootloader and Main Application firmware can reference the same drivers. In doing so I can save vast amounts of code space etc. Im not sure where to start, ive seen older examples from uvision2, 8051 but nothing relevant for this MCU/Keil's Uvision4 IDE. Any ideas / keywords will be appreciated as currently ive not seen anything useful to use with the ARM7 MCU yet.

Thanking you in advance

DSP

Parents Reply
  • I did some quick searching and reading on Mike's suggestion about StellarisWare library in ROM.

    LM3S9B96 ROM USER'S GUIDE
    www.ti.com/.../spmu127c.pdf

    1 Introduction
    The LM3S9B96 ROM contains the Stellaris® Peripheral Driver Library and the Stellaris Boot
    Loader. The peripheral driver library can be utilized by applications to reduce their flash footprint, allowing the flash to be used for other purposes (such as additional features in the application). The boot loader is used as an initial program loader (when the flash is empty) as well as an application initiated firmware upgrade mechanism (by calling back to the boot loader).
    There is a table at the beginning of the ROM that points to the entry points for the APIs that are provided in the ROM. Accessing the API through these tables provides scalability; while the API locations may change in future versions of the ROM, the API tables will not. The tables are split into two levels; the main table contains one pointer per peripheral which points to a secondary table that contains one pointer per API that is associated with that peripheral. The main table is located at 0x0100.0010, right after the Cortex-M3 vector table in the ROM.
    The following table shows a small portion of the API tables in a graphical form that helps to illustrate the arrangement of the tables:

    Would the Backward Compatibility be an issue?

Children
More questions in this forum