adapted: https://github.com/dbuezas/lgt8fx/
source: https://github.com/brother-yan/LGTISP
LGT8Fx8P ISP download protocol implementation
This is an implementation of LGT8Fx8P ISP download protocol. You can make arduino board as ISP for programing LGT8Fx8P.
- In the menu select:
Tools
/Arduino as ISP
/SERIAL_RX_BUFFER_SIZE to 250
- Open
File
/Examples
/LarduinoISP
/LarduinoISP
- Upload the sketch.
- Go back to normal serial buffer size:
Tools
/Arduino as ISP
/Default
- Put a capacitor (e.g 10uF) between the
RESET
pin andVCC
pin of ISP board to avoid resets while uploading. Alternatively, shortRESET
andVCC
, but make sure to NOT press the reset button in the board. - Congratulations, you have a LGTISP Programmer now!
- Connect
VCC
,GND
,SWD
,SWC
andRST
LGTISP LGT D13 -> SWC D12 -> SWD D10 -> RST
- change Programmer to AVR ISP.
- click Burn Bootloader
- Now the target board can receive sketches via serial
- Open the desired sketch
- Configure the board from
Tools
as normal - Change Programmer to AVR ISP.
- With everything wired, in the menu go to
Sketch
/Upload using Programmer
(alternatively hold shift while clicking the upload button) - Congratulations! the sketch is now uploaded without a bootloader! Uploading via serial should't be possible anymore on that board (unless you Burn the bootloader again)
rickygai created a very detailed guide here
ISP code: brother_yan This page: dbuezas