attiny88 uses only 265 bytes of sram

I have a project with an attiny88. I createdan entry in boards.txt and corresponding entry in variants.
All worked, but I could use only 256 bytes of sram. After some searching I found, that the file iotn88.h
contains the line#define RAMEND 0x1FF.
The standard installation of avr-gcc containst the correct value 0x2FF.
I edited this, but the stakck was still located at 0x1ff.

On a linux system, I replaced the avr/bin directory of the arduino installation by a symbolic link
to the avr-gcc location. Everything works fine.

My conclusion ist that some startup file was created using the wrong value.

I have a solution for Linux. Waht should I do for Windows?

I'm looking for the .hex file for my AtTiny88.
Can you post it here please?

thx :wink:
allo

here you go. he was found wandering the street. im going to miss him but glad i could help you reunite.

(remove the .txt before flashing)

TINY88.HEX.txt (210 Bytes)

Johann_Joss:
I have a project with an attiny88. I createdan entry in boards.txt and corresponding entry in variants.
All worked, but I could use only 256 bytes of sram. After some searching I found, that the file iotn88.h
contains the line

#define RAMEND 0x1FF

.
The standard installation of avr-gcc containst the correct value 0x2FF.
I edited this, but the stakck was still located at 0x1ff.
<...>

Perhaps attaching the boards.txt would be useful. I looked in my Attiny85 board definition and this is a pertinent line: attiny85at16p**.upload.maximum_size=8192** Double check your entry for your tiny88.

Ray

thanks for the file.
but i get further the following message:

Does someone can help me to fix it?
How does the hex-code work? What does the single lines indicate?

thx :wink:
allo

appoxl:
thanks for the file.
but i get further the following message:

Does someone can help me to fix it?
How does the hex-code work? What does the single lines indicate?

thx :wink:
allo

When the tiny library installation instructions state to place the library in the user sketch path hardware directory what that means is something like on my system:

\Documents\Arduino\hardware

You DO NOT place the tiny files and core in the program directory.

Ray

appoxl:
thanks for the file.

How does the hex-code work?

that file toggles ALL the bits on ALL the ports on ALL avr chips. this includes t13, t85, t88, up to m328, m128, m1284, m2560 etc. it is a binary file that can be downloaded directly with avrdude and has nothing to do with arduino ide or your errors. good for testing your programmer and t88 (or any other avr) circuit though.

mrburnette:
When the tiny library installation instructions state to place the library in the user sketch path hardware directory what that means is something like on my system:

\Documents\Arduino\hardware

You DO NOT place the tiny files and core in the program directory.

Ray

nope, i get the same message with the tiny-folder in C:\Users\xyz\Documents\Arduino\hardware

an other idea?

Maybe that could help:

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows 7), Board: "attiny88 @ 8 MHz (internal oscillator; BOD enabled)"
avrdude: can't open input file C:\Users\xyz\Documents\Arduino\hardware\tiny\bootloaders: No such file or directory
avrdude: read from file 'C:\Users\xyz\Documents\Arduino\hardware\tiny\bootloaders' failed

thx :wink:
allo

nope, i get the same message with the tiny-folder in C:\Users\xyz\Documents\Arduino\hardware

an other idea?

Maybe that could help:

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows 7), Board: "attiny88 @ 8 MHz (internal oscillator; BOD enabled)"
avrdude: can't open input file C:\Users\xyz\Documents\Arduino\hardware\tiny\bootloaders: No such file or directory
avrdude: read from file 'C:\Users\xyz\Documents\Arduino\hardware\tiny\bootloaders' failed

thx :wink:
allo

Yes...
Now that we have that figured out, the error messages are telling you your "structure" is not correct.

There is a semi-rigid format for how files MUST be associated with directory names.
C:\DOCUMENTS\ARDUINO\HARDWARE\AT_TINY
├───bootloaders
│ ├───empty
│ └───optiboot
└───cores
├───empty
└───tiny

The reason that I know this is correct is IT WORKS WHEN DONE CORRECTLY.

AT_tiny.zip (232 KB)

hi,
the attiny88 is missing in your zip-folder. or can i use this hex:

:020000020000FC
:100000000000AFEFAFBBAEBBE09A7DB37A1371BF18
:10001000A4BBA1BBA7BBAABBA4B9AAB9AFEBA7B9A4
:1000200075E570957BBB75B978BB7BB978B975BB45
:1000300072BB92E088E05A95F1F70197E1F7F1CFB2
:00000001FF

the error is always the same... :relaxed:

but attiny85 and 4313 work fine.

thx
allo

After some searching I found, that the file iotn88.h

It looks like this is just wrong in the version of avr-gcc that ships with arduino (which is quite old.)
Which copy did you edit? It's possible that there are several hiding in various places with arduino and gcc and tiny installed...

oops. The bug is in avr-libc, not avr-gcc.
Actual pointer: AVR C Runtime Library - Bugs: bug #31086, ATTINY88 RAMEND value not set to... [Savannah]