AVR_Transistortester build too large for target

OP #5325165
Lesenswert?
• ▲
▼
My apologies for not speaking German. A note on the AVR_Transistortester 
page suggests that members here are comfortable with English.

I hope to develop some additional features for the excellent 
AVR_Transistortester but right now I am failing before I've started.

My tester is 328p-based with ST7735 display running software Version 
1.12K (non-readable, as supplied), and I'd like to start as close to 
that as I can.
I downloaded Karl-Heinz Kübbeler's "software-112k" branch and installed 
the recommended WinAVR development system.

A test build using the ST7735 Makefile (no changes) exceeds available 
memory by 11.7%:
1
    > "make.exe" all
2

3
    8 MHz operation configured.
4
    AVR Memory Usage
5
    ----------------
6
    Device: atmega328p
7

8
    Program:   36614 bytes (111.7% Full)
9
    (.text + .data + .bootloader)
10

11
    Data:        458 bytes (22.4% Full)
12
    (.data + .bss + .noinit)
13

14
    EEPROM:      881 bytes (86.0% Full)
15
    (.eeprom)
16

17
    > Process Exit Code: 0
18
    > Time Taken: 00:01

I was surprised, but the "ST7735" options don't match my device 
perfectly so I tried again using a slightly customised Makefile with a 
similar result: 36506 bytes (111.4% Full).

I tried again using the supplied "mega328_st7565" Makefile (no changes). 
This builds to 35458 bytes (108.2% Full).

So I'm a little stuck at this point. I get no error message but an 
apparently successful build which is too large to fit in the target 
memory. I notice the output "(.text + .data + .bootloader)" suggests a 
bootloader is included. I don't need one but can't find it in the 
Makefile so I guess it may simply be a misleading generic comment.

It has occured to me that incorrect optimisation options (or no 
optimisation) might cause this but I'm expecting the Makefile to take 
care of all that. If it's an incorrect build switch it could take me 
days to find (I'm not familiar with any of this toolchain).

I expect this is actually trivial but I have searched all over and 
probably missed it. Can anyone offer an explanation/help?
Many thanks.

Antwort schreiben

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.