Comments (4)
This seems to be unrelated to the Shruthi code itself, but an error in the compiler itself.
Anyway, the Shruthi-1 codebase is so CPU and space constrained that it is only guaranteed to work with avr-gcc-4.3.3. Any other version will generate slightly different code that might not fit in the 64k of Flash memory available on the ATMega.
from shruthi-1.
Thanks! For anyone wondering, I got it to compile (yet to test) by doing the following:
- Download Ubuntu 10.04: http://old-releases.ubuntu.com/releases/10.04.0/ and run in Virtualbox or VMware.
- Edit /etc/apt/sources.list and change all instances of
us.archive
withold-releases
(to get package updates). sudo apt-get install git-core gcc-avr avrdude avr-libc
- Clone the source with
--recursive
for the submodules. - Run
make
This uses avr-g++
4.3.4, so hopefully it gives the right output.
from shruthi-1.
Thanks! For anyone wondering, I got it to compile (yet to test) by doing the following:
1. Download Ubuntu 10.04: http://old-releases.ubuntu.com/releases/10.04.0/ and run in Virtualbox or VMware. 2. Edit /etc/apt/sources.list and change all instances of `us.archive` with `old-releases` (to get package updates). 3. `sudo apt-get install git-core gcc-avr avrdude avr-libc` 4. Clone the source with `--recursive` for the submodules. 5. Run `make`
This uses
avr-g++
4.3.4, so hopefully it gives the right output.
Thanks for all the tips, @mluds ! After a lot of crazy nonsense I got this working on Ubuntu 10.
After make
ing, the resulting firmware is 65396 bytes, which is above the recommended limit of 64512 :(
I wonder if it's because of using 4.3.4 rather than 4.3.3?
@pichenettes, is there anything a desperate maniac could manually trim out of the source files to cut the size down while keeping it functional? It seems like getting a working version of 4.3.3 running is super complicated but also the only viable way to flash this thing at this point. Any ideas?
from shruthi-1.
Quick update: I've managed to downgrade to 4.3.3.
After running make clean
and verifying that the build process re-ran properly, it still looks like the file is over the size limit:
(screenshot above shows the version of avr-g++
, and this path is the one used in the makefile for the tools path)
from shruthi-1.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shruthi-1.