AN1154 STMicroelectronics, AN1154 Datasheet - Page 33

no-image

AN1154

Manufacturer Part Number
AN1154
Description
8031-PSD DESIGN TUTORIAL
Manufacturer
STMicroelectronics
Datasheet
2. Type in the file names of your MCU linker output in the appropriate places. In this example, five files
3. Enter the File Start Addresses, File Stop Addresses, and File Names according to Table 2.
Table 2. Mapping the Memory Sectors to Files
In this design, a different file name has been used for each of the sections of code in the Flash memory.
This is because of the address space overlap of the segments. This file scheme is used because, even
though these sections of code physically reside on different memory pages, some linkers will place them
in overlapping absolute address space. The method you use depends on your linker. Alternatively, you
can use a single file name across many memory chip selects if your linker automatically appends extra
address bits that represent your paging scheme. You would then, for example, enter 18-bit addresses to
accompany the single file name, which is passed to the Address Translate utility, instead of 16-bit
addresses to accompany several file names.
Optionally, you can specify only the EEPROM contents to be programmed by the device programmer. It
may be desired to load system code into Flash memory while it is in-system, not on a device programmer.
In this case, only information for EES0 and EES1 should be entered in the Address Translate utility.
1. Ensure that Direct Mapping is selected in the “Mapping Mode” box.
2. Select Intel Hex Record in the “Record Type” box.
3. Click on OK to perform the address translation. If no errors are indicated, then tutor8XX.obj will be
If your copy of PSDsoft includes the PSDsilosIII simulator, you should simulate and verify your design
before programming the M88 FLASH+PSD. Please see the next section on how to simulate the tutorial
design.
are used. (See Appendix F for information on the system memory map and how these files relate.) Four
of the five files are to be programmed into Flash memory on different pages. The remaining file is to be
programmed into the boot area of the EEPROM. The four Flash files are page_0.hex, page_1.hex,
page_2.hex , and common.hex . The file for the EEPROM is boot.hex . Each of these files can contain
up to 32 KBytes of code.
placed in your project directory.
Memory Select
EES0
EES1
EES2
EES3
FS0
FS1
FS2
FS3
FS4
FS5
FS6
FS7
File Start Address
C000
C000
C000
0000
4000
8000
8000
8000
0000
2000
-
-
File Stop Address
BFFF
FFFF
BFFF
FFFF
BFFF
FFFF
3FFF
7FFF
1FFF
3FFF
AN1154 - APPLICATION NOTE
-
-
Common.hex
Common.hex
Page_0.hex
Page_0.hex
Page_1.hex
Page_1.hex
Page_2.hex
Page_2.hex
File Name
boot.hex
boot.hex
-
-
33/83

Related parts for AN1154