ST AN1635 Application note

AN1635
APPLICATION NOTE
ST7 CUSTOMER ROM CODE RELEASE INFORMATION
by MCD Applications
INTRODUCTION
When their ST 7 R OM code is read y to be mas k pr ogra mmed, cus tome rs sen d t heir ex ecut­able file to ST in Motorola .s19 format. When ST receives it, this file is reformatted by a propri­etary automation tool called NEWGET in order to generate the mask levels and test patterns for manufacturing and testing the devices.
Consequently, w hen customers receive back their ROM code for validation before ST pro­grams their parts, they receive a file in a different format fr om the one they sent originally. To help customers understand why the file is different, this Applic ation Note lists the modifications that occur when the file is processed by NEWGET.
AN1635/0703 1/5
1
ST7 CUSTOMER ROM CODE RELEASE INFORMATION
1 LIST OF CHAN GES
Here are the modifications made to the executable file during NEWGET processing:
The first line“s0” is removed (useless info common to al l s19 files)
the software is sorted by device memory address
device memory unused by your software is filled with "FF"
2 .S19 FILE STRUCTURE
Figure 1. s19 file description
S19 structure file
S19 file head title
(it’s the same for all S19 files)
S00600004844521B S113 E000 AE FF 7F AE FF 5F 1E 05 1E 06 1F 04 A6 84 B7 32 57 S113 E010 A6 98 B7 31 A6 00 B7 36 A6 FF B7 37 A6 01 B7 3E 14 S113 E020 A6 EF B7 3F 9A 9D 20 FD 80 80 80 80 80 0F 33 09 42 S111 E030 0E 04 04 1E 04 20 02 1F 04 B6 35 80 80 80 F6 S113 FFE0 E0 28 E0 28 E0 3D E0 28 E0 28 E0 28 E0 28 E0 3C A4 S113 FFF0 E0 28 E0 2D E0 2C E0 28 E0 2A E0 2B E0 29 E0 00 D6 S9030000FC
Loading addresses
S19 file end
CODE
Total number of bytes per line (code + address + checksum) in
HEXADECIMAL
Line checksum
Note: The line check sum i s calculated with the formula: FF-(all the bytes in the line including code, address and total number of bytes per line).
2/5
2
ST7 CUSTOMER ROM CODE RELEASE INFORMATION
3 EXAMPLE
Here is an example of .s19 code generated by any ST or third-party software tool:
S00600004844521B S105E0007A128E S113E002140114021400A601B781CDE04BCDE0 5AED S113E012B681B7049A9D20FDB631A808B731800CA9 S113E02233043D3F201C9839812404A601B781B6EC S113E03281B704C6E 001BB3797C6E000B936B736EC S113E042BF3780808080808080A611B720A601B768 S113E0520AA6FFB705B70681A640B732A608B731AC S110E062C6E000B7 36C6E001B73710808174 S113FFE0E04AE04AE048E04AE04AE04AE04AE046C3 S113FFF0E04AE021E047E04AE045E01AE049E00257 S9030000FC
and here is the code listing after being reformatted by NEWGET:
S123E0007A12140114021400A601B781CDE04BCDE05AB681B7049A9D20FDB 631A808B7318E S123E020800C33043D3F201C9839812404A601B781B681B704C6E001BB3797C6E000B93651 S123E040B736BF3780808080808080A611B720A601B70AA6FFB705B70681A640B732A60847 S123E060B731C6E0 00B736C6E001B737108081FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8C S123E080FFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFF9C
... (empty lines filled with “FF”)...
S123FFC0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF3D S123FFE0E04AE04AE048E04AE04AE04 AE04AE046E04AE021 E047E04AE045E01AE 049E0020D S9030000FC
3/5
ST7 CUSTOMER ROM CODE RELEASE INFORMATION
4 CHECKIN G ROM CONTENT WITH AN EPB PROGRAMMING BOARD
It’s now possible to check the ROM content by reading it using STVP7 (ST7 Visual Pro­grammer), which is the programming software provided for free by ST, and the EPB (Engineer Programming Board) of the target device.
It should be noted that option bytes can NOT be read, as in a ROM MCU they are coded in hardware, and not programmed in a parallel memory page like in a Flash MCU.
Using STVP7 version 1.8.0, use the following procedure to read the ROM content of your MCU:
Create a shortcut for stvp.exe. You will find stvp.exe in the STVP7 installation path (by
default: C:\Program Files\STM\st7toolchain\stvp7)
Rename the new shortcut with a suitable name (stvp_rom.exe for instance)
Right click on it and select Properties from the pop up menu
In the shortcut tab, modify the target path:
“C:\ProgramFiles\STM\st7toolchain\stvp7\stvp.exe” to "C:\Program Files\STM\st7toolchain\stvp7\stvp.exe" -rom
Now when y ou d ouble-click on th is shortc ut, the S TVP7 will st art in R OM mo de (it l ooks the same as Flash mode except “ROM mode” is displayed in the toolbar).
4/5
ST7 CUSTOMER ROM CODE RELEASE INFORMATION
"THE PRESENT NOTE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH INFORMATION REGARDING THE IR PRO DUCT S IN OR DER FO R THEM TO SAV E TIME . AS A RES ULT, STMIC ROEL ECTR ONI CS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH A NOTE AND/OR THE USE MADE BY CUSTOMERS OF THE INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS."
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implic ation or otherwise under any patent or p atent rights of STMi croelectr oni cs. Spec i fications mentioned i n this publicatio n are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as cri tical comp onents in life support dev i ces or systems wi t hout the exp ress written approval of STM i croelectronics.
The ST logo is a registered trademark of STMicroelectronics
2003 STMicroelectronics - All Rights Reserved.
STMicroelectronics Group of Compan i es
http://www.s t. com
Purchase of I
2
C Components by STMicroelectronics conveys a license under the Philips I2C Patent. Rights to use the se components in an
2
C system i s granted pro vided that th e sy stem confo rm s to the I2C Standard Specification as defined by Philips.
I
Australi a - Brazil - Canada - China - Fi nl and - France - Germany - Hong Kong - Ind i a - Is rael - Ital y - J apan
Malaysi a - M al ta - Morocco - Singapore - Spain - Sw eden - Switz erland - Unit ed Kingdo m - U. S. A.
5/5
Loading...