LPC2378 Procedure

Post on 28-Nov-2014

110 views 11 download

Transcript of LPC2378 Procedure

LPC-2378 ARM Development boardSteps to be followed for IAR workbench software

1. Run the Application IAR Embedded Workbench.

2. Create new project in the current work space

3. Create a new project by selecting the tool chain as “ARM” and create empty project and click ok.

4. Give Project Name Eg: LPC-2378 and click SAVE Button.

5. New>File Menu, for creating a new ‘C ‘file.

6. Creating your ‘C’ file.

7. File>Save As, for saving a file.

8. Give your File name Eg: DAC.C and click Save Button.

9. Right Click the project name option for select a ‘C’ file in workspace window. Select Add >Add DAC.C Menu.

10. Copy the header files config.h and irq.h and paste it in the project folder where your ‘C’ files is located as already created.

11. Select LPC2378>Rebuild all menu, for checking any error in your ‘C’ file. If your ‘C‘file has no error the following window will be displayed.

12. Select LPC2378 >Options menu

13. Select Linker Category. Enable output option file and give Filename. hex Eg: LPC2378.hex.

14. Enable Other Menu and select Intelextented option.

15. Select Config Menu. Enable Overide default option and click Browse button for choosing a LPC2378-Flash-XCL file.Path: C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kick Start\Arm\Examples\NxP\LPC23XX\IAR\LPC2378\SK\simple\common\XCL\LPC2378 FlashXCL and click OK button.

16. Select General options category. Enable target option file and select the device as NXP LPC2378 and click ok.

17. Select LPC2378>Rebuild all menu, for checking any error in your ‘C’ file.

18. If your project has no error, Building completed and Hex file generated.

This Hex file will be downloaded to the VIARM-2378 controller by Flash Magic Software

STEPS TO BE FOLLOWED IN FLASH MAGIC SOFTWARE FOR EMBED INTO KIT:

Step 1: Open Flash Magic softwareStep 2: Go to step 1: Communications Select Com port : COM1 Baud Rate : 19200 Device : LPC2378 Interface : None (ISP) Oscillator Freq (MHz): 16.000000 Step 3: Go to step 2: Erase Select Erase blocks used by Hex file

Step 4: Go to step 3: Hex file Select Browse corresponding Hex file

Step 5: Directly go to step 5: Start click start for Embed (*.HEX) file to kit.