cancel
Showing results for 
Search instead for 
Did you mean: 

do you need to explictly set SCB->CCR |= SCB_CCR_STKALIGN;

denis
Associate II
Posted on September 25, 2013 at 14:42

''Immediately after stacking, the stack pointer indicates the lowest address in the stack frame. Unless stack alignment is disabled, the stack frame is aligned to a double-word address. If the STKALIGN bit of the Configuration Control Register (CCR) is set to 1, stack align adjustment is performed during stacking.''

I see that for my processor this is not enabled on startup, and, i don't do it, and i have not encountered problems yet.

Err, so what happens if its 0, stack align adjustment NOT performed during stacking.

When is it performed then.
0 REPLIES 0