Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

AN2125 View Datasheet(PDF) - STMicroelectronics

Part Name
Description
MFG CO.
'AN2125' PDF : 68 Pages View PDF
uPSD3300 Series Design Guide for DK3300-ELCD Using KEIL
7.8 Merging 8032 Firmware with uPSD Configuration
Now that all Turbo uPSD pins and configuration settings have been defined, PSDsoft Express
will create a single object file (*.obj) that is a composite of the 8032 firmware (*.hex) and the
Turbo uPSD configuration. FlashLINK/R-LINK-ST or third-party programmer tools can use this
object file to program a Turbo uPSD device. PSDsoft Express will create project1.obj for this
design example. During this merging process, PSDsoft Express will input firmware files from
the 8032 compiler/linker in Intel HEX format. It will map the content of these files into the phys-
ical memory segments of the Turbo uPSD according to the choices that were made in the 'Chip
Select Equations' screen. This mapping process translates the absolute system addresses in-
side 8032 firmware files into physical internal Turbo uPSD addresses that are used by a pro-
grammer device to program the Turbo uPSD. This address translation process is transparent.
All you need to do is type (or browse) the file name that was generated from the 8032 linker
into the appropriate boxes and PSDsoft Express does the rest. You can specify a single file
name for more than one Turbo uPSD chip-select, or a different file name for each Turbo uPSD
chipselect. It depends on how the 8032 linker has created the firmware file(s). For each Turbo
uPSD chip-select in which you have specified a firmware file name, PSDsoft Express will ex-
tract firmware from that file only between the specified start and stop addresses, and ignore
firmware outside of the start and stop addresses.
Click on "Merge MCU Firmware" in the main flow diagram. You will see an information window
pop up to remind you to be sure you have configured the firmware compiler and linker to sup-
port a paged memory mapping scheme. Select "OK" and you will see the screen shown in Fig-
ure 39.
In the left column of the "Step 1" area are Turbo uPSD memory segment chip-selects (e.g.,
FS0, FS1). The next column shows the logic equations for selection of each Turbo uPSD
memory segment. These equations reflect the choices that were made while defining Turbo
uPSD internal chip-select equations in an earlier step. In the middle of the screen are hexa-
decimal start and stop addresses that PSDsoft Express has filled in, based on the chip-select
equations. On the right are fields to enter (browse) the 8032 firmware files. To select a firm-
ware file:
1. Select "Intel Hex Record" for 'Record Type' as shown in Figure 40.
2. Slide the bar on the right side all the way down to the bottom until you see FS0
3. See that the firmware files are in FS0.
This is a small example program that exercises the PWM and ADC channels of the Turbo
uPSD on the DK3300-ELCD board, and this code fits completely within the 32Kbyte flash
segment fs0.
4. Slide the bar on the right side all the way down to the bottom until you see CSBOOT3
5. You will see the font .hex file in that segment.
This specification places firmware in primary Turbo uPSD flash memory segment ds0 and the
Fonts in the CSBOOT3.
The composite object file used for the demonstration was generated as "project.obj".
You can regenerate it as long as all parameters are same.
51/68
1
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]