Setting up the Arduino IDE to work with the LGT8F328P
Menu bar => File => Preferences => Additional Board Manager URLs: => click on the little 'windows' icon to the right of the text box
Add the following row of text (this may be the only row if you've not previously used boards other than the vanilla Arduino ones)
Code: Select all
https://raw.githubusercontent.com/dbuezas/lgt8fx/master/package_lgt8fx_index.json
Click the OK button to close the Additional Boards Manager URLs window, then click the OK button to close the Preferences window.
Menu bar => Tools => Board => Boards Manager...
In the text box near the top that says 'Filter your search...' type LGT8
You should see LGT8fx Boards by dbuezas. Install the latest version. It was 1.0.6 at the time I wrote this. Click image for larger view.
Click the Close button to close the Boards Manager window.
Menu bar => Tools => Board: choose the options shown below. Click image for larger view.
You may not see 'ESP32 Arduino' and other options unless you've already installed additional board managers for those. 'Arduino AVR boards' is there by default (and you'll choose that to go back to programming normal Nanos, Unos, etc.) and the one you need here is the 'Logic Green Arduino AVR Compatible Boards'.
Choose the Board: option first, and then the other Options for Clock Source, Clock, Variant, etc. will appear. Set them as shown in the image above. Make sure you set the Programmer: option to 'AVR ISP', and
NOT 'LGTSWD mkII as ISP'.
If you're using the board with the square chip with pins along all four sides, then Variant: should instead be set to '328P-LQFP32 (e.g. MiniEVB nano-style and WAVGAT)'.