Hallo Oliver,
vielen Dank für deine Hilfe, vom Meister persönlich, welch eine Ehre.
Als Hardware verwende ich ATMega88 @ Pollin Eval-Board.
Display ist fliegend verkabelt und tut einwandfrei. Nur die Software
macht mir Sorgen :(
Wie schon gesagt in der Lib, Make ausführen klappt, .hex wird erzeugt
und tut einwandfrei:
1 | avr-size fonts.elf
|
2 | text data bss dec hex filename
|
3 | 7078 12 131 7221 1c35 fonts.elf
|
Soweit sogut, dank deinem Tip habe ich jetzt die Defines in der
DOGM128.h angepasst:
1 | #define DOG_SPI_ATMEGA
|
2 |
|
3 | #define DOG_SPI_SS_PORT B
|
4 | #define DOG_SPI_SS_PIN 2
|
5 |
|
6 | #define DOG_SPI_SCL_PORT B
|
7 | #define DOG_SPI_SCL_PIN 5
|
8 |
|
9 | #define DOG_SPI_MOSI_PORT B
|
10 | #define DOG_SPI_MOSI_PIN 3
|
11 |
|
12 | #define DOG_SPI_A0_PORT B
|
13 | #define DOG_SPI_A0_PIN 1
|
14 |
|
15 | #define DOGM128_HW
|
Ich habe jetzt unter Source Files alle *.h Files zum Projekt hinzugefügt
und das selbe mit den *.h Files
Außerdem habe ich mit das Makefile nochmal genauer angesehen und
Versucht sie im AVRStudio anzupassen:
"Project" -> "Configuration Options" -> "Custom Settings"
Die "Custom Compilation Options" angepasst, dem Make File entsprechend:
AVRStudio Build:
1 | avr-gcc -mmcu=atmega88 -Wall -std=gnu99 -g -I. -I ../../lib/ -DF_CPU=1000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wstrict-prototypes -MD -MP -MT dogm128.o -MF dep/dogm128.o.d -c ../lib/dogm128.c
|
Make
1 | avr-gcc -DF_CPU=8000000 -mmcu=atmega88 -DDOGM128_HW -DDOG_SPI_ATMEGA -DDOG_SPI_S S_PORT=B -DDOG_SPI_SS_PIN=2 -DDOG_SPI_SCL_PORT=B -DDOG_SPI_SCL_PIN=5 -DDOG_SPI_M OSI_PORT=B -DDOG_SPI_MOSI_PIN=3 -DDOG_SPI_A0_PORT=B -DDOG_SPI_A0_PIN=1 -g -Os -Wall -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -I. -I../.. /lib/ -std=gnu99 -Wstrict-prototypes -c -o ../../lib/dogmsh.o ../../lib/dogmsh.c
|
Der Build läuft soweit.
Allerdings bekomme ich 2 Errors:
1 | c:/winavr-20100110/bin/../lib/gcc/avr/4.3.3/../../../../avr/bin/ld.exe: fonts.elf section .text will not fit in region text
|
2 | c:/winavr-20100110/bin/../lib/gcc/avr/4.3.3/../../../../avr/bin/ld.exe: region text overflowed by 1162 bytes
|
Was mache ich falsch dass der Code nicht mehr in die text region passt?