# FreeRTOS on STR71x + GCC

**URL:** <https://forums.freertos.org/t/freertos-on-str71x-gcc/3584>\
**Category:** Kernel\
**Created:** [May 11, 2010, 3:42pm UTC](https://forums.freertos.org/t/freertos-on-str71x-gcc/3584 "2010-05-11T15:42:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 11, 2010, 3:42pm UTC](https://forums.freertos.org/t/freertos-on-str71x-gcc/3584/1 "2010-05-11T15:42:49Z")

</div>

**[heero91](https://sourceforge.net/u/heero91/)** wrote on [Tuesday, May 11, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/9d300b8f/#a9ea):

Hello everyone,

I’m currently working on a project that needs FreeRTOS. This is the first time I’m using FreeRTOS (and even an OS) on my µC.

I would like to get/make a version working with GCC. I have tried to use IAR but my Jtag cable is not recognized and the additional source code I have to use with FreeRTOS is in C++ and IAR is not good with C and C++ in the same time.

I was looking into other project with GCC (specialy the ARM7\_AT91FR40008\_GCC) and I have noticed that I haven’t the same files for my STR71x. Can anyone explain to me how to change the makefile in order to get it work? Will I have to change some of my existing files in order to adapt it to the OS?

Thanks a lot for your answers, I hope I’m not the onlyone trying to use GCC with a STR71x.

Romain

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 12, 2010, 8:32am UTC](https://forums.freertos.org/t/freertos-on-str71x-gcc/3584/2 "2010-05-12T08:32:07Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Wednesday, May 12, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/9d300b8f/#4852):

Can you use the files from the FreeRTOS\Source\portable\GCC\STR75x directory? Just check the timer set up is compatible with you uC.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 12, 2010, 8:59am UTC](https://forums.freertos.org/t/freertos-on-str71x-gcc/3584/3 "2010-05-12T08:59:58Z")

</div>

**[heero91](https://sourceforge.net/u/heero91/)** wrote on [Wednesday, May 12, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/9d300b8f/#f52c):

I don’t need to use those files as there is allready a directory for STR71x in GCC (FreeRTOS\Source\portable\GCC\STR71x)  
But there is some difference in those 2 directories …  
I would like, to begin, just to be able to compile FreeRTOS itself (without any demo) and after just add my tasks…

So far I have a list of c file for FreeRTOS, I hope I haven’t missed any of them:  
LibSource : 71xlib.c | gpio.c | rccu.c | uart.c | wdg.c  
RTOS Source : list.c | port.c | portasm.s79 | queue.c | tasks.c  
System Files: 71x\_init.c | 71x\_it.c | 71x\_vect.s

So know, I’d like to get a working makefile, using gcc (arm-elf-gcc) … And for the moment I have the impression I’m in a dead-end. Any idea/help for me? (even better, a working makefile if it’s possible 😉 )

Thanks a lot, Romain

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 12, 2010, 11:42am UTC](https://forums.freertos.org/t/freertos-on-str71x-gcc/3584/4 "2010-05-12T11:42:40Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Wednesday, May 12, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/9d300b8f/#baed):

As far as I can tell there is no gcc\str71x directory in the official release so I don’t know where that came from. Also if you are using gcc I don’t know why you would have an portasm.s79 file (which is presumable an IAR file).

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 12, 2010, 12:21pm UTC](https://forums.freertos.org/t/freertos-on-str71x-gcc/3584/5 "2010-05-12T12:21:58Z")

</div>

**[heero91](https://sourceforge.net/u/heero91/)** wrote on [Wednesday, May 12, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/9d300b8f/#2508):

Yes, you’re rigt, it was a directory I have created … My mistake, I’m doing so much things I had forgotten ☹

I was wondering what was the purpose/interest of the portasm.s79 file actually, so if it’s a IAR file I’ll remove from my RTOS sources!

So now I have to figure how write my makefile … And this is a big work :S I have no idea to begin with ☹

And I should transform some files I guess, even to write somme new one … So much to do for such a litle thing ☹

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 20, 2010, 7:34am UTC](https://forums.freertos.org/t/freertos-on-str71x-gcc/3584/6 "2010-05-20T07:34:05Z")

</div>

**[heero91](https://sourceforge.net/u/heero91/)** wrote on [Thursday, May 20, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/9d300b8f/#71c6):

No one is able to help me on this? It would be very usefull for me as I don’t know how to begin with it ☹

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 23, 2010, 1:10am UTC](https://forums.freertos.org/t/freertos-on-str71x-gcc/3584/7 "2010-05-23T01:10:35Z")

</div>

**[rgrover1](https://sourceforge.net/u/rgrover1/)** wrote on [Sunday, May 23, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/9d300b8f/#6426):

Perhaps you can begin with [http://www.gnu.org/software/make/manual/make.html](http://www.gnu.org/software/make/manual/make.html)
