I have trouble in using SRT912 and FreeRTOS. I am using the STR9 USB stick coming from Hitex. Normally, it should be quite straightforward to run freeRTOS on the stick due to the already existing port for the STR912 dev board on IAR dev tools. But for me it doesn’t.
The Hitex USB stick is coming with the GNU cross-compiler and the hitex IDE and debugger. Due to some stability issues in using the Hitex tools. I am not sure to still use the Hitex debugger in the future. For this reason, i try to set up my configuration right now using eclipse + mingw make + gnu compiler provide by hitex. For sure I still use Hitex debugger to flash and make bug tracking.
I have rewritten the asm file of the STR912 demo from IAR asm to GNU asm. And wrote a make file with an application which do nothing except launching the idle task. I was hopping to be able see this task running alone.
To avoid ARM-thumb switching issue all the code is compiled for ARM code today.
Stepping in my application seems to be OK until vTaskStartScheduler()->xPortStartScheduler()->vPortStartFirstTask();
As it has been designed this function is just a call to the macro portRESTORE_CONTEXT
At the end of this macro, just before jumping, every thing seems to be OK…
the registers are correctly initialized (R1=0101…, R2=0202… and so on)
The LR register has the address of the idle task + 4…
We are in supervisor mode…
But stepping the "subs" instruction is issuing an Undefined instruction exception. I do not understand why.
If someone has already faced with this problem I greatly seek its support.