![NEC 78K0S/K 1+ Series Application Note Download Page 29](http://html.mh-extra.com/html/nec/78k0s-k-1-series/78k0s-k-1-series_application-note_249252029.webp)
Application Note U18752EJ2V0AN
29
CHAPTER 5 OPERATION CHECK USING SYSTEM SIMULATOR SM+
This chapter describes how the sample program operates with system simulator SM+ for 78K0S/Kx1+, by using the
assembly language file that has been downloaded by selecting the icon.
Caution System simulator SM+ for 78K0S/Kx1+ is not supported with the 78K0S/KU1+ microcontroller (as
of July 2008). The operation of the 78K0S/KU1+ microcontroller can therefore not be checked by
using system simulator SM+ for 78K0S/Kx1+.
5.1 Building
the
Sample
Program
To check the operation of the sample program by using system simulator SM+ for 78K0S/Kx1+ (hereinafter referred
to as “SM+”), SM+ must be started after building the sample program.
This section describes how to build a sample
program by using the assembly language sample program (source p project file) downloaded by clicking the
icon. See the
78K0S/Kx1+ Sample Program Startup Guide Application Note
for how to build other
downloaded programs.
For the details of how to operate PM+, refer to the
PM+ Project Manager User’s Manual
[Column] Build errors
Change the compiler option setting according to the following procedure when the error message “A006 File
not found ‘C:\NECTOOLS32\LIB78K0S\s0sl.rel’” or “*** ERROR F206 Segment ‘@@DATA’ can’t allocate to
memory - ignored.” is displayed, when building with PM+.
<1> Select [Compiler Options] from the [Tool] menu.
<2> The [Compiler Options] dialog box will be displayed. Select the [Startup Routine] tab.
<3> Uncheck the [Using Fixed Area of Standard Library] check box. (Leave the other check boxes as they are.)
A RAM area of 118 bytes that has been secured as a fixed standard library area will be enabled for use when
the [Using Fixed Area of Standard Library] check box is unchecked; however, the standard libraries (such as
the getchar function and malloc function) will be disabled for use.
The [Using Fixed Area of Standard Library] check box is unchecked by default when the file that has been
downloaded by clicking the icon is used in this sample program.
<R>
<R>