Embedded system building blocks is a beauty from Jean Labrosse. Contains practical C code examples which are generic and convertible to any level. It is a honour to own this book.
raul 11/29/2012 3:39:16 PM User Rank Program Manager
Re: Writing your own OS
jkvasan. I agree with you. I didn't see much about that type of concepts (Time-triggered architectures for multiprocessor systems, shared clock schedulers, etc.) in other books about embedded systems. Do you know other books approaching similar concepts? If you can share additional references it'll be much appreciated.
I think the book has some good material even for experienced people and at the same time it seems to be a good book to begin teaching about embedded systems C programming, don't you think?
PTTES is a class of its own. It has helped me several times when I had some problems. Very thorough explanations of concepts. Particularly I liked the treatment on Multi-processor architecture time triggering.
Every time I read this book, I get fresh insights into already understood concepts.
raul 11/29/2012 9:47:56 AM User Rank Program Manager
Re: Writing your own OS
jkvasan, thank you for your advance wishes! If some day I manage to succeed, perhaps I could blog about it here!
Thanks for the reference too, although I already read "Embedded C" by Michael Pont; as a matter of fact, this book lead me to another good book by the same author: "Patterns for Time-Triggered Embedded Systems" of which I recently shared some thougths in this other post.
Have you read that book too? If so, what do you think about it?
raul 11/29/2012 8:11:35 AM User Rank Program Manager
Re: Writing your own OS
Rich, I agree with you, the use of an OS (or an RTOS for that matter) it's not the right solution for all cases, although for some aplications it could be the only right choice.
I mostly use Finite State Machines in combination with a background/foreground (loop with interrupts) scheme, or some times very simple schedulers when using 8-bit or 16-bit microcontrollers or even 32-bit. I tried FreeRTOS in some ARM Cortex microcontrollers, but I prefer most of the time simplicity and efficiency when ever possible.
Nevertheless, I've always been interested in OS theory and design and from time to time I try to read some literature on the topic. I've been studying some code from source available RTOSes and the UNIX/Linux kernel too. I have a goal to some day write my own RTOS (a really simple one), but just for fun and as a learning exercise, although I realize that isn't going to happen any time soon!
Rich Quinnell 11/28/2012 7:23:41 PM User Rank Blogger
Re: Writing your own OS
raul, some might say that an operating system is only a fancy term for a program that acts as a framework for running other programs. It is a good way of abstracting some of the hardware from the applications code and providing single routines for handling common tasks, but it comes at the penalty of overhead and issues surrounding resource contention, locking, priority inversion, and the like. A truly pre-emptive multitasking OS is not an easy thing to do well.
I'll ask our bloggers if anyone feels they can write about OS creation and see if any agree.
raul 11/28/2012 6:52:38 AM User Rank Program Manager
Writing your own OS
Recently I've been interested on how the Linux kernel works and how to boot programs on bare metal, mostly ARM and MIPS but x86 too, and I found this site: http://wiki.osdev.org tha has more than 400 articles about OS creation.
Very informative if you want to learn the basics about how an OS loads and works on the hardware, and perhaps, if you are really determined, write your own OS!
To save this item to your list of favorite Microcontroller Central content so you can find it later in your Profile page, click the "Save It" button next to the item.
If you found this interesting or useful, please use the links to the services below to share it with other readers. You will need a free account with each service to share an item via that service.