58
#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 1 QUICK START MANUAL LPC2148 is ARM7TDMI-S Core. It is a 16/32-Bit 64 Pin (LQFP) Microcontroller from Philips (NXP). All resources inside LPC2148 is quite perfect, so it is the most suitable to learn and study because if user can learn and understand the applications of all resources inside MCU well, it makes user can modify, apply and develop many excellent applications in the future. Because Hardware system of LPC2148 includes the necessary devices within only one MCU such as USB, ADC, DAC, Timer/Counter, PWM, Capture, I2C, SPI, UART, and etc. Technical Specifications Processor*: LPC2148 Clock speed: 12 MHz Red LED: Power indicator Power: 7-15V AC/DC @1 A Voltage Regulator: 5V and 3.3V Onboard Specifications of Board: 1. 16/32 Bit ARM7TDMI-S MCU No.LPC2148 from Philips (NXP). Has 512KB Flash Memory and 40KB Static RAM internal MCU 2. Use 12.00MHz Crystal, so MCU can process data with the maximum high speed at 60MHz when using it with Phase-Locked Loop (PLL) internal MCU. 3. Has RTC Circuit (Real Time Clock) with 32.768 KHz XTAL and Battery Backup. 4. Support In-System Programming (ISP) and In-Application Programming (IAP) Through On-Chip Boot-Loader Software via Port UART-0 (RS232) 5. Has Circuit to connect with Dot-Matrix LCD with circuit to adjust its contrast by using 16 PIN Connector. 6. Has circuit to connect GLCD to display image and text.

Quick Start Manual Brimm ARM

Embed Size (px)

DESCRIPTION

ARM7 manual

Citation preview

Page 1: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 1

QUICK START MANUAL

LPC2148 is ARM7TDMI-S Core. It is a 16/32-Bit 64 Pin (LQFP) Microcontroller from Philips (NXP). All resources inside LPC2148 is quite perfect, so it is the most suitable to learn and study because if user can learn and understand the applications of all resources inside MCU well, it makes user can modify, apply and develop many excellent applications in the future. Because Hardware system of LPC2148 includes the necessary devices within only one MCU such as USB, ADC, DAC, Timer/Counter, PWM, Capture, I2C, SPI, UART, and etc. Technical Specifications Processor*: LPC2148 Clock speed: 12 MHz Red LED: Power indicator Power: 7-15V AC/DC @1 A Voltage Regulator: 5V and 3.3V Onboard Specifications of Board: 1. 16/32 Bit ARM7TDMI-S MCU No.LPC2148 from Philips (NXP). Has 512KB

Flash Memory and 40KB Static RAM internal MCU 2. Use 12.00MHz Crystal, so MCU can process data with the maximum high

speed at 60MHz when using it with Phase-Locked Loop (PLL) internal MCU. 3. Has RTC Circuit (Real Time Clock) with 32.768 KHz XTAL and Battery

Backup. 4. Support In-System Programming (ISP) and In-Application Programming

(IAP) Through On-Chip Boot-Loader Software via Port UART-0 (RS232) 5. Has Circuit to connect with Dot-Matrix LCD with circuit to adjust its

contrast by using 16 PIN Connector. 6. Has circuit to connect GLCD to display image and text.

Page 2: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 2

7. Has circuit to connect TFT LCD (with touch screen) to display color images

and text. 8. Has RS232 Communication Circuit by using 2 Channel. 9. Has SD/MMC card connector circuit by using SSP. 10. Has EEPROM interface using I2C. 11. Audio Out (Speaker) 12. Has standard 2.0 USB as Full Speed inside (USB Function has 32 End

Point) 13. JTAG

14. All port pins are extracted externally for further

interfaces. 15. ON Board Power Supply.

System Requirements:

1. Hardware Requirements A PC available with RS232 port for ISP programming

Parallel Port for JTAG programming &Debugging(Depends on Programmer)

USB Cable for Power Supply or DC Adapter

2. Software requirements: Keil uV3 or WINARM for Programming

H-JTAG or Phillips Flash Utility for Flash Programming. MS Windows 98/ME or windows WT/2000/2003/Xp

Page 3: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 3

Package Contents: 1. ARM Starter evaluation board 2. Serial port Cable 3.16*2 LCD 4. Key Pad 5. Switches and LED add-on Board 6. Speaker 7. Buzzer 8. USB Cable 9. 12V 1A Adapter 10. ARM Starter Kit CD 11. Burg connectors 5 Nos

