Local directory and paste it into your project directory. Similarly, copy “startup_MKL25Z4.S” file from "C:\Keil_v5\ARM\PACK\Keil\Kinetis_KLxx_DFP\1.15.0\Device\Source\ARM" “system_MKL25Z4.C” files from it and paste it into your project directory. In your local drive and copy “system_MKL25Z4.H” and Go to directory "C:\Keil_v5\ARM\PACK\Keil\Kinetis_KLxx_DFP\1.15.0\Device\Source" This will open new window where you need to add few Include paths which are required to locate header files specified inside mkl25z4.h file.Īdd below path into it and click OK. Click on the small button besides “Include Paths” label. Now go to menu Project -> Options for Target ‘Target1’. A dd device header file include directive at the top of your main.c file.ġ.8. To do that, copy file “mkl25z4.h” from your local directory path We will get rid of these errors and warnings for now without much worrying about them. The reason for this is, you have not yet defined Interrupt Vector Table in your source code.ġ.
#Keil 5 include path code
You will see your code is not compiled and got 1 Error and 1 Warning. Quickly add “main()” function definition to your project and try to compile it by selecting option “Project -> Build Target”. Then select the file which you want to add and clock OK to add into project group in IDE.ġ.6. Then saving file to project directory with ‘Save As…’ option.To add file to project group, right click on ‘Source Group1’ folder and select option ‘Add existing file to Group Source Group1’. c file by selecting “File -> New…” option. (I have added main.c file to project by first creating new. Follow steps 2.1 and 2.2 again to create new uVision project. Close the ‘Pack Installer’ window and go back to Keil uVision IDE window.
#Keil 5 include path install
Then click on ‘Install’ button on the right side of page to install all packs for KLxx series of Microcontrollers.ġ.5. Select the ‘Software Packs’ for KLxx series of Microcontrollers from NXP by scrolling down device menu on left side. To install ‘Software packs’ for your device, click on the below icon named as ‘Pack Installer’ in your IDE.ġ.4. If you have forgot to install ‘Software Pack’ for MKL128xx4 device, this device might not be visible in the list of devices. Select the correct device by searching it from list of the devices as shown below and click ‘OK’.ġ.3. You will now see new window popped-up asking to select Target Device (in our case MKL25Z128xxx4, which is the microcontroller present in Freedom KL25z development board). Give the proper project name and path to create project file which has default extension as “.uvproj” and click on ‘Save’ button.ġ.2. New window will pop-up to save project name and location. Select the menu “Project”, then click on the option “New uVision Project…”. Step 1: Creating a new Keil uVision Projectġ.1. The project would not do anything, except making you understand the essential steps in creating your keil uvision project. This is an opportunity to go one step ahead and write and compile your first dummy code in IDE.
#Keil 5 include path software
So far we have selected our Embedded Development Board and successfully setup Software Toolchain for complete Embedded Application Developments.