Forum Discussion
Altera_Forum
Honored Contributor
20 years agoYour multiple file descriptor problem may be due to re-entrancy. Under eCos, if you try and access the same device simultaneously from multiple threads - you can run into re-entrancy issues. If you are trying to read/write multiple files from different threads at the same time, then you will need to protect the filesystem accesses with a semaphore (or similar) to ensure that the file system does not become corrupted.
With your clock problem, how are you reststarting your code? If you are just brancing back to _start, then you need to make sure that you disable interrupts first.