English
Language : 

AN1278 Datasheet, PDF (36/44 Pages) STMicroelectronics – Many mechanical components in the automotive sector have been replaced
LIN (LOCAL INTERCONNECT NETWORK) SOLUTIONS
need to update them when you move the example to another directory/PC. One file contains
absolute paths: The linker file located in <your working directory>\st_lin\examples\334\config
(or -\254\config) and named 334env.lkf (resp. 254env.lkf). You need to enter 3 paths. Edit the
file. See Figure 16:
Figure 16. COSMIC linker file configuration
...
+seg .share -a UZPAGE -is -sRAM
<ENTER COSMIC INSTALL PATH>\lib\crtsx.st7 # startup routine
..\object\main.o # application program
..\object\adc.o
..\object\crs.o
..\object\eep.o
..\object\mcc.o
..\object\misc.o
..\object\ports.o
..\object\sci.o
..\object\spi.o
..\object\tima.o
..\object\timb.o
..\object\trap.o
..\object\lin.o
..\object\lin_ai.o
<ENTER COSMIC INSTALL PATH>\lib\libm.st7
<ENTER COSMIC INSTALL PATH>\lib\libims.st7
+seg .const -b 0xFFE0 -k # vectors start address
..\object\vector.o # interrupt vectors
...
In place of “<ENTER COSMIC INSTALL PATH>” (3 times) enter your Cosmic compiler instal-
lation path (path of “cxst7.exe”). For example replace “<ENTER COSMIC INSTALL
PATH>\lib\crtsx.st7” by “c:\cosmic\\lib\crtsx.st7“. Save the file.
The example is ready. You can build the example (F7). Build will generate a 334env.elf (or
254env.elf) for debugging and a 334env.s19 (254env.s19) for flashing an MCU. Refer to the
STVD7 documentation for details using of the STVD7 editor and debugger.
4.4 PERFORMANCE
The above examples correspond to the 2 main kinds of software configuration, the SCI com-
munication emulated by software or supported by the hardware SCI peripheral. The corre-
36/44