RTOS OSA for PIC12, PIC16 and PIC18

General discussion on mikroC PRO for PIC.
Author
Message
testerplus
Posts: 32
Joined: 27 Sep 2008 22:39
Location: Russia, SPb
Contact:

RTOS OSA for PIC12, PIC16 and PIC18

#1 Post by testerplus » 24 Jun 2009 23:22

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
Last edited by testerplus on 10 Jul 2009 13:35, edited 2 times in total.

petrd
Posts: 82
Joined: 14 Feb 2008 11:04
Location: Russia, Voronezh

#2 Post by petrd » 25 Jun 2009 09:39

Hi, all!

I'm tested project on my EasyPIC5 (PIC18F452, 20 MHz) and this good work.

Regards!

Orcino Borges
Posts: 42
Joined: 17 Apr 2009 13:33

#3 Post by Orcino Borges » 06 Jul 2009 23:09

Very good work and thanks for sharing.

Orcino

joseLB
Posts: 444
Joined: 02 Apr 2006 05:56
Location: Riode Janeiro, Brasil

Re: RTOS OSA for PIC18

#4 Post by joseLB » 17 Jul 2009 22:56

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

testerplus
Posts: 32
Joined: 27 Sep 2008 22:39
Location: Russia, SPb
Contact:

Re: RTOS OSA for PIC18

#5 Post by testerplus » 18 Jul 2009 09:51

joseLB wrote:Hi Victor
Can we use programs done in mikroPascal PRO on your RTOS?
Hello, Jose.

Porting OSA to pascal is not planned. I think it will be rather difficult because of some pascal features.

joseLB
Posts: 444
Joined: 02 Apr 2006 05:56
Location: Riode Janeiro, Brasil

Re: RTOS OSA for PIC18

#6 Post by joseLB » 20 Jul 2009 15:23

testerplus wrote:...Porting OSA to pascal is not planned. I think it will be rather difficult because of some pascal features.
Thanks Victor
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

joseLB
Posts: 444
Joined: 02 Apr 2006 05:56
Location: Riode Janeiro, Brasil

Re: RTOS OSA for PIC18

#7 Post by joseLB » 20 Jul 2009 15:24

testerplus wrote:...Porting OSA to pascal is not planned. I think it will be rather difficult because of some pascal features.
Thanks Victor
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

testerplus
Posts: 32
Joined: 27 Sep 2008 22:39
Location: Russia, SPb
Contact:

Re: RTOS OSA for PIC18

#8 Post by testerplus » 20 Jul 2009 17:33

joseLB wrote:I'm quite sure you considered .mcl files for your RTOS, instead of source, and probably this is not possible.
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.

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?

joseLB
Posts: 444
Joined: 02 Apr 2006 05:56
Location: Riode Janeiro, Brasil

Re: RTOS OSA for PIC18

#9 Post by joseLB » 23 Jul 2009 00:35

testerplus wrote:...Why don't you try it?
Hi Victor, that's a good question!
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

testerplus
Posts: 32
Joined: 27 Sep 2008 22:39
Location: Russia, SPb
Contact:

Re: RTOS OSA for PIC18

#10 Post by testerplus » 23 Jul 2009 12:01

joseLB wrote:By the way, aprox. how many lines of code has your RTOS?
Jose
Hm, I can't tell you even approximately. May be 500, may be 5000.

matrix
Posts: 203
Joined: 26 Jan 2006 07:21
Location: Bulgaria
Contact:

Re: RTOS OSA for PIC18

#11 Post by matrix » 27 Jul 2009 11:48

joseLB wrote:
testerplus wrote:...Why don't you try it?
Hi Victor, that's a good question!
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
Hi, Jose,
I'm too interesting in porting/rewriting OS for mP.

testerplus
Posts: 32
Joined: 27 Sep 2008 22:39
Location: Russia, SPb
Contact:

Re: RTOS OSA for PIC18

#12 Post by testerplus » 07 Oct 2009 21:14

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]

testerplus
Posts: 32
Joined: 27 Sep 2008 22:39
Location: Russia, SPb
Contact:

Re: RTOS OSA for PIC18

#13 Post by testerplus » 29 Oct 2009 17:57

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

firdauskhalid
Posts: 18
Joined: 14 Jan 2010 07:00
Contact:

Re: RTOS OSA for PIC12, PIC16 and PIC18

#14 Post by firdauskhalid » 06 Apr 2010 04:14

im trying to run ur osa..im using mikroC PRO for PIC but i got error..can sum1 help me...im new to RTOS

testerplus
Posts: 32
Joined: 27 Sep 2008 22:39
Location: Russia, SPb
Contact:

Re: RTOS OSA for PIC12, PIC16 and PIC18

#15 Post by testerplus » 06 Apr 2010 12:13

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
Can you describe your problem more detailed?
1. What OSA version?
2. What mikroC PRO version?
3. What PIC do you use?
4. What kind of errors did you get?

Post Reply

Return to “mikroC PRO for PIC General”