Page 4: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 4

Figure displays position of devices on Board • No 1 is MCU No.LPC2148 (64Pin LQFP). • No.2 is 12MHz Crystal to be Time Base of MCU. • No.3 is 32.768 KHz Crystal to be Time Base of RTC internal MCU. • No.4 is 3V Battery for Backup of RTC. • No.5 is GLCD Connector. • No.6 is Power Supply Connector of board; it can be used with 7‐12V AC/DC. • No.7 is UART‐0(RS232) Connector to use and Download Hex File into CPU. • No.8 is UART‐1(RS232) Connector to use. • No.9 is Character LCD Connector; it can be used with +5V Supply LCD. • No.10 is VR to adjust the contrast or brightness of Character GLCD. • No.11 is USB Connector to connect with USB Hub version 2.0. • No.12 is LED to display status of Power +VDD (+3V3). • No.13 is Slide Switch For Mode Selection (ISP Mode or Normal Mode). • No.14is RESET Switch. • No.15 is socket to insert Memory Card; it can be used with both SD Memory Card and MMC Memory Card. • No.16 is TFT LCD Connector. • No.17 is External Memory. • No.18 and No.19 is jumper to connect External Memory to MCU. • No.20 is jumper to connect POT and ADC0.1. • No.21 audio section and No.22 is jumper to connect audio. • No.23 is VR to adjust the contrast or brightness of Character LCD. • No.24 MAX232 IC. How to Download Hex File into MCU of Board

The method to download Hex File into Flash Memory of MCU in Board is to use Program “Flash Magic” that is connected with MCU through Serial Port of computer PC. This program can be downloaded free without any charge from website http://www.flashmagictool.com/ Proceeding to Download Hex File into MCU

1. Interface RS232 Cable between RS232 Serial Port of PC and Board UART‐0 .

2. Supply power into board; in this case, we can see red P_LED is in status ON. 3. Run Program “Flash Magic”, it will display result as shown in Figure 1.1

Page 5: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 5

4. Start setting the initial values into program as desired, so we configure values into program as follows;

4.1 Select COM port corresponding with (in this example, it is COM1) 4.2 Set the baud rate to 9600 4.3 Set Device to be LPC2148 4.4 Set Interface to be None ISP 4.5 Set Crystal Oscillator with MHz corresponding with the value internal Board. In this

case, it is 12.000MHz, so we must set to be 12. 4.6 Find ISP Slide Switch ON Mode and Set ISP Mode(ISP‐M) and Press RESET Switch (RST)

on Board “ARM7 LPC2148 Development Board” to reset MCU to run in Boot Loader following the processes;

5. Select format of erasing data to be “Erase all Flash + Code Rd Prot”.

FIGURE 1.1

Page 6: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 6

6. Set Option to be “Verify after programming”. 7. Click “Browse” to select HEX File for downloading.

8. Click “Start”, Program “Flash Magic” will start downloading data into MCU

instantly. In this case, we can see the status operation at Status Bar and we must wait for the operation until it is completed.

9. When the operation of program is complete, set down Side ISP Switch (NORMAL‐M)

and press RESET Switch (RST) on Board and MCU will start running follow the downloaded program instantly

JUMPER CONECTIONS: J1,J2- To Enable I2C Communication For Memory (EEPROM) J3- J5- This Jumper is used to Enable DAC Output J6-speaker connection J7- This Jumper is used to Enable ADC CH 1 input(PR3) J8,J9- These are the three pin Burg Strips in J8 MIDDLE pin will connect to P _U pin It act as pull up for P1.29. J9 MIDDLE pin will connect to P_U pin It act as pull up for P1.26. NOTE: Before Using JTAG you need to set J8, J9 Jumpers Middle pin to P_D pin

Page 7: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 7

Installing evaluation version Keil-uv4: Double Click on uV4 Setup, you will get the above window. Press Next to proceed with Keil Setup

Page 8: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 8

Check the check box to agree to all the terms and conditions for license agreement and press Next Select the Path to install Keil and press Next

Page 9: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 9

Fill up the Customer information to proceed further installing Keil then Press Next

Page 10: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 10

