LPC ISP Programming

From Waveshare Wiki
Jump to: navigation, search


We use Flash Magic to program Hex file to the LPC chip. (We use Open1768 development board at this example.)

  1. Jumper ISP JMP needs to be set on. (Some development boards have none of ISP JMP, so it is no need to set on ISP JMP of these boards.)
  2. Connect the USART interface of the board to the USB port of a PC with LPC ISP (mini).
  3. Install Flash Magic.
  4. Power up the target board and run Flash magic. Operate the board as follows.
  5. Set the software:
    • Click "Select Device" and select LPC1768.
    • COM Port: choose the COM Port according to which port has connected to the USART.
    • Baud Rate: choose appropriate baud rate as 230400. (Download speed and stability depend on baud rate)
    • Oscillator(MHZ): input 12, according to the onboard crystal.
    • Check "Erase blocks used by Hex File" and "Verify after programming";
      Flash Magic-Open1768-1.jpg
    • Open Advanced Options -> Hardware Config -> check "Use DTR and RTS to control RST and ISP pin" -> input T1: 50 ms T2: 150 ms. (A shorter time input makes downloading faster, however, it can also cause instability.) As shown in the following figure.
      Flash Magic-Open1768-2.jpg
    • Click "Browse" and select the Hex file for programming.
    • Click "Start" to start programming. (If any error occurs, please reconnect the board, reset it, and restart the software.)
      Flash Magic-Open1768-3.jpg
    • Check the programming progress bar to confirm if finish.
      Flash Magic-Open1768-4.jpg