16

ARMFlash User ManualDuring programming, an IDC-10 female connector should be plugged in the on-board IDC-10 male connector. This connection enables the programming signals to be transferred

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

  • ARMflash Programmer 4Software Installation 6

    ARMflash Software 8Keyboard Shortcuts and Command Line Parameters 9

    Programmer’s Operation 10

    ARMflash Programmer Connection 11Examples of the ARM Microcontroller Connection 12

    CONTENTS

  • 44

    AARR

    MMffll

    aasshh

    PPRR

    OOGG

    RRAA

    MMMM

    EERR

    ARMflash PROGRAMMER

    Along with complementary software, ARMflash programmer represents an irreplaceable tool for allthose working with ARM microcontrollers. By means of this programmer, it is possible to program

    almost all ARM microcontrollers including those embedded (soldered) on the printed board. The

    ARMflash programmer is connected to the microcontroller via four lines:

    P0.0 - TX (transmitter output);

    P0.1 - RX (receiver input);

    P0.14 - ENT (enter programming mode); and

    RESET (external reset).

    These lines are contained within a flat cable ending with a female IDC-10 connector. When creat-ing a target device, the appropriate 10-pin IDC male connector with the spacing of 2.54 mm

    between pins should be soldered on it. Connector pins should be connected to the microcontroller

    pins the position of which varies depending on the microcontroller’s type and package. There are

    several examples of connection schematics provided at the end of this manual. During operation,

    the ARMflash programmer may be inactive or active.

    Programmer is inactive

    A multiplexer within the pro-

    grammer connects the micro-

    controller pins to peripheral

    components on the printed

    board via flat cable. In thisway, the microcontroller

    directly controls the operation

    of device without affecting the

    operation of the programmer.

    Accordingly, even the IDC-10

    female connector is connect-

    ed, the ARMflash program-mer does not affect the oper-

    ation of device.

  • 55

    AARR

    MMffll

    aasshh

    PPRR

    OOGG

    RRAA

    MMMM

    EERR

    Programmer is active

    By clicking the WRITE option,

    the multiplexer within pro-

    grammer disconnects the

    microcontroller pins from the

    rest of on-board electronics. It

    allows programming of the

    microcontroller using TX, RX,

    ENT and RESET signals.

    When programming process

    is completed, the ARMflashautomatically changes its

    state and becomes inactive.

    If the target board has its own 5V power supply, it can also be used for powering the ARMflash program-mer. In this case, it is necessary to open ARMflash programmer plastic case and remove the jumper forpower supply selection. Otherwise, if the target board does not have its own power supply source, the

    jumper should be left on. In this case the programmer is powered via programmer USB cable which con-

    nects the programmer to a PC. Any other power supply on the target board must be suspended.

    This figure illustrates the position of jumper when the program-

    mer is powered via USB cable.

    This figure illustrates the programmer without jumper for power sup-

    ply selection. In this case the programmer is powered by the target

    board which has its own power supply.

  • 66

    SSOO

    FFTTWW

    AARR

    EE II

    NNSS

    TTAALLLL

    AATT

    IIOONN

    SOFTWARE INSTALLATION

    Step 1: Start installation

    Insert the product CD into your PC drive. After a few sec-

    onds, a list with all MikroElektronika’s products will appear

    on the screen. To start installation of ARMflash software,select ARMflash and click on the ARMProg software anddrivers for Windows.You can also download ARMFlash_setup.exe free ofcharge from our web site. In this case, you should

    start the installation from your hard drive. A welcome

    window will appear on your screen. Click Next to pro-ceed with the installation process.

    Step 2: License Agreement

    Prior to starting the installation, please review the License

    terms. To accept these, select the option I accept theterms in the License Agreement and click Next.

    Step 3: Choose Components

    For the sake of simplicity, this step of installation offers

    you only one component to select. Just click Next.

    Note: Make sure that the ARMflash programmer is not connected to PC during the ARMflash software installation.

  • 77

    SSOO

    FFTTWW

    AARR

    EE II

    NNSS

    TTAALLLL

    AATT

    IIOONN

    Step 4: Choose Install Location

    Now you should specify the folder to install the program in.

    If you want to install the program in a folder different from

    default, click Browse and select another folder on harddisc. Then click Next. If you choose the default folder, theprogram will be installed on the following destination:

    C:\Program Files\Mikroelektronika\ARMFLASH

    Step 5: Installation Details

    The ARMflash installation will start in this step and itsprogress will be shown on the screen. If you are inter-

    ested in details about the installation click the Showdetails button.

    Step 6: Finish

    You will be notified by the window, as shown in Figure on

    the right, that Windows has successfully installed the

    ARMflash. Click Finish to complete the installation process.

  • 88

    AARR

    MMffll

    aasshh

    SSOO

    FFTTWW

    AARR

    EE

    ARMflash SOFTWARE

    Step 1: Run the ARMflashprogrammer

    Run the ARMflash from your PC. Click the Device optionand select the appropriate microcontroller to program.

    ARMflash will automatically set parameters for workingwith the specified microcontroller.

    Step 2: Load HEX file

    Click the Load option which opens the window shown inFigure on the right. Select the appropriate executable file

    (has extension .HEX in its name) and click the Openoption. In this way, the file will be loaded into programmer

    buffer. On the basis of control bits stored in the HEX file,

    the ARMflash will do all necessary settings.

    Step 3: Write a program

    Click the Write option in the upper right corner of theworking window to start programming the microcon-

    troller. The programming progress will be shown in the

    right bottom corner of the working window.

  • 99

    KKEE

    YYBB

    OOAA

    RRDD

    SSHH

    OORR

    TTCC

    UUTT

    SS AA

    NNDD

    CCOO

    MMMM

    AANN

    DD LL

    IINNEE

    PPAA

    RRAA

    MMEE

    TTEE

    RRSS

    KEYBOARD SHORTCUTS AND COMMAND LINE PARAMETERS

    Alt-E Erase

    Alt-B Blank check

    Alt-W Write

    Alt-V Verify

    Alt-R Read

    Alt-D Change MCU

    Ctrl-S Save

    Ctrl-O Open (Load)

    Ctrl-R Reload

    Alternatively, you can use the ARMflash programmer from the command line.This way, you will be enabled to use the ARMflash programmer from someother software, compiler etc. Here is the list of command line parameters:

    -w Write to ARM

    -v Verify

    -e Erase ARM

    -r Read from ARM

    -p ARM name (for example: LPC2148, LPC2214...)

    -f File name (must be enclosed with " “)

    -b Blank check

    -q Close ARMflash after programming

    armflash.exe -w -pARMLPC2148 -v -f"C:\somefile.hex"

    This will program the ARM microcontroller using C:\somefile.hex. Imme-

    diately after write, it will verify loaded file.

    armflash.exe -r -pARMLPC2148

    This will read the ARM program memory.

    armflash.exe -e -pARMLPC2148

    This will erase program from the ARM microcontroller.

    Keyboard Shortcuts

    Command Line

    Example 1

    Example 2

    Example 3

  • 1100

    PPRR

    OOGG

    RRAA

    MMMM

    EERR

    ’’SS OO

    PPEE

    RRAA

    TTIIOO

    NN

    PROGRAMMER’S OPERATION

    Programming an ARM microcontroller is performed using signals TX, RX, ENT and RESET from the

    ARMflash programmer. These are brought to the P0.0, P0.1, P0.14 and RESET pins. Additionally,the microcontroller pins VCC and GND must be supplied with 3.3V power supply voltage. In order

    to enable programming to run without errors, make sure that the programming pins are not connect-

    ed to other electronic components during programming. Otherwise, during normal operation, these

    pins must be connected to other components as per project.

    Since the microcontroller is soldered on

    the printed board (with no use of sock-

    et), it is necessary to enable switching

    over between the programmer and

    other components using jumpers. For

    this reason, it is important not to forget

    to solder an IDC-10 male connector

    during device design.

  • 1111

    AARR

    MMffll

    aasshh

    PPRR

    OOGG

    RRAA

    MMMM

    EERR

    CCOO

    NNNN

    EECC

    TTIIOO

    NN

    ARMflash PROGRAMMER CONNECTION

    During programming, an IDC-10 female connector should be plugged in the on-board IDC-10 male

    connector. This connection enables the programming signals to be transferred from the programmer

    to the microcontroller. Pay attention to the orientation of the female IDC-10 connector. It has to be

    properly oriented in order to make this programming work. Refer to the Figure below.

    On-board IDC-10

    male connector

    On-board IDC-10 male con-

    nector’s pinout

    IDC-10 male connector

    and ARMFlash female

    connector connected

    The ARM microcontroller power supply voltage is +3.3V. As it is

    not provided by the programmer, it is necessary to provide an on-

    board regulator marked as REG in the Figure above. If your

    ARMflash programmer is not supplied over USB cable, it is nec-essary to provide additional +5V power supply for its operation.

    Figure on the right illustrates an IDC-10 connector’s pinout. Pins

    on the left side of the connector are used for connection to the

    microcontroller, whereas the pins on the right side are used for

    connection to other components.

  • 1122

    Connection schematic for the on-board IDC-10 male connector and 44-pin ARM microcontroller

    such as LPC2103. These microcontrollers need additional 1.8V power supply which must be provid-

    ed on-board.

    The following examples illustrates the connection between 44, 48, 64 and 144-pin ARM microcon-

    troller and IDC-10 male connector.

    During normal operation, its pins must be connected using jumpers as shown in Figure below. In this way,

    the microcontroller pins are connected to the rest of on-board electronics. Note that only three middle pairs

    of pins (P0.0, P0.1 and P0.14) of the IDC-10 male connector are connected using jumpers. You must not

    connect end pairs of pins as connecting power supply pins (VCC +3.3V and VCC +5V) can damage the

    device, whereas connecting the RESET and GND pins can cause the device to malfunction.

    On-board IDC-10

    male connector

    with jumpers.

    EXAMPLES OF THE ARM microcontroller CONNECTION

    AARR

    MMffll

    aasshh

    PPRR

    OOGG

    RRAA

    MMMM

    EERR

    CCOO

    NNNN

    EECC

    TTIIOO

    NN

  • 1133

    EEXX

    AAMM

    PPLLEE

    SS OO

    FF AA

    RRMM

    mmiicc

    rrooccoo

    nnttrroo

    lllleerr

    CCOO

    NNNN

    EECC

    TTIIOO

    NN

    Connection schematic for the on-board IDC-10 male connector and 48-pin ARM microcontroller

    such as LPC2103, 2104, 2105 and 2506. These microcontrollers need additional 1.8V power sup-

    ply which must be provided on-board.

    Connection schematic for the on-board IDC-10 male connector and 64-pin ARM microcontroller

    such as LPC2141, 2142, 2144, 2146, 2148, 2131, 2132, 2134. 2136 and 2138.

  • 1144

    EEXX

    AAMM

    PPLLEE

    SS OO

    FF AA

    RRMM

    mmiicc

    rrooccoo

    nnttrroo

    lllleerr

    CCOO

    NNNN

    EECC

    TTIIOO

    NN

    Connection schematic for the on-board IDC-10 male connector and 144-pin ARM microcontroller

    such as LPC2212, 2214, 2292 and 2294. These microcontrollers need additional 1.8V power sup-

    ply which must be provided on-board.

    Connection schematic for the on-board IDC-10 male connector and 64-pin ARM microcontroller

    such as LPC2119, 2129, 2194, 2114 and 2124. These microcontrollers need additional 1.8V power

    supply which must be provided on-board.