Code: Select all
int main(void)
{
halInit();
//chSysInit();
u32 i;
u32 time=chTimeNow();
u32 result=0;
for(i=0;i<10000000;i++)
{
result++;
}
This works okay, however, if I enable chSysInit it crashes somewhere inside that loop. Same stuff with removed loop, but just using functions, like printf, when chSysInit passed the HardFaultVector is called in between. Using latest, 3454 revision, totally weird... any clues?