I am attempting to port FreeRTOS to the at91SAM3U-EK board using the Rowley CrossWorks IDE. I am in the process of defining assembly code for the port specific MACROS.
I have one issue I wonder if someone can help me with. When I run the port (the port is not working but compiles) and investigate via the debugger stepping into port.c, function vPortEnterCritical(), and further stepping into portDISABLE_INTERRUPTS(), I find myself at what appears to be a linker stub called “__vPortSetInterruptMask_from_thumb”. I’ve insured that my portmacro.h file is indeed reference, and have even taken the radical step of deleting all other ports (withing the #ifdef/#endif) for portmacro.h. However, for some reason the compiler insists on insering __vPortSetInterruptMask_from_thumb for the macro.
Has anyone a clue where I should look for the root cause? It is probably a compiler switch, as I do see stubs are options that can be eliminated. However, the use of the switches is not clear to me so I thought I’d see if this has been solved already.
Thanks in advance,