Good point about atomicity, probably that applies to ChibiOS too.
Giovanni
[FUN] Preliminary results
- 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:
-
- 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
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
Right now the smallest F0 devices (4K RAM) cannot run the full ChibiOS kernel AFAIK.
Nil on a tssop20 F0 would be awesome
- 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
Hi,
Definitely, I plan to restart working on Nil during vacations, after ChibiOS 2.6.0 release. I really like the concept.
Giovanni
Definitely, I plan to restart working on Nil during vacations, after ChibiOS 2.6.0 release. I really like the concept.
Giovanni
Re: [FUN] Preliminary results
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.
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
- 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
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
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
- 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
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
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
Re: [FUN] Preliminary results
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,,
Thanks,,
- 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
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
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
Re: [FUN] Preliminary results
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....
Giovanni thank you for a great RTOS....
- 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
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
Giovanni
Who is online
Users browsing this forum: No registered users and 4 guests