beautypg.com

Download to ram program configuration – Zilog ZUSBOPTS User Manual

Page 343

background image

UM017105-0511

Program Configurations

Zilog Developer Studio II – ZNEO™

User Manual

315

command in the

Additional Linker Directives

dialog box (see

Additional Directives

– see

page 62):

change code=ERAM /* The linker will then allocate code segment in

ERAM */

To go back to the Default Program Configuration for production code, remove this direc-
tive from the

Additional Linker Directives

dialog box.

Special Case: Partial Download to ERAM

A special case of this configuration is to download program code from just one assembly
segment into ERAM, while retaining the rest of the code in EROM.

Perform the following steps:

1. Use a distinct segment name for the particular segment.

For example:

Define main_TEXT, space=EROM

segment main_TEXT

; code goes here

2. Use the linker CHANGE directive to move the particular segment to ERAM. For

example:

To download the code for the

main_TEXT

segment to ERAM, add the following

linker command in the

Additional Linker Directives

dialog box (see

Additional

Directives

– see page 62):

change main_TEXT = ERAM

To go back to the Default Program Configuration for production code, remove this
directive from the

Additional Linker Directives

dialog box.

Download to RAM Program Configuration

The Download to RAM Program Configuration, shown in Figure 134, can be used only
during development and not for production code. It is similar to the Default Program Con-
figuration, the only difference is that the rest of the executable program code is down-
loaded in RAM and executed from RAM.

This manual is related to the following products: