This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Timer tick dosen't work, when printf string > 24
- From: "=?big5?b?ufmkzcHp?=" <yozhong at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 11 Apr 2006 16:10:46 +0800
- Subject: [ECOS] Timer tick dosen't work, when printf string > 24
- References: <dd9328150604110059j6587149ek81a127cff19e286@mail.gmail.com>
Hi,
I used Sumsung s3c2410 development board(SMDK2410) to run simple-alarm
example program.
I add LED flash function in hal_clock_reset() and add one line printf
function in cyg_user_start() in simple-alarm.c file.
void cyg_user_start(void)
{
printf("12345678901234567890123\n");//Add one line prinf function here
cyg_thread_create(4, alarm_prog, (cyg_addrword_t) 0,
"alarm_thread", (void *) stack[0],
STACKSIZE, &thread[0], &thread_obj[0]);
cyg_thread_resume(thread[0]);
}
If string lenth in prinf function is small than 24, the timer tick is
working correctly and LED flashing.
If I modify printf("123456789012345678901234\n"), now the string lenth
become 25 then time tick dosen't work and LED dosen's flashing.
This is very strange problem.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss