This commit is contained in:
olikraus 2018-06-09 16:51:30 +02:00
parent 47dff94f53
commit 3636b42b6e
16 changed files with 61 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -0,0 +1,27 @@
create new c project
001: plain as7
002: create a new gcc c executable project, enter a useful name and solution name
003: select your target device
004: as7 will generate a main.c file. Replace the content of the generated main.c with
the content of https://github.com/olikraus/u8g2/blob/master/sys/avr/atmega328/main.c
005: open the project Properties (Alt+F7)
006: Add Existing item...
007: Mark and add all files of the u8g2/csrc directory, press "add"
008: Select the project, locate Toolchain tab, select "All Configurations", select AVR/GNU C Compiler/Directories and press the green plus icon
Add ".." as relative include path
009: Select the project, locate Toolchain tab, select "All Configurations", select AVR/GNU C Compiler/Symbols and press the green plus icon
Add the target frequency of your controller (here: "F_CPU=8000000")
010: Press F7 (Build->Build Solution)
011: On my own Windows 10 environment, it was required to install a different usb driver for the AVRISP mkII
012: Open the Device Programming dialog (Tools menu)
013:
Select your ISP tool in under "Tool". Select the correct target device and interface. Press "Apply" button.
Read the device signature from your target controller by pressing the "Read" button.
Goto "Production file" tab and select the generated .elf file as a "production file"
014: Check "Flash" and press the "Program" button.
Project->Add Existing Item...

View File

@ -1,9 +1,39 @@
/*
main.c
AVR Test Project
This project will use 4-Wire SW SPI
main.c
AVR Test Project
This project will use 4-Wire SW SPI
Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/)
Copyright (c) 2016, olikraus@gmail.com
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list
of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or other
materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/