How tasks/Timer could wok on ARM-CM3/4

Thanks Richard/JH,
After adding the assert() macro, we can fix the problem step by step when assert() happens. But I think it is not best way to do this and also all tests I do is basic of FreeRTOS. I am worried I have incorrect setting or configuration from freertosconifg.h and also have incorrect memory setting.
Any suggestion is welcome. Thanks