The package contains 3 files:

  • Eclipse NEC Compiler.exe - Executable
  • config.ini - Configuration file.
  • lnk7831.XCL - Command file for the linker. You should already have your own version of this, it defines aspects such as the target MCU, etc without this file you will not be able to compile correctly. This is provided as an example.

Note this tool is not a compiler it is an interface between the NEC compiler and Eclipse. It therefore requires the following other files:

  • ICC78300.exe - NEC Compiler
  • xlink.exe - NEC Linker

You will need to either replace the file lnk7831.XCL with your own copy or modify it so that it is suitable for your project.

To install create an new C project in Eclipse. Then copy all the above mentioned files into you project directory.

i.e. c:\users\dan\workspace\project_name\

Then copy your existing C files if you have some. There are a couple of rules for this compiling tool, firstly all your C files must be kept in the same directory. So you can not have any subfolders.

Now your project is set up and ready to use with this compile tool, you now need to follow a few simple steps to configure Eclipse.

 Remember the following rules when using this tool.

  • No spaces in the Project Name.
  • Only put the .C files that are apart of the project in the project folder, any old .C files or redundant ones must be deleted or the tool will try to compile these in aswell usually stopping the compiler being succesful.

Step 1)

Select Run -> External Tools -> Open External Tools Dialog… as shown in the image below.

step1.jpg

Step 2)

Select program and press the plusicon.jpg icon. As shown below.

step2.jpg

Notice a new title appears New_Configuration.

Step3)

Select New_Configuration then change the name to “Build All _NEC” (Or whatever you like).

Change the location to “${project_loc}\Eclipse NEC Compiler.exe”.

Change the Working Directory to “${project_loc}”.

Change the Arguments to “${project_loc} ${project_name}”

As shown below.

step3.jpg

Now click the Run button, and provided you have followed this guide exactly and put all the correct files in the correct directory you should get an output in the console windows an example of which is shown below.

output1.jpg

The console will continue filling with information about the compile, and show any errors. If there are errors I added a line at the bottom to prompt you to scroll through the console view.

This line either reads “No detectable errors were produced” or “Errors were produced see above”.

From now on to compile your project use the build_button.jpg button.

Please report any bugs or problems to dan@walms.co.uk