beautypg.com

Deleting user areas, Executable programs and diamond applications – Sundance SMT6001 User Manual

Page 8

background image

• Executable Program

The area will contain data extracted from an executable COFF program (one
suitable for loading and executing with Code Composer). The data are not
held in the ROM in COFF as this would be far too wasteful of limited ROM
space. Instead, they are held in an internal compressed format understood by
the standard Sundance bootloaders. Once the program has been loaded from
the ROM (after reset), you can debug it using Code Composer by loading the
symbol table from the original COFF file (File/Load Symbols/Load Symbols
Only).

• Diamond Application

The area will contain a Diamond application. This application may be for one
or more processors.

Next, provide the full name of the file containing the data to be added. The "..." button
will allow you to browse for the file.

Now give an "Identification value", a number that can be used to identify the area.
This is usually optional and can be left blank, in which case the value 0 will be used.
Note that some TIMs (such as the SMT363) need certain user areas set up with
coprocessor data and these may require specific Identification values.

Finally, click "OK". The information you have requested will be added to the list of
users areas. At this stage nothing has been written to the ROM. To finish the
procedure, click "Program Flash" and the new data will be written.

3.6.2

Deleting User Areas


You delete user areas by selecting the first area to be removed and clicking "Delete".
This will remove the selected area and all areas below it in the list.

3.6.3

Executable Programs and Diamond Applications


A program (or Diamond application) that is loaded from ROM must be built to
assume that there is no host processor available. This means that programs generated
using Code Composer Studio must not use any of the stdio.h features. Diamond
applications must only include tasks that have been linked as stand-alone tasks (using
C6xSlink, for example) and constructed using the configurer's "/A" switch.

The first user area found to contain an executable program or a Diamond application
will be selected as the "boot area". When such an area is written to the ROM,
SmtFlash automatically assumes that it should be enabled so that it will be executed
following reset (see section 3.6.5 ).