I have some weird problems with mentioned configuration of HW and SW. I’m trying to build a working binary in ar-none-eabi-gcc v. 4.8.2 and everything seems to be OK (linker script works correctly, map file shows that every single bit is on its own place, the idle-task can be run successfully). The problems actually starts, when I’m trying to run the second task with priority 1 - it will not run and the Memory management exception is the last thing what OS does on its own. The address in the pc is pointing to the function that implements the task’s functionality. If the tasks priority is below zero, then task will be run (which is a very wrong according to the FreeRTOS documentation). The OS heap size is 10K. Used heap size is 3K all the time. The msp size is 4K and it’s allocated in the end of the RAM. Moreover, any privileged data is not initialized properly for some very strange reasons. Memset (the one from the C’s string header - the app will crash) doesn’t work either.
You can find a project’s code here https://www.dropbox.com/s/sytjqkcwb7v5c0i/FreeRTOS.tar.gz
My question is: Where can be a possible error?
P.S. I removed from my project every header with copyrights (I’ll add them later back) for my own convenience and it doesn’t mean that I’m stealing FreeRTOS’s code.