Hi all!
I have my MBED integrated with another device via serial port. This second device has GPRS connection, so I just got intrigued by the possibility to transfer a new binary file to the MBED using the Serial Port.
After the transfer I would delete the other binary files from the LocalFileSystem and execute the mbed_reset() instruction to let it load the new program.
Unfortunately I am struggling when creating the new binary file. I do not know which function can I call to write each incoming byte from the serial port into a new binary file inside the LocalFileSystem.
Diving into the forums I have seen some people are using the fwrite() call, but my compiler does not agree with it. Am I missing a library??
Any help would be much appreciatted!
Thanks in advance!
Mario
Hi all!
I have my MBED integrated with another device via serial port. This second device has GPRS connection, so I just got intrigued by the possibility to transfer a new binary file to the MBED using the Serial Port.
After the transfer I would delete the other binary files from the LocalFileSystem and execute the mbed_reset() instruction to let it load the new program.
Unfortunately I am struggling when creating the new binary file. I do not know which function can I call to write each incoming byte from the serial port into a new binary file inside the LocalFileSystem.
Diving into the forums I have seen some people are using the fwrite() call, but my compiler does not agree with it. Am I missing a library??
Any help would be much appreciatted!
Thanks in advance!
Mario