Wait until all the file are copied. Once done press Next Then in Next screen ,Press Finish to complete the installation. Once Keil is installed, to load Keil uV4 goto to start menu, programs select

Keil uVision4

Page 11: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 11

Once Keil is loaded, an empty workspace is displayed. If any project was opened previously, then the previously opened project will be displayed.

Page 12: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 12

To create a New Project, go to Project. Drop down menu and select New Project

Page 13: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 13

Once you select New Project, it asks you where to save the project. Specify the Path.

Once you specify the Path, select the Chip to be programmed.

Page 14: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 14

Here in this case choose LPC2148 from Phillips Once Once you select the chip, a message box will be displayed. It asks whether to load

Page 15: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 15

Startup code into the Project. Click YES.

Page 16: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 16

To write start writing code, select new file from file drop down menu. On Right Hand Side is the editor where the code can be written...

Page 17: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 17

On Right Hand Side is the editor where the code can be written...

Page 18: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 18

Once the code is written, it has to be added to the Project. To do that right click on the Source group and select .add files to source group. option. Then select the file to be added. You can see the file added on Left Hand side in the Source group.

Page 19: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 19

To Build the project, goto Project Drop Down menu and select Build. Once the project is built, the result can be seen at the bottom. If any errors are present the list of errors will be displayed or if the project has no errors the build

Page 20: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 20

is said to be successful.

Page 21: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 21

When the project is built, it only compiles and links all the files in project. If the same code is to be loaded onto the chip flash memory, we need the hex file. Hex file is the downloadable file which is used to load onto the flash memory of the chip. In order to generate the Hex file, right click on target folder in Project workspace (the first folder visible) and select .Options for Target .LPC 2100. . Check the check box . Create Hex file and press OK Once the option is selected to create Hex file, once again build the Project. This time the .Hex file is created. You can see the hex file in the folder where the Project is saved.

Page 22: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 22

If you want to check for the correctness of the code, then goto Debug Drop Down Menu and select .Start/Stop Debug Session. Here you simulate the program in SIMULATOR mode here you can see Yellow arrow mark that will move step while pressing F11

Page 23: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 23

Installing H-JTAG : used for programming&debugging

1. Before going to Dump HEX file Set jumpers nearby RTC battery in P_D mode nothing

but pull down of P1.26 and P1.29 Now press Finish to Complete the installation.

Page 24: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 24

Load H-JTAG as shown above. In order to work with JTAG without error check for the jumper settings to be made to enter JTAG mode.

Page 25: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 25

The moment the software is loaded, it tries to detect the chip If the chip is not working or the board is not connected to PC, the above error message is displayed.

Page 26: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 26

If the chip is detected, then the device ID will be displayed. This ensures that the chip is functional. Before we start Programming the flash, we should specify which chip we are programming. In order to do that, select Flash Selection from Program Wizard on Left Hand side. In Flash Selection block the vendor of the chip is displayed. Here in this case it is Phillips.

Page 27: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 27

Once you click on Phillips in Flash Selection Block, the list of LPC series chips will be displayed. Since we use LCP 2129 . Once the flash is selected, go for programming. To do the programming, select Programming from Program Wizard. Now it enters into the Programming Mode of

Page 28: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 28

LPC .2129.

Page 29: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 29

In the Programming LPC 2129 Block, we should select the file format to download onto Flash. Here in this case select Intel Hex Format Once file format is selected, select the hex file from src file to be downloaded onto flash.

Page 30: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 30

To Erase the Flash memory, click on the button Erase. This will erase complete flash. Once the flash is erased, the message box will be displayed. Select the hex file to be downloaded

Page 31: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 31

Once

Page 32: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 32

Once the hex file is selected, the path will be shown in Src File text box.

Page 33: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 33

Once the hex file is selected, click on Program Button. The Programming process will start. Once the chip is programmed the message is displayed

Page 34: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 34

Program Debugging using Keil: To do the debugging, first open the Keil uVision3 IDE, Load the project. Once the project is loaded, right click on target folder in Project workspace and select Manage Components.

Page 35: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 35

Once the Manage Components is selected, you can select the target type. That is to configure where the program is to be loaded or select Simulator. Once you select the target click on .Set as Current Target. Select in this case RAM area to load the program for debugging. Select and click OK

Page 36: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 36

Now right click on the target folder in Project Workspace and select Options for Target. This is the window which will be displayed. Now select Debug Tab.

