Hello, In the MSP430 simulator implementation of write() in write.c the wrong local is used as the return code (it's returning the result of the last invocation of write_chunk() (variable c) rather than the aggregate write size (variable rv). This causes issues for users of write(). Patch included as attachment to avoid whitespace issues. I do do not have the ability to apply patch this myself. Regards, -Martin.