I am at my wits end getting the twothreads example working on my Olimex P256 board (AT91SAM7S256 based).
Calling the cyg_mutex_init does not return. Also I notice that the call to the printf line before the call to cyg_mutex_init prints extremely slow on my terminal. I have set the default console up to tty0 going to ser0. This part works fine with my other software running on the board (normal expected transmission speed). Are there any "gotcha'" involving threading on the AT91 series microcontrollers? Best regards JesperKP Extra info (note I have added a couple of debugging lines): void cyg_user_start(void) { printf("Entering twothreads' cyg_user_start() function\n\r"); cyg_mutex_init(&cliblock); printf("cyg_mutex_init() done\n\r"); // <--- Never gets sent cyg_thread_create(4, simple_program, (cyg_addrword_t) 0, "Thread A", (void *) stack[0], 4096, &simple_threadA, &thread_s[0]); printf("Done setting up ThreadA\n\r"); -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss