Difference between revisions of "LPC ISP Programming 2"
From Waveshare Wiki
Line 9: | Line 9: | ||
#*Flash Bank: select Bank 0 as default.(It depends on the Hex file.) | #*Flash Bank: select Bank 0 as default.(It depends on the Hex file.) | ||
#*COM Port: choose the COM Port according to which port has connected to the USART. | #*COM Port: choose the COM Port according to which port has connected to the USART. | ||
− | #*Baud Rate: choose appropriate baud rate | + | #*Baud Rate: choose appropriate baud rate 57600. (57600 is balanced between Download speed and stability) |
#*Oscillator(MHZ): input 12, according to the onboard crystal. | #*Oscillator(MHZ): input 12, according to the onboard crystal. | ||
#*Check "Erase blocks used by Hex File", "Verify after programming" and "Activate Flash Bank"; | #*Check "Erase blocks used by Hex File", "Verify after programming" and "Activate Flash Bank"; | ||
#*Click "Browse" and select the Hex file for programming. | #*Click "Browse" and select the Hex file for programming. | ||
#*Click "Start" to start programing. (If any error occur, please reconnect the board, reset it, and restart the software.)<br />[[File:Flash_Magic-Open4337-C-1.jpg|thumb|left|500px]]<div class="sep10px"></div> | #*Click "Start" to start programing. (If any error occur, please reconnect the board, reset it, and restart the software.)<br />[[File:Flash_Magic-Open4337-C-1.jpg|thumb|left|500px]]<div class="sep10px"></div> |
Latest revision as of 03:29, 12 May 2015
We use Flash Magic to program Hex file to the LPC chip. (We use Open4337 development board at this example.)
- Jumper setting: Set jumper ISP(/USART0) on and set jumper BOOT CONFIG to 0.
- Connect the USB (mini) interface of USART0 to the USB port of a PC. As shown in the following figure.
- Install Flash Magic.
- Power on the target board and run Flash magic. Operate the board as follows.
- Set the software:
- Click "Select Device" and select LPC4337.
- Flash Bank: select Bank 0 as default.(It depends on the Hex file.)
- COM Port: choose the COM Port according to which port has connected to the USART.
- Baud Rate: choose appropriate baud rate 57600. (57600 is balanced between Download speed and stability)
- Oscillator(MHZ): input 12, according to the onboard crystal.
- Check "Erase blocks used by Hex File", "Verify after programming" and "Activate Flash Bank";
- Click "Browse" and select the Hex file for programming.
- Click "Start" to start programing. (If any error occur, please reconnect the board, reset it, and restart the software.)