# IAR and STM3210E-EVAL / Stack?

**URL:** <https://forums.freertos.org/t/iar-and-stm3210e-eval-stack/1871>\
**Category:** Kernel\
**Created:** [March 11, 2011, 10:20am UTC](https://forums.freertos.org/t/iar-and-stm3210e-eval-stack/1871 "2011-03-11T10:20:19Z")\
**Posts on this page:** 4\
**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:** [March 11, 2011, 10:20am UTC](https://forums.freertos.org/t/iar-and-stm3210e-eval-stack/1871/1 "2011-03-11T10:20:19Z")

</div>

**[tronde](https://sourceforge.net/u/tronde/)** wrote on [Friday, March 11, 2011](https://sourceforge.net/p/freertos/discussion/382005/thread/514f8a09/#247d):

I have been struggelig for a few days now, to get the STM3210E evaluation kit going with FreeRTOS.

I have downloaded the contributed port: [http://interactive.freertos.org/attachments/token/7ji4vw534mlvh1t/?name=FreeRTOS\_STM3210E\_EVAL\_with\_IAR\_5\_41\_2.zip](http://interactive.freertos.org/attachments/token/7ji4vw534mlvh1t/?name=FreeRTOS_STM3210E_EVAL_with_IAR_5_41_2.zip)

Trying to debug the port ends up in a “HardFault”. After disabling all the tasks except LEDFlash, things started working. LCD task can also be enabled, but enabling any more, results in a HardFault. Disabling LEDFlash and enabling CheckTask works well, but when both of them is enabled together with LCD, error occurs once again. I have tried to increase the stack and heap size in startup-file with no luck.

Does anyone have any pointers to what i can try next?

---

<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:** [March 15, 2011, 4:58pm UTC](https://forums.freertos.org/t/iar-and-stm3210e-eval-stack/1871/2 "2011-03-15T16:58:07Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, March 15, 2011](https://sourceforge.net/p/freertos/discussion/382005/thread/514f8a09/#ae27):

I cannot support contributed code, but have provided the following list of “usual suspects” in point three of the following page:

[http://www.freertos.org/FAQHelp.html](http://www.freertos.org/FAQHelp.html)

On an STM32, pay particular attention to the forth bullet point under point three, as unlike most CM3 vendor libraries, the STM32 libraries do not do this by default.

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 16, 2011, 10:15am UTC](https://forums.freertos.org/t/iar-and-stm3210e-eval-stack/1871/3 "2011-03-16T10:15:30Z")

</div>

**[paoloferrari](https://sourceforge.net/u/paoloferrari/)** wrote on [Wednesday, March 16, 2011](https://sourceforge.net/p/freertos/discussion/382005/thread/514f8a09/#0285):

I tried with different versions of the IAR compiler and works correctly with 5.41 and 5.50,  
while with 6.10 the port ends up in a “HardFault”.  
Just have a little free time I try to investigate.

Paolo

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 16, 2011, 3:04pm UTC](https://forums.freertos.org/t/iar-and-stm3210e-eval-stack/1871/4 "2011-03-16T15:04:08Z")

</div>

**[paoloferrari](https://sourceforge.net/u/paoloferrari/)** wrote on [Wednesday, March 16, 2011](https://sourceforge.net/p/freertos/discussion/382005/thread/514f8a09/#8e9b):

Hi,

Update the demo for IAR 6.10 in FreeRTOS Intercative!

I hope it is useful

Paolo
