# FreeRTOS problems with RAM functions 

**URL:** <https://forums.freertos.org/t/freertos-problems-with-ram-functions/7252>\
**Category:** Kernel\
**Created:** [June 5, 2018, 12:40pm UTC](https://forums.freertos.org/t/freertos-problems-with-ram-functions/7252 "2018-06-05T12:40:13Z")\
**Posts on this page:** 2\
**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 5, 2018, 12:40pm UTC](https://forums.freertos.org/t/freertos-problems-with-ram-functions/7252/1 "2018-06-05T12:40:13Z")

</div>

**[tina17](https://sourceforge.net/u/tina17/)** wrote on [Tuesday, June 05, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/4fcdcfe7/#0279):

Hello,

I’m working on a project with the following setup.  
Controller: Infineon TLE9879QXA40  
Compiler: Arm Compiler 5

My Project contains RAM-functions, which are needed because of performance reasons.  
Running the project always leads to a stop in the HardFault\_Handler. The history is \_\_scatterload -\> \_\_scatterload\_zeroinit -\> HardFault\_Handler.  
The problem does not occur as soon as I remove the RAM\_FUNCTIONS.

Can someone give me an advice why it isn’t working?  
Thanks in advance

---

<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 5, 2018, 2:23pm UTC](https://forums.freertos.org/t/freertos-problems-with-ram-functions/7252/2 "2018-06-05T14:23:40Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, June 05, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/4fcdcfe7/#0279/8f61):

This is a very broad question which is not going to be easy to answer  
without knowing a lot more about the memory layout, linker (scatter)  
script, etc. However, if the ‘history’ is the call stack it looks like  
your application crashed before main() was even called presuming  
scatteroad\_zeroinit is part of the start up code. Therefore the  
question does not seem to be FreeRTOS related.
