Any rtos for mikroc for arm - Page 1
Forum section: electronics / general

author: Karamel
author_rank: Regular Contributor
timestamp: September 11, 2016, 07:46:42 am
content: Hi everyone,I am dealing with to find any rtos project which is aviable porting with mikroc for arm. Actually, I am thinking that I will use stm32 microcontroller so, I could use keil for this issue but, you know, mikroc compilers have a lot of library which comes inside. I am therefore looking for rtos for mikroc for arm.Is there any solition? or any suggestion?Best regards,Karamel

author: andersm
author_rank: Super Contributor
timestamp: September 11, 2016, 08:16:18 am
content: Looks like FreeRTOS comes with Cortex-M4F support for MikroC. It should be easy to adapt for other cores. It also shouldn't be too difficult to adapt any other RTOS to MikroC, the differences can't bee that significant.

author: Karamel
author_rank: Regular Contributor
timestamp: September 11, 2016, 10:10:07 am
content: I only found this linkhttp://www.freertos.org/FreeRTOS_Support_Forum_Archive/February_2013/freertos_MikroC_STM32F4Discovery_FreeRTOS_6874435.htmlabout issue.I am a little bit fresh man at rtos. And also, if porting is possible quickly, there must be some rtos project, am I right? I just found cortex m3 project therehttps://libstock.mikroe.com/projects/view/370/porting-freertos-to-mikroc-for-stm32-m3

author: rstofer
author_rank: Super Contributor
timestamp: September 11, 2016, 11:11:25 pm
content: If you download FreeRTOS and start looking through the code, you will find that very little of it is platform dependent. Usually it is just a couple of files and even that may not be necessary. There are a lot of ports already included.http://www.freertos.org/a00090.html

author: Karamel
author_rank: Regular Contributor
timestamp: September 12, 2016, 06:36:58 am
content: Hi,I did not find download link for stm32f4 platform. Well, I understood that I am really fresh man at this subject so, I must learn with your suggestions. How can I download freertos files for stm32f4xx ? and also, where should I start to learn? link, video, book etc.Another question,Cubemx can easily create rtos project for keil or iar so, Can I compile these files with mikroc? maybe, a little bit changing needs necessary?Best Regards,Karamelp.s: Mikroc platforms have lots of library which makes life easy and also, there is visual tft for visual platform. If I move myself to keil or iar, I need to write all libraries, maybe, it is acceptable but I have no another chance like visual tft. I am therefore trying to port any rtos files to mikroc platforms.

author: andersm
author_rank: Super Contributor
timestamp: September 12, 2016, 09:59:58 am
content: Quote from: Karamel on September 12, 2016, 06:36:58 amThere is only one download package, which contains everything.

author: rstofer
author_rank: Super Contributor
timestamp: September 12, 2016, 01:35:25 pm
content: Google is your friend! Search for 'freertos stm32f4 tutorial'. Don't lock yourself in to the MikroC toolchain. If you find a project for GCC that seems appropriate, install that toolchain. Search for 'gcc stm32f4 eclipse'http://www.freertos.org/FreeRTOS_Support_Forum_Archive/February_2013/freertos_MikroC_STM32F4Discovery_FreeRTOS_6874435.htmlAll of this took seconds to find via Google and using MicroC doesn't look promising. There is a demo project and the readme file has some important contents.There are lots of tutorials for FreeRTOS and the STM32F4xx

author: Pack34
author_rank: Frequent Contributor
timestamp: September 12, 2016, 02:00:41 pm
content: Is there a specific reason for restricting yourself to MikroC?MikroC is great to get the initialization code up and running, but it can be really restrictive as projects and feature-sets grow.I would suggest jumping in and using the standard libraries by using ST Micro's IDE. There's a learning curve when transitioning but it's worth the effort.

author: crispus
author_rank: Regular Contributor
timestamp: September 12, 2016, 02:51:31 pm
content: If you'll use STM32, I recommend you to take a look atChibiOS.

author: MosherIV
author_rank: Super Contributor
timestamp: September 12, 2016, 05:06:15 pm
content: Sorry to take you right back to the start but you might find this useful :https://en.wikipedia.org/wiki/Comparison_of_real-time_operating_systems

author: Karamel
author_rank: Regular Contributor
timestamp: September 12, 2016, 08:55:52 pm
content: Quote from: rstofer on September 12, 2016, 01:35:25 pmQuote from: Pack34 on September 12, 2016, 02:00:41 pmOkay, I tought these but if I move myself to another platform such as keil(or which one you can choose) and I want to work with 7" lcd screen. Otherside, there is visual tft which support ssd1963, ft81x etc. drivers but otherside?I had already found this link which is about mikroc and freertos but in this link, a man asks how can I port it to mikroc.

author: rstofer
author_rank: Super Contributor
timestamp: September 12, 2016, 10:01:58 pm
content: Grab one of the portable files and try to compile it. When it fails, and it probably will, fix whatever is broken.The code works for the board it is intended for. The only problem is to get MicroC to accept it. From a hardware point of view, it generally takes changes to just two files to get FreeRTOS running. These changes will probably have to do with the timer tick and enable/disable interrupts. Of course these are hardware dependencies.But the semaphores, queues and such are just code. No hardware restrictions at all (other than memory layout, perhaps).Find a port that is for a close cousin of the chip you are using and install the required toolchain - that's probably the easiest.Sooner or later, you're going to have to read through the code. It seems unlikely that there will be a pre-built project that fits your needs.Buy one of the FreeRTOS books!http://shop.freertos.org/FreeRTOS_tutorial_books_and_reference_manuals_s/1825.htmI doubt that your project is going to be plug-and-play and the more reference material you have the easier the project will be. It isn't just a matter of getting FreeRTOS to play, your tasks need to interact properly as well.

author: dannyf
author_rank: Super Contributor
timestamp: September 12, 2016, 10:11:45 pm
content: "I am therefore looking for rtos for mikroc for arm."The answer is yes, especially if you loosely define rtos.

author: andersm
author_rank: Super Contributor
timestamp: September 13, 2016, 01:12:53 am
content: Quote from: Karamel on September 12, 2016, 08:55:52 pmIt's already been pointed out several times that FreeRTOS comes with a port to MikroC. I don't understand why that is so difficult to understand. Since you seem to need hand-holding instructions, go to the FreeRTOS site, download the source package, extract it, and go to the folder FreeRTOS/Demo/CORTEX_M4F_CEC1302_MikroC. For the MikroC-specific port bits, go to FreeRTOS/Source/portable/MikroC/ARM_CM4F.

author: Karamel
author_rank: Regular Contributor
timestamp: September 13, 2016, 01:36:00 pm
content: Quote from: andersm on September 13, 2016, 01:12:53 amHi, thanks in order to inform mei had downloaded files but actually, I did not understand because, there are so many files so, I did not catch exact point. Now, I am trying something on my stm32f4 disco board.I had used OSA rtos on pic microcontrollers 2 years before. It was very basic to import and using. Nowadays, I never work with pic microcontrollers. Thus, sometimes, I am asking very stupid questions, sometimes, I am claiming very high things.I need to improve myselft at this point. Still, I am very very freshman.