Hi Shin, thank you for your information.
That's the cuuren status:
I have implemented the version 0.0.2 of your FirmwareUpdater but without success. You can find the project on http://mbed.org/users/Markus_Paar/programs/firmwareV3/lxqw92.
The problem is still the same: All .bin files are deleted by the cleanup function and the new firmware file is copied to the local file system. Nevertheless the mbed does not flash the LCP. Only restoring the .bin file from the PC (changing the timestamp) leads to success.
Here is the Log File:
INFO: Version file '/local/firmware.txt': Version 1.
INFO: Version file '/fs/firmware.txt': Version 2.
INFO: Version file '/local/firmware.txt': Version 1.
INFO: Version file '/fs/firmware.txt': Version 2.
INFO: Firmware updating... (1 -> 2)
INFO: Deleted '/local/FIRMWARE.BIN'.
INFO: File copying... (/fs/firmware.txt->/local/firmware.txt)
INFO: File copied. (/fs/firmware.txt->/local/firmware.txt)
INFO: File copying... (/fs/firmware.bin->/local/firmware.bin)
INFO: File copied. (/fs/firmware.bin->/local/firmware.bin)
INFO: Version file '/local/firmware.txt': Version 2.
INFO: Version file '/fs/firmware.txt': Version 2.
The programm should do everything right but it doesn't. Maybe you have an idea what can be done to solve this problem.
Hi Mbeder!
I have adapted the ethernet firmware update from Shinichiro Nakamura (great job!) to pick the file from an USB stick. Unfortunately it doesn't work properly. I made two different .bin files. One with the firmware update function running on the Mbed (led 1 blinking) and another with only led 2 blinking stored on the USB Stick. Both programs work properly when downloading them to the Mbed.
After downloading the program with the firmware update function and resetting the mbed, the update should be executed. According to the Log file produced by the program, everything should be fine but nevertheless it seems as if the old firmware runs. The size of the .bin file before the reset is 48kB, after the reset the size is equal to the filesize on the usb stick (11kB).
I have already had a look into the .bin file and compared the two files (firmware.bin on mbed & firmware.bin on USB stick) after the fimware update. Since there were no diffences I can't explain why led1 is still blinking.
Can anyone give me some support, please! I have added the firmware update program and a photo from my setup. USB connection works.
Thank you in advance!
/media/uploads/Markus_Paar/firmware.zip