English
Language : 

AN1754 Datasheet, PDF (7/19 Pages) STMicroelectronics – DATA LOGGING PROGRAM FOR TESTING ST7 APPLICATIONS VIA ICC
DATA LOGGING PROGRAM FOR TESTING ST7 APPLICATIONS VIA ICC
4 HOW TO USE THE DATA LOGGING SOFTWARE PACKAGE
This section explains the exact changes that you need to make to adapt the package for a
specific ST7 device.
On the PC side, you only have to execute the APIDatalog.exe file. You will be prompted to
enter certain parameters which are explained in Section 4.1.
On the ST7 side, the parameters to be changed have been grouped into the “main.h” file.
Hence, all changes and selections are to be made in the main.h, unless mentioned other-
wise.These parameters are explained in Section 4.2.
Before you start, you have to install STVP7 and program the ST7 flash with your user applica-
tion and option bytes. An example user application is provided with the package (user-
appli.s19).
4.1 USING THE PC SOFTWARE
When you run APIDatalog.exe, you will be prompted for some inputs. These inputs will set
certain parameters which can be split into two categories:
s Device specific parameters: These parameters have to be set to the values specified in
the datasheet (Stack top address) and ST7 ICC Protocol Reference manual (Settings for
ICC mode entry). In case of ICC mode entry settings, they also have to match the option byte
settings in the ST7 device, so there is no conflict when the ST7 tries to detect the clock.
s Application specific parameters: These parameters have to match the application
programmed in the ST7, like the application start address and the timeout parameter.
A detailed explanation of these parameters follows:
4.1.1 Number of Pulses
This input selects the number of pulses to be sent to the device to enter ICC mode. The
number of pulses used to enter ICC mode determines whether the option byte configuration
programmed in the device is used or ignored. Hence, this is to be used to select the clock
source of the ST7.
Case 1: User chooses to ignore the option bytes - The ST7 must then be driven by an ex-
ternal clock which in this case, is provided by the STICK. In this configuration, pin 9 of the ICC
(HE10) connector on the application board must be connected to the OSCIN pin of the micro-
controller.
Case 2: User chooses to use the option bytes - The clock has to be provided on the appli-
cation board.
7/19