Page 37: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 37

This will be the window which will be displayed when selected Debug Tab. Now

Page 38: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 38

Now select RDI Interface Driver from the dropdown menu . use on Right Hand Side of the window

Page 39: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 39

Select the check box to select .Run to Main. and check box .Load Application at Startup.. Then click the Settings button

Page 40: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 40

In the settings window select H-JTAG.dll file to link it to HJTAG. NOTE: while performing the configuration make sure HJTAG and the target should be detected by HJTAG software. To ensure the configuration file (HJTAG.dll), click on the .configure RDI Driver. button. The above message box will be displayed.

Page 41: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 41

Now select RAM.ini file for initialization file. Now select Utilities Tab and you can see the above window.

Page 42: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 42

Again select the RAM.ini file in init File select box Select

Page 43: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 43

Select RDI Interface Driver from dropdown menu to select Target driver for flash programming.

Page 44: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 44

Check .update Target Interface Debugging. check box. Now click Settings Button. A box will be displayed to select the flash programmer. Here select .J-Link Flash Programmer. and click .OK.

Page 45: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 45

As you select the J-Link Flash Programmer, select HJTAG.dll file to configure the HJTAG.

Page 46: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 46

You can cross check the configuration with HJTAG by clicking on .Configure RDI Driver. button. Once clicked, the above message box will be displayed. In order to load the program into the flash, .hex file is to be created. To create .hex file select the Output Tab and select the .Create HEX File. check box. Once selected rebuild the project, it will create the .hex file to be downloaded.

Page 47: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 47

After all above configuration, the project is ready to go into debug mode. To enter into Debug mode, goto Debug dropdown menu and select .Start/Stop Debug Session..

Page 48: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 48

Once selected, Debug mode is entered. Here the debugging can be done by inserting breakpoints, single step execution or running the program conteniously.

Page 49: Quick Start Manual Brimm ARM
Page 50: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 50

Installing Phillips Flash Utility: Double click on the Flash utility setup. Click on Next It will ask for the path where to install Phillips flash utility. Select the path and click on Next Click on Install Button

Page 51: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 51

click finish and Goto start menu and select the Phillips Flash Utility

Page 52: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 52

This will be the utility loaded for flash programming Select COM PORT from where you download the hex file into flash This will be the utility loaded for flash programming

Page 53: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 53

Select the Baud-rate. Here in this case select 9600 Now click on Read the Device ID Button to detect the target.

Page 54: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 54

If the targets is not connected or not in working condition this error message box appears. If detected, the Part ID and Boot loader ID will be displayed in their relative Text boxes And also a message will be displayed at the bottom .Read Part ID Successfully. NSK NSK To Erase the Flash, click on Erase Button. Once the flash is erased, the message appears at the bottom of the application

Page 55: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 55

To

Page 56: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 56

To program the flash select the file to be loaded into flash Once Once the hex file is loaded, click on Upload to Flash button. Once clicked the programming starts. The programming progress is indicated by the progress bar.

Page 57: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 57

If the check box .Execute Code after upload. is checked, then the program starts to run immediately after downloading the code. The process information will be displayed at the bottom of the application.

NOTE : for Philips Flash utility

Page 58: Quick Start Manual Brimm ARM

#Suite No: 302 & 101, Krupa Towers, Western Hills, Opp: JNTUH, KPHB Kukatpally, HYD www.brimm.co.in email: [email protected] contact : 040-69992024/2026 Page 58

The Philips LPC2000 Flash utility utilizes two, otherwise unused, signals (RTS and DTR) of the PC serial port to control the microcontroller reset and P0.14 pins. The port pin P0.14, if LOW during reset, puts the microcontroller into In System Programming (ISP) mode; this pin has the alternate functions of external interrupt one and general purpose I/O (GPIO). Some details on the associated circuitry will help in understanding how this works. FOR FULL DETAILED DIAGRAM&DESCRIPTION REFER PHILIPS FLASH UTILITY MANUAL Contact information For additional information, please visit http://www.eestechcenter.com For service support send e-mail to:[email protected].

EES TECH CENTER #202,Padmasagar Apartments S.R. Nagar , Hyderabad - 500 038 Andhrapradesh , India PH NO : 91- 040 - 23711541 Mobile : 09396671541,09985784340