RTOS OSA for PIC12, PIC16 and PIC18
-
- Posts: 32
- Joined: 27 Sep 2008 22:39
- Location: Russia, SPb
- Contact:
RTOS OSA for PIC12, PIC16 and PIC18
Hello!
RTOS OSA now ported for mikroC PRO (2.15 or later) for PIC18.
Source code: http://wiki.pic24.ru/doku.php/en/osa/ref/download/intro (unpack it into C:\ )
Manual: http://wiki.pic24.ru/doku.php/en/osa/ref/intro
Example for mikroC: http://wiki.pic24.ru/lib/exe/fetch.php/ ... mikroc.rar (unpack it into C:\TEST)
How to create project: http://wiki.pic24.ru/doku.php/en/osa/re ... on/project
Good luck!
Victor Timofeev
testerplus@mail.ru, osa@pic24.ru
RTOS OSA now ported for mikroC PRO (2.15 or later) for PIC18.
Source code: http://wiki.pic24.ru/doku.php/en/osa/ref/download/intro (unpack it into C:\ )
Manual: http://wiki.pic24.ru/doku.php/en/osa/ref/intro
Example for mikroC: http://wiki.pic24.ru/lib/exe/fetch.php/ ... mikroc.rar (unpack it into C:\TEST)
How to create project: http://wiki.pic24.ru/doku.php/en/osa/re ... on/project
Good luck!
Victor Timofeev
testerplus@mail.ru, osa@pic24.ru
Last edited by testerplus on 10 Jul 2009 13:35, edited 2 times in total.
Re: RTOS OSA for PIC18
Hi Victor
Can we use programs done in mikroPascal PRO on your RTOS?
thanks
Jose
edited few hours later: Uahu! This is a great project, and superbly explained. I'm still reading it!. Very good ideas on hard and soft! Unfortunatedly I'm not familiar with C, I use MP Pro, but anyway, the ideas are great!
Keep the good work!
Jose
Can we use programs done in mikroPascal PRO on your RTOS?
thanks
Jose
edited few hours later: Uahu! This is a great project, and superbly explained. I'm still reading it!. Very good ideas on hard and soft! Unfortunatedly I'm not familiar with C, I use MP Pro, but anyway, the ideas are great!
Keep the good work!
Jose
-
- Posts: 32
- Joined: 27 Sep 2008 22:39
- Location: Russia, SPb
- Contact:
Re: RTOS OSA for PIC18
Hello, Jose.joseLB wrote:Hi Victor
Can we use programs done in mikroPascal PRO on your RTOS?
Porting OSA to pascal is not planned. I think it will be rather difficult because of some pascal features.
Re: RTOS OSA for PIC18
Thanks Victortesterplus wrote:...Porting OSA to pascal is not planned. I think it will be rather difficult because of some pascal features.
I'm quite sure you considered .mcl files for your RTOS, instead of source, and probably this is not possible.
If possible, it shoud become independent of language I suppose.
Thanks
Jose
Re: RTOS OSA for PIC18
Thanks Victortesterplus wrote:...Porting OSA to pascal is not planned. I think it will be rather difficult because of some pascal features.
I'm quite sure you considered .mcl files for your RTOS, instead of source, and probably this is not possible.
If possible, it shoud become independent of language I suppose.
Thanks
Jose
-
- Posts: 32
- Joined: 27 Sep 2008 22:39
- Location: Russia, SPb
- Contact:
Re: RTOS OSA for PIC18
Unfortunedly, it is impossible to create libraries from sources. Most OSA services are defined as macro (they are not functions). Thus to port OSA to pascal I need at least to translate all macros; some of them can not be translated because of language features. Futhermore there are to many configuration-depended code, so it will be nessesary to create too many libraries to cover most OSA features.joseLB wrote:I'm quite sure you considered .mcl files for your RTOS, instead of source, and probably this is not possible.
And finally: I do not work with pascal within 8-10 years, so I don't think that I can write well working low-level code on this language.
Why don't you try it?
Re: RTOS OSA for PIC18
Hi Victor, that's a good question!testerplus wrote:...Why don't you try it?
I will to try to consider it, but the first and major point is the spare time for it, unfortunatedly at this point it is scarce for me. Second, understand C.
I will see if there are others at mP community that would like to try to do a group in order to do that.
Anyway, thanks for your offer. By the way, aprox. how many lines of code has your RTOS?
Jose
-
- Posts: 32
- Joined: 27 Sep 2008 22:39
- Location: Russia, SPb
- Contact:
Re: RTOS OSA for PIC18
Hm, I can't tell you even approximately. May be 500, may be 5000.joseLB wrote:By the way, aprox. how many lines of code has your RTOS?
Jose
Re: RTOS OSA for PIC18
Hi, Jose,joseLB wrote:Hi Victor, that's a good question!testerplus wrote:...Why don't you try it?
I will to try to consider it, but the first and major point is the spare time for it, unfortunatedly at this point it is scarce for me. Second, understand C.
I will see if there are others at mP community that would like to try to do a group in order to do that.
Anyway, thanks for your offer. By the way, aprox. how many lines of code has your RTOS?
Jose
I'm too interesting in porting/rewriting OS for mP.
-
- Posts: 32
- Joined: 27 Sep 2008 22:39
- Location: Russia, SPb
- Contact:
Re: RTOS OSA for PIC18
Hi all!
OSA (91007) ported to mikroC PRO for PIC12 and PIC16 (version 3.0beta and higher).
Limitation. Next data objects must not be allocated in bank2 and bank3:
- dynamic timers
- messages
- queues
- counting semaphores
(this limitation will be ommited as soon as possible)
Victor Timofeev
testerplus@mail.ru, osa@pic24.ru[/quote]
OSA (91007) ported to mikroC PRO for PIC12 and PIC16 (version 3.0beta and higher).
Limitation. Next data objects must not be allocated in bank2 and bank3:
- dynamic timers
- messages
- queues
- counting semaphores
(this limitation will be ommited as soon as possible)
Victor Timofeev
testerplus@mail.ru, osa@pic24.ru[/quote]
-
- Posts: 32
- Joined: 27 Sep 2008 22:39
- Location: Russia, SPb
- Contact:
Re: RTOS OSA for PIC18
It is recommended to update OSA files since some bugs were fixed:
1. Simple messages of size > 1 did not worked
2. Problem with compilation occured for PIC18 with number of tasks > 10
3. Compiler exited with error on OS_Queue_Clear() service
New version 91029
1. Simple messages of size > 1 did not worked
2. Problem with compilation occured for PIC18 with number of tasks > 10
3. Compiler exited with error on OS_Queue_Clear() service
New version 91029
-
- Posts: 18
- Joined: 14 Jan 2010 07:00
- Contact:
Re: RTOS OSA for PIC12, PIC16 and PIC18
im trying to run ur osa..im using mikroC PRO for PIC but i got error..can sum1 help me...im new to RTOS
-
- Posts: 32
- Joined: 27 Sep 2008 22:39
- Location: Russia, SPb
- Contact:
Re: RTOS OSA for PIC12, PIC16 and PIC18
Can you describe your problem more detailed?firdauskhalid wrote:im trying to run ur osa..im using mikroC PRO for PIC but i got error..can sum1 help me...im new to RTOS
1. What OSA version?
2. What mikroC PRO version?
3. What PIC do you use?
4. What kind of errors did you get?