[FUN] Preliminary results

Discussions and support about ChibiOS/NIL, the almost nil RTOS.
User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: [FUN] Preliminary results

Postby Giovanni » Fri Jan 25, 2013 8:29 am

Good point about atomicity, probably that applies to ChibiOS too.

Giovanni

mobyfab
Posts: 483
Joined: Sat Nov 19, 2011 6:47 pm
Location: Le Mans, France
Has thanked: 21 times
Been thanked: 30 times

Re: [FUN] Preliminary results

Postby mobyfab » Wed Apr 03, 2013 10:38 am

512 bytes ram usage would be pretty cool.

Right now the smallest F0 devices (4K RAM) cannot run the full ChibiOS kernel AFAIK.

Nil on a tssop20 F0 would be awesome :D

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: [FUN] Preliminary results

Postby Giovanni » Wed Apr 03, 2013 3:34 pm

Hi,

Definitely, I plan to restart working on Nil during vacations, after ChibiOS 2.6.0 release. I really like the concept.

Giovanni

theShed
Posts: 50
Joined: Tue Feb 26, 2013 3:43 pm
Location: The flatlands of East Anglia

Re: [FUN] Preliminary results

Postby theShed » Fri Apr 05, 2013 4:25 pm

Right now the smallest F0 devices (4K RAM) cannot run the full ChibiOS kernel AFAIK.

Nil on a tssop20 F0 would be awesome


You can...
OK, you can't run much and have to shave the stack sizes down to the bare minimum, but it will run.
I'm got a couple of tasks with PAL, SERIAL, SPI and GPT on an LPC812 and it all works.
That's a CM0+ with 32k FLASH and 4K RAM in a tssop20. :ugeek:

I'll will be trying Nil as soon as I can though - I'm completely out of RAM so for any new features I'll have to scavange some bytes from somewhere....

--
mike

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: [FUN] Preliminary results

Postby Giovanni » Sat May 25, 2013 7:27 pm

Hi,

Sorry for keeping you waiting, ChibiOS is already a big enough effort. I committed the suggested fixes on Nil, also the ones suggested by saraben here: viewtopic.php?f=12&t=941

I also made several other changes in the direction of ChibiOS-Nil convergence plan explained here: http://www.chibios.org/dokuwiki/doku.ph ... _and_ideas

I know there is another problem left, when a semaphore timeouts the counter value is not incremented, I have to think about this one, probably the solution will require to keep a more detailed track of the thread state not just he waitobj pointer equality with NULL.

Giovanni

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: [FUN] Preliminary results

Postby Giovanni » Sat Jun 01, 2013 11:55 am

Hi,

Several improvements to Nil:
1) Fixed the problem with semaphores counter on timeout and another timeout-related problem that I introduced with last changes.
2) Saved one field in the thread structure, so it is even smaller now... 6 or 12 bytes depending on the architecture (8/16 or 32 bits), I don't think it can get smaller than that.
3) Introduced the concept of thread state as an explicit field. This will help with the upcoming Eclipse debug plugin and debug in general.

Of course I could have introduced bugs since there is not yet a test suite but the demo application apparently runs fine.

Next, test suite and API extension.

Giovanni

teknokita
Posts: 2
Joined: Fri Jan 18, 2013 8:57 pm

Re: [FUN] Preliminary results

Postby teknokita » Sun Jul 14, 2013 7:23 pm

I am new in micro & rtos, I was interested to learn NILRTOS because ChibiOS looks very complex system, but I do not have STM32F0 board, I tried porting to STM32F3 Discovery with no success, is there any plan ported NILRTOS to STM32F3 Discovery?
Thanks,,

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: [FUN] Preliminary results

Postby Giovanni » Sun Jul 14, 2013 7:51 pm

HI,

Yes, it is possible but I can't promise a firm date for this. You may try to get an STM32F0Discovery in the meanwhile, it is extremely cheap.

Giovanni

teknokita
Posts: 2
Joined: Fri Jan 18, 2013 8:57 pm

Re: [FUN] Preliminary results

Postby teknokita » Mon Jul 15, 2013 5:42 am

in my country there is no STM32F0 on the market, and I've already bought some STM32F3Discovery board for robotic study groups, now I use a simple round-robin scheduling, but i need more powerfull preemptive scheduling,,, maybe I have to be patient first,,
Giovanni thank you for a great RTOS....

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: [FUN] Preliminary results

Postby Giovanni » Thu Sep 05, 2013 3:58 pm

Hi now there is support for the M4 and an STM32F3-Discovery board, read here for details: viewtopic.php?f=12&t=1392&p=12247

Giovanni


Return to “ChibiOS/NIL”

Who is online

Users browsing this forum: No registered users and 4 guests