Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not fitting into Atmega8 but fits fine into Attiny85. #91

Open
positron96 opened this issue Aug 9, 2018 · 0 comments
Open

not fitting into Atmega8 but fits fine into Attiny85. #91

positron96 opened this issue Aug 9, 2018 · 0 comments

Comments

@positron96
Copy link

Hello. I'm trying to compile a program with RF24, RF24Network and RF24Mesh for Atmega8. It is larger that its memory and I get ld.exe: region `text' overflowed by 90 bytes message.

But if I compile for attiny85 (using https://github.com/SpenceKonde/ATTinyCore), the firmware fits totally fine and I get Sketch uses 6318 bytes (77%) of program storage space. Maximum is 8192 message.

Can I get the same size for Atmega8?

I've noticed that RF24 uses special SPI code for Attiny's (which seems to be software bitbanging) while Megas use generic SPI library. Is this the only cause for size increase? Can I tweak defines to use ttiny's software SPI in atmega?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant