Hi ecos-guys :) I've a question depending on the real time clock in eCos (I try a port for FM3). It seems it isn't working! The returned value of cyg_current_time() is always 0! It also seemy cyg_thread_delay(100) doesn't work... I tried a "hard" read of the value of the systick register, and this isn't 0! while(1) { HAL_READ_UINT32(CYGARC_REG_SYSTICK_BASE+CYGARC_REG_SYSTICK_VALUE, timerVal0); timerVal2= cyg_current_time(); printf("%u\n", timerVal0); //it's okay...i counts down! printf("%u\n", timerVal1); //always 0 :-( }
Any ideas where my problems are? With kind regards, Lukas -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss