LPC ISP Programming
From Waveshare Wiki
We use Flash Magic to program Hex file to the LPC chip. (We use Open1768 development board at this example.)
- 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.)
- Connect the USART interface of the board to the USB port of a PC with LPC ISP (mini).
- Install Flash Magic.
- Power up the target board and run Flash magic. Operate the board as follows.
- 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";
- 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.
- 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.)
- Check the programming progress bar to confirm if finish.