# STM32 PORT for ROWLEY

**URL:** <https://forums.freertos.org/t/stm32-port-for-rowley/4939>\
**Category:** Kernel\
**Created:** [June 12, 2008, 2:28pm UTC](https://forums.freertos.org/t/stm32-port-for-rowley/4939 "2008-06-12T14:28:24Z")\
**Posts on this page:** 11\
**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:** [June 12, 2008, 2:28pm UTC](https://forums.freertos.org/t/stm32-port-for-rowley/4939/1 "2008-06-12T14:28:24Z")

</div>

**[ess71](https://sourceforge.net/u/ess71/)** wrote on [Thursday, June 12, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/d804aa92/#df3b):

Hi,

I am working on a stm32 project using freeRtos and corssworks environement. I have trouble converting the existing stm32 ports to crosswork environement.

i started by converting the existing stm32 iar port and the primer port but my code won t compile .

I tried a diffrent approach by using a working demo in rowley from the stm32 package. and then add the freertos sources and fucntionnality but i get the same compilation errors all the time.  
the compiler messagfe is:

expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘\_\_attribute\_\_’ before ‘typedef’

&nbsp;  
#ifndef \_\_crossworks\_H  
#define \_\_crossworks\_H

#if defined(\_\_CROSSWORKS)  
#define \_\_SIZE\_T unsigned  
#define \_\_PTRDIFF\_T int  
typedef unsigned char \*\_\_va\_list;  
#pragma intrinsic(\_\_va\_base)  
#elif defined(\_\_CROSSWORKS\_ARM)  
#define \_\_SIZE\_T unsigned long  
#define \_\_PTRDIFF\_T int  
\*\*\*\*\*\> typedef \_\_builtin\_va\_list \_\_va\_list; \<\*\*\*\*\*\*\*\*\*\*\*\*\*\*

pointing to the line above in \_\_crossworks.h file.

can you help me find what s going on?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 12, 2008, 2:44pm UTC](https://forums.freertos.org/t/stm32-port-for-rowley/4939/2 "2008-06-12T14:44:30Z")

</div>

**[woops\_](https://sourceforge.net/u/woops_/)** wrote on [Thursday, June 12, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/d804aa92/#df3b/a291):

looks like its not found def for \_\_va\_list. Could be order in which include files are loaded. What was the source code or file that was added before this error came up.

Maybe ask Rowley support?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 12, 2008, 3:21pm UTC](https://forums.freertos.org/t/stm32-port-for-rowley/4939/3 "2008-06-12T15:21:14Z")

</div>

**[ess71](https://sourceforge.net/u/ess71/)** wrote on [Thursday, June 12, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/d804aa92/#df3b/905c):

The file&nbsp; port .c from freertos seems to be the one that does the call.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 16, 2008, 12:57pm UTC](https://forums.freertos.org/t/stm32-port-for-rowley/4939/4 "2008-06-16T12:57:49Z")

</div>

**[ess71](https://sourceforge.net/u/ess71/)** wrote on [Monday, June 16, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/d804aa92/#df3b/ca8e):

Has any one used freeRtos with an stm32 port?  
i tried even the rowley LM35102 port as is, but that does not compile . says missing linker script for memory map.  
Thanks for your help.

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [June 16, 2008, 6:18pm UTC](https://forums.freertos.org/t/stm32-port-for-rowley/4939/5 "2008-06-16T18:18:10Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Monday, June 16, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/d804aa92/#df3b/ca8e/4a24):

Have you installed the Rowley package for the LM3S?&nbsp; This is downloaded separately from the CrossStudio IDE.

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 16, 2008, 7:13pm UTC](https://forums.freertos.org/t/stm32-port-for-rowley/4939/6 "2008-06-16T19:13:59Z")

</div>

**[ess71](https://sourceforge.net/u/ess71/)** wrote on [Monday, June 16, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/d804aa92/#df3b/8040):

Hi Richard,

Thanks to your suggestion. i think that what’s i was missing.

Do you have an idea for my troubles with the stm32 port in rowley maunly the problems with the typedef \_\_builtin\_va\_list \_\_va\_list in crosswirks.h file.

any help is appreciated as&nbsp; i got stuck because of it.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 18, 2008, 6:16pm UTC](https://forums.freertos.org/t/stm32-port-for-rowley/4939/7 "2008-06-18T18:16:16Z")

</div>

**[ess71](https://sourceforge.net/u/ess71/)** wrote on [Wednesday, June 18, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/d804aa92/#df3b/21f5):

Nobody is working on stm32 and freertos?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 20, 2008, 10:17am UTC](https://forums.freertos.org/t/stm32-port-for-rowley/4939/8 "2008-06-20T10:17:01Z")

</div>

**[rlagace](https://sourceforge.net/u/rlagace/)** wrote on [Friday, June 20, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/d804aa92/#df3b/eed5):

Hi,

I have used FreeRTOS with the STM32 in Rowley using the version 4.7.2. If nothing changed since then, all you have to do is define GCC\_ARMCM3 since Rowley use the GCC compiler, so you must use the GCC port instead of the IAR port.

Regards

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 20, 2008, 12:35pm UTC](https://forums.freertos.org/t/stm32-port-for-rowley/4939/9 "2008-06-20T12:35:45Z")

</div>

**[ess71](https://sourceforge.net/u/ess71/)** wrote on [Friday, June 20, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/d804aa92/#df3b/3ae4):

Thanks a lot Remi for your reply, but i did use the GCC\_ARMCM3 define. are there any uther settings in Rwley that i am missing? I ll try to use the 4.7.2 Version and see wether i get the same behavior.  
Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 20, 2008, 5:27pm UTC](https://forums.freertos.org/t/stm32-port-for-rowley/4939/10 "2008-06-20T17:27:57Z")

</div>

**[rlagace](https://sourceforge.net/u/rlagace/)** wrote on [Friday, June 20, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/d804aa92/#df3b/d640):

Hi,

I think there is no other settings to setup. I tried to include the \_\_crossworks.h in my project since I didn’t use that file and it compile correctly. I’m using Rowley version 1.7 build 8 with the STM32 package version 1.5.

Regards

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 24, 2008, 1:44pm UTC](https://forums.freertos.org/t/stm32-port-for-rowley/4939/11 "2008-06-24T13:44:55Z")

</div>

**[slawc](https://sourceforge.net/u/slawc/)** wrote on [Tuesday, June 24, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/d804aa92/#df3b/981f):

Can someone check if latest port for STM32 and GCC (RIDE) can be compiled? I don’t have RIDE so I can’t check it for myself.

I’m trying to use this port (with some changes of course) with Rowley and the build process stops at assert line (in . Searching though sources shows no assert definition.&nbsp; It’s defined for KEIL and IAR though.
