FreeRTOS port

XCore Project reviews, ideas, videos and proposals.
User avatar
akp
Respected Member
Posts: 441
Joined: Thu Nov 26, 2015 11:47 pm

Re: FreeRTOS port

Postby akp » Thu Mar 26, 2020 8:24 pm

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.
User avatar
akp
Respected Member
Posts: 441
Joined: Thu Nov 26, 2015 11:47 pm

Postby akp » Thu Apr 02, 2020 1:07 pm

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...
mbruno
Posts: 9
Joined: Thu Aug 24, 2017 2:48 pm

Postby mbruno » Thu Apr 02, 2020 6:03 pm

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.

Who is online

Users browsing this forum: No registered users and 0 guests