Cannot find a compatible demo application for Cortex-M3, ARM Compiler 5 and MPS2+

orifai01 wrote on Wednesday, November 09, 2016:

Hello,
I am new to FreeRTOS and trying to find the right demo application to start with.
Eventually I wish to import Free RTOS onto MPS2+ board, but first I just want to find a demo application that is compatible to DS-5 , ARM Compiler 5.
Please correct me if I’m wrong - only a few of the demo applications can be opened with the DS-5 platform for Eclipse (the ones that contain a CPROJECT file). None of them complies - the ones that I’ve tried seem to search missing header files (that exist in other folders). Maybe I’m doing something wrong.

  • What is the right way to import a demo application to DS-5 platform for Eclipse? Which folder shall I import? Where shall the FreeRTOS files be located?
  • Which demo application shall I use so that the modifying procedure for MPS2+ would be easy as possible?

Thank you,
Orit

rtel wrote on Wednesday, November 09, 2016:

If you are having to create a project yourself, then here is a link that
will help you get started:

http://www.freertos.org/Creating-a-new-FreeRTOS-project.html

and this one may help set up an Eclipse project (DS-5 being Eclipse).
If you don’t want to jump through the hoops described on the link then
you can just copy the files you need into a directory under the DS-5
project directory:

http://www.freertos.org/Project_Workspace_Relative_File_Paths_Eclipse.html

orifai01 wrote on Wednesday, November 09, 2016:

Thank you for your quick response. I’ll follow the steps as in the second link.
Which project do you think I can start with?
I tried to import CORTEX_LM3Sxxxx_Eclipse but it doesn’t contain a CPROJECT file. No project found to import.

Thanks again!

orifai01 wrote on Wednesday, November 09, 2016:

I followed the steps using CORTEX_A9_RZ_R7S72100_IAR_DS-5 demo application.
I have an error in RenesasFiles: #5: cannot open source input file “FreeRTOS.h”: No such file or directory.

  • FreeRTOS.h is located in “FreeRTOS_ROOT/include” which is contained in the project’s include directories. Why can’t it be found?
  • I’m not using Renesas. Should I exclude the RenesasFiles folder?

rtel wrote on Wednesday, November 09, 2016:

That project is for a Cortex-A, whereas if I am correct I think you are
wanting a Cortex-M project. Is that right? If so, there is no need to
remove the Renesas specific files because even the FreeRTOS port layer
is going to be wrong. Whichever project you choose though if you are
wanting to create a generic Cortex-M project you will have to remove the
files that build drivers (or anything else) that is specific to one
particular implementation. For example, you are never going to be able
to build ST driver code if you are targeting a Freescale chip - only the
FreeRTOS code will be the same between the two.

Is the ARM compiler you are using the same as the ARM compiler that is
shipped with the Keil tools? If so you can use the FreeRTOS code from
the FreeRTOS/source/portable/RVDS/ARM_CM3 (or ARM_CM4F) directory.

orifai01 wrote on Wednesday, November 09, 2016:

Thanks, it is clear to me. I wasn’t intending to use the Cortex-A application…just wanted to build some demo application with Eclipse.
As mentioned above I cannot find a demo application that is compatible to CM-3 and that can be opened with DS_5 (CORTEX_LM3S811_KEIL, CORTEX_LM3Sxxxx_IAR_Keil, CORTEX_LM3Sxxxx_Eclipse etc). I would be very glad if you could help me find one.

rtel wrote on Wednesday, November 09, 2016:

Does DS-5 use the same ARM compiler as ARM’s Keil tools?

orifai01 wrote on Wednesday, November 09, 2016:

Yes. I’m using the built-in compiler (ARM Compiler 5)

orifai01 wrote on Wednesday, November 16, 2016:

UP