Page 3 of 3

Re: FreeRTOS port

Posted: Thu Mar 26, 2020 8:24 pm
by akp
Ah, I see why the ldd/std didn't work for you. Thank you for the update. Now I will have to check why ldd/std works for me. I am hoping to migrate to your new single core code soon but I've been barreling along with something else.

Re: FreeRTOS port

Posted: Thu Apr 02, 2020 1:07 pm
by akp
OK, I found an exception caused by using std/ldd. It seems like the code XCC compiles from source keeps the stack pointer double word aligned, and when I write assembly I can keep it double word aligned, but not so with the pre-compiled C library for some reason. I suspect it's compiled for XS1 but I don't know. It would be more efficient if it were compiled for XS2 if it isn't already...

Re: FreeRTOS port

Posted: Thu Apr 02, 2020 6:03 pm
by mbruno
Yes, it would be nice if everything was guaranteed to keep the stack pointer double word aligned. But unfortunately since that cannot be guaranteed then it is just not safe for us to use the ldd/std instructions.