Hi Rafael, I'm way too lazy to look deaply in your code. Though one thing rings a bell, in general you should not use eCos services from FIQ mode. To check that's actually your problem, try using an IRQ instead which triggers a DSR to invoke cyg_flag_setbits() (if its not safe to call it from an interrupt handler). Robin