+ Post New Thread
Results 1 to 19 of 19
  1. #1
    Member level 5
    Points: 749, Level: 5
    boukamoha's Avatar
    Join Date
    Aug 2012
    Posts
    85
    Helped
    0 / 0
    Points
    749
    Level
    5

    my ccs c compiler for RTOS doesn t work and C18 for RTOS

    hi evry one
    i installed both ccs c compiler demo version and mplab plugin from the officiial website http://www.ccsinfo.com/downloads.php but when i build the project i receive the message : REGISTRATION FILE ERROR PCH demo has expired the compiler demonstration has expired on this pc.
    any one can provide me with some informations about what to do?
    is there any other option to install ccs c compiler.
    the second question is how to use the C18 compiler for RTOS programming ,is there any plug ins for that? or i have simply use freertos? because i want to do the programms in mplab thats why i prefer some plugins for C18 for i can use RTOS. any solution for that?
    thx in advance.
    Last edited by boukamoha; 31st August 2012 at 19:08.

  2. #2
    Advanced Member level 2
    Points: 4,575, Level: 16
    Achievements:
    7 years registered
    yura717's Avatar
    Join Date
    Aug 2009
    Location
    USA
    Posts
    687
    Helped
    92 / 92
    Points
    4,575
    Level
    16

    Re: my ccs c compiler for RTOS doesn t work

    http://www.pic24.ru/doku.php/en/osa/...ro#what_is_osa
    OSA is a cooperative multitasking real-time operating system (RTOS) for Microchip PIC-controllers PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC, for Atmel AVR 8-bit controllers, and for STMicroelectronics STM8.

    RTOS allows the programmer to focus on problem-oriented tasks (algorithmic, mathematical etc.) and not have to worry about secondary tasks. All secondary tasks are performed by OSA's kernel:

    switching between parallel processes (e.g. keyboard scanning, output data to LCD, switching relays);
    checking timeouts, counting delays;
    finding the ready task with the highest priority and executing it;
    data exchange between different tasks using semaphores, messages, queues etc.
    "facts or figures from which conclusions can be inferred; information"



  3. #3
    Member level 5
    Points: 749, Level: 5
    boukamoha's Avatar
    Join Date
    Aug 2012
    Posts
    85
    Helped
    0 / 0
    Points
    749
    Level
    5

    Re: my ccs c compiler for RTOS doesn t work

    thx for the response its useful..



    •   AltAdvertisement

        
       

  4. #4
    Member level 5
    Points: 749, Level: 5
    boukamoha's Avatar
    Join Date
    Aug 2012
    Posts
    85
    Helped
    0 / 0
    Points
    749
    Level
    5

    Re: my ccs c compiler for RTOS doesn t work

    hi again..
    can u provide me please with some useful lnks or documents about osa real til time? or some books that base on osa projects in real time..
    thx



  5. #5
    Advanced Member level 2
    Points: 4,575, Level: 16
    Achievements:
    7 years registered
    yura717's Avatar
    Join Date
    Aug 2009
    Location
    USA
    Posts
    687
    Helped
    92 / 92
    Points
    4,575
    Level
    16

    Re: my ccs c compiler for RTOS doesn t work

    http://wiki.pic24.ru/doku.php/en/osa/ref/intro

    - - - Updated - - -

    http://www.freertos.org/RTOS_ports.html
    FreeRTOSTM is a market leading RTOS from Real Time Engineers Ltd. that supports 31 architectures and receives 77500 downloads a year. It is professionally developed, strictly quality controlled, robust, supported, and free to embed in commercial products without any requirement to expose your proprietary source code.

    The FreeRTOS project has removed common objections to using free software in commercial applications. FreeRTOS has become the de facto standard RTOS for microcontrollers because of this truly viable, and therefore compelling, free software model.

    - - - Updated - - -

    Textbook for OSA exist only in Russian language.
    http://wiki.pic24.ru/doku.php/osa/tutorial/intro

    - - - Updated - - -

    http://en.wikipedia.org/wiki/List_of_real-time_operating_systems
    "facts or figures from which conclusions can be inferred; information"



  6. #6
    Advanced Member level 4
    Points: 7,319, Level: 20
    Achievements:
    Created Blog entry 7 years registered
    xpress_embedo's Avatar
    Join Date
    Jul 2011
    Location
    India
    Posts
    1,162
    Helped
    199 / 199
    Points
    7,319
    Level
    20
    Blog Entries
    4

    Re: my ccs c compiler for RTOS doesn t work

    Have a look at this link...
    Simple RTOS Based Example using CCS PIC-C and PIC18F4550

    https://sites.google.com/site/coolem...and-pic18f4550

    Hope this helps



    •   AltAdvertisement

        
       

  7. #7
    Advanced Member level 2
    Points: 4,575, Level: 16
    Achievements:
    7 years registered
    yura717's Avatar
    Join Date
    Aug 2009
    Location
    USA
    Posts
    687
    Helped
    92 / 92
    Points
    4,575
    Level
    16

    Re: my ccs c compiler for RTOS doesn t work

    This software hard to call RTOS...... 20 lines of code?
    "facts or figures from which conclusions can be inferred; information"



  8. #8
    Advanced Member level 4
    Points: 7,319, Level: 20
    Achievements:
    Created Blog entry 7 years registered
    xpress_embedo's Avatar
    Join Date
    Jul 2011
    Location
    India
    Posts
    1,162
    Helped
    199 / 199
    Points
    7,319
    Level
    20
    Blog Entries
    4

    Re: my ccs c compiler for RTOS doesn t work

    Quote Originally Posted by yura717 View Post
    This software hard to call RTOS...... 20 lines of code?
    Yeah I know...
    Its just an example...

    If you know what is so called rtos code, and is more than 20 lines then post it here and explain its each and everyline



  9. #9
    Advanced Member level 2
    Points: 4,575, Level: 16
    Achievements:
    7 years registered
    yura717's Avatar
    Join Date
    Aug 2009
    Location
    USA
    Posts
    687
    Helped
    92 / 92
    Points
    4,575
    Level
    16

    Re: my ccs c compiler for RTOS doesn t work

    RTOS Concept

    A RTOS separates the program functions into self-contained tasks and implements an on-demand scheduling of their execution.

    An advanced RTOS, such as the Keil RTX, delivers serious benefits:

    Task scheduling - tasks are called when needed ensuring better program flow and event response
    Multitasking - task scheduling gives the illusion of executing a number of tasks simultaneously
    Deterministic behaviour - events and interrupts are handled within a defined time
    Shorter ISRs - enables more deterministic interrupt behaviour
    Inter-task communication - manages the sharing of data, memory, and hardware resources among multiple tasks
    Defined stack usage - each task is allocated a defined stack space, enabling predictable memory usage
    System management - allows you to focus on application development rather than resource management (housekeeping)

    RTX Message Passing
    "facts or figures from which conclusions can be inferred; information"



    •   AltAdvertisement

        
       

  10. #10
    Member level 5
    Points: 749, Level: 5
    boukamoha's Avatar
    Join Date
    Aug 2012
    Posts
    85
    Helped
    0 / 0
    Points
    749
    Level
    5

    Re: my ccs c compiler for RTOS doesn t work

    thx its a nice example for a simple rtos...., but till this moment i got suggestions about using osa multitasking, my ccs doosnt work yet so i m going to change it...i still have other choices like osa or free rtos ...with osa every thing is ok..but i heard that freertos is more flexible...the problem is how to integrate it with mplabx..is there any special procedur to follow? i downloaded every thing be useful to install freertos ..but the explanaions in the official we site still not obvious...so any suggestion from your side please?
    cheers..
    Last edited by boukamoha; 6th September 2012 at 09:41.



  11. #11
    Full Member level 3
    Points: 993, Level: 7

    Join Date
    Jan 2012
    Location
    madurai
    Posts
    189
    Helped
    8 / 8
    Points
    993
    Level
    7

    Re: my ccs c compiler for RTOS doesn t work

    hi

    instead of ccs you can go for linux for rtos
    regards
    madhu



  12. #12
    Advanced Member level 4
    Points: 7,319, Level: 20
    Achievements:
    Created Blog entry 7 years registered
    xpress_embedo's Avatar
    Join Date
    Jul 2011
    Location
    India
    Posts
    1,162
    Helped
    199 / 199
    Points
    7,319
    Level
    20
    Blog Entries
    4

    Re: my ccs c compiler for RTOS doesn t work

    Quote Originally Posted by boukamoha View Post
    thx its a nice example for a simple rtos...., but till this moment i got suggestions about using osa multitasking, my ccs doosnt work yet so i m going to change it...i still have other choices like osa or free rtos ...with osa every thing is ok..but i heard that freertos is more flexible...the problem is how to integrate it with mplabx..is there any special procedur to follow? i downloaded every thing be useful to install freertos ..but the explanaions in the official we site still not obvious...so any suggestion from your side please?
    cheers..

    I am not sure exactly whether i am right or wrong..
    What controller you are using..

    Due to limitations in ROM and RAM may be you can't use the FreeRTOS (Maybe be i am wrong)
    Few Days Back i tried to do so, what fails as i am not having enough ROM, rtos of that size are for higher controller's, this is what i conclude..

    If you are able to do so, then tell me,..

    - - - Updated - - -

    Quote Originally Posted by madhusuthanan View Post
    hi

    instead of ccs you can go for linux for rtos
    Can you please elaborate what you want to say..
    I didn't able to get what you want to say/..



  13. #13
    Full Member level 3
    Points: 993, Level: 7

    Join Date
    Jan 2012
    Location
    madurai
    Posts
    189
    Helped
    8 / 8
    Points
    993
    Level
    7

    Re: my ccs c compiler for RTOS doesn t work

    embedded Linux is used for rtos.
    regards
    madhu



  14. #14
    Advanced Member level 2
    Points: 4,575, Level: 16
    Achievements:
    7 years registered
    yura717's Avatar
    Join Date
    Aug 2009
    Location
    USA
    Posts
    687
    Helped
    92 / 92
    Points
    4,575
    Level
    16

    Re: my ccs c compiler for RTOS doesn t work

    Why Linux is not an RTOS:
    Applications run in “user space”
    All hardware interaction is in “kernel space”
    All i/o via files and sockets
    Applications are processes
    Default scheduling policy is time shared
    POSIX API
    Is Linux real-time?
    No: it is a complete operating system!
    "facts or figures from which conclusions can be inferred; information"



  15. #15
    Full Member level 3
    Points: 993, Level: 7

    Join Date
    Jan 2012
    Location
    madurai
    Posts
    189
    Helped
    8 / 8
    Points
    993
    Level
    7

    Re: my ccs c compiler for RTOS doesn t work

    there is embedded Linux is there, it's work as real time.

    - - - Updated - - -

    there is embedded Linux is there, it's work as real time.
    regards
    madhu



  16. #16
    Advanced Member level 2
    Points: 4,575, Level: 16
    Achievements:
    7 years registered
    yura717's Avatar
    Join Date
    Aug 2009
    Location
    USA
    Posts
    687
    Helped
    92 / 92
    Points
    4,575
    Level
    16

    Re: my ccs c compiler for RTOS doesn t work

    Please give the URL for RTOS Linux.
    "facts or figures from which conclusions can be inferred; information"



  17. #17
    Full Member level 3
    Points: 993, Level: 7

    Join Date
    Jan 2012
    Location
    madurai
    Posts
    189
    Helped
    8 / 8
    Points
    993
    Level
    7

    Re: my ccs c compiler for RTOS doesn t work

    this is link for that.
    http://www.uclinux.org/
    regards
    madhu



    •   AltAdvertisement

        
       

  18. #18
    Advanced Member level 2
    Points: 4,575, Level: 16
    Achievements:
    7 years registered
    yura717's Avatar
    Join Date
    Aug 2009
    Location
    USA
    Posts
    687
    Helped
    92 / 92
    Points
    4,575
    Level
    16

    Re: my ccs c compiler for RTOS doesn t work

    Normally "real" RTOS certified to use in Avionics.
    "facts or figures from which conclusions can be inferred; information"



  19. #19
    Member level 5
    Points: 749, Level: 5
    boukamoha's Avatar
    Join Date
    Aug 2012
    Posts
    85
    Helped
    0 / 0
    Points
    749
    Level
    5

    Re: my ccs c compiler for RTOS doesn t work

    ok im still trying if i get some thing i will tell you



--[[ ]]--