GithubHelp home page GithubHelp logo

Comments (4)

pichenettes avatar pichenettes commented on June 20, 2024

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.

mluds avatar mluds commented on June 20, 2024

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.

from shruthi-1.

vcavallo avatar vcavallo commented on June 20, 2024

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 makeing, 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.

vcavallo avatar vcavallo commented on June 20, 2024

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:

image

(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 (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.