Search found 26 matches
- Tue Aug 11, 2015 1:40 am
- Forum: ChibiOS/NIL
- Topic: How to properly reference threads in NIL?
- Replies: 3
- Views: 2721
I don't know if it counts as the right way to do it, but I have it working with a global thread pointer and then assigning the result of chThdGetSelfX() to that in the listener.
Hi Fabio, Thanks for applying that patch, I grabbed the latest code from git and both the NIL and RT demos are working now. It was mentioned in the other thread that the line: tp->p_ctx.sp->pcx = 0; may need to change if a program gets big enough. I've replaced the 0 in each with "(int)_port_th...
Here's the patch to nilconf.h and chconf.h that is working for me with a 2560. I don't have anything with a 1280 to test with. The makefile does need to be changed, the 2560 and the 1280 have different device signatures. NIL seems to be working fine. ChibiOS will load and can run a while loop in mai...
It took me way too long to realize that I needed to edit nilcore.h, but adding pcx to the struct and the setup works with the demo. The error I'm seeing in Chibi, after some notes and warnings about default return types, is: ../../../test/rt/testthd.c: In function ‘thd1_execute’: ../../../test/rt/te...
- Tue Jun 02, 2015 2:39 am
- Forum: AVR Support
- Topic: ChibiOS on the Arduino Uno
- Replies: 5
- Views: 2642
I was just wondering if everyone here is using the libraries greiman wrote for the AVR chips with small amounts of memory. I tried to modify the RT-ARDUINOMEGA example and even with no OS features enabled couldn't get a program to fit into the flash. The NIL-ARDUINOMEGA example was easy enough to mo...
Hi, I'm trying to run either ChibiOS or NilOS on a knockoff Arduino Mega. The blink and fade demos from the Arduino IDE work, so I'm pretty sure that at least the AVR chip is real. Starting from the demos in ChibiOS/demos/AVR I can compile the NIL demo and load it using avrdude but then the LED just...