Search found 26 matches

by mikenick42
Tue Aug 11, 2015 1:40 am
Forum: ChibiOS/NIL
Topic: How to properly reference threads in NIL?
Replies: 3
Views: 2721

Re: How to properly reference threads in NIL?

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.
by mikenick42
Sun Jun 07, 2015 3:43 am
Forum: AVR Support
Topic: Running on the Atmega2560
Replies: 9
Views: 3213

Re: Running on the Atmega2560

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...
by mikenick42
Thu Jun 04, 2015 4:14 am
Forum: AVR Support
Topic: Running on the Atmega2560
Replies: 9
Views: 3213

Re: Running on the Atmega2560

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...
by mikenick42
Wed Jun 03, 2015 5:24 am
Forum: AVR Support
Topic: Running on the Atmega2560
Replies: 9
Views: 3213

Re: Running on the Atmega2560

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...
by mikenick42
Tue Jun 02, 2015 2:39 am
Forum: AVR Support
Topic: ChibiOS on the Arduino Uno
Replies: 5
Views: 2642

ChibiOS on the Arduino Uno

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...
by mikenick42
Tue Jun 02, 2015 2:32 am
Forum: AVR Support
Topic: Running on the Atmega2560
Replies: 9
Views: 3213

Running on the Atmega2560

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

Go to advanced search