Coder Social home page Coder Social logo

Comments (6)

greiman avatar greiman commented on September 27, 2024 3

It's a bug in the version of gcc in 1.80.

Go to libraries/ChibiOS_AVR/src/utility/chthreads.c and add this as a work around at line 397.


void chThdExit(msg_t msg) __attribute__((used));  //<<<< ADD THIS LINE
void chThdExit(msg_t msg) {

  chSysLock();
  chThdExitS(msg);
  /* The thread never returns here.*/
}

from chibios-arduino.

greiman avatar greiman commented on September 27, 2024 1

Download the newest version of ChibiOS and try porting it to Arduino. There really are no tutorials about building operating systems for small embedded systems.

Here is a link.

Better yet, Download ChibiStudio and use it with a low cost STM32 board.

Ebay has this board for about $3.00 with 20K RAM and 64K flash.

Digikey has this board for about $15.00 with 128K of RAM and 512K of flash.

from chibios-arduino.

greiman avatar greiman commented on September 27, 2024

I won't be updating ChibiOS, use the standalone version of ChibiOS.

from chibios-arduino.

greiman avatar greiman commented on September 27, 2024

I tried 1.80 on Windows and it is OK. Looks like a problem with the Linux version of the IDE.

Here is chBlink:

Sketch uses 3076 bytes (9%) of program storage space. Maximum is 32256 bytes.
Global variables use 557 bytes (27%) of dynamic memory, leaving 1491 bytes for local variables. Maximum is 2048 bytes.

Here is the blinkPrint example.

Sketch uses 5004 bytes (15%) of program storage space. Maximum is 32256 bytes.
Global variables use 782 bytes (38%) of dynamic memory, leaving 1266 bytes for local variables. Maximum is 2048 bytes.

from chibios-arduino.

biank88 avatar biank88 commented on September 27, 2024

Thanks! with that tricky line everything seems to work fine.
I've tried to study the code by myself but I got lost pretty soon. Do you have any suggestions on how to start hacking with ChibiOS?

from chibios-arduino.

biank88 avatar biank88 commented on September 27, 2024

Thanks!

from chibios-arduino.

Related Issues (9)

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.