Hello Butok.
I finally made the FNET Bootloader work perfectlly over the TWR MCF52259 Development Kit.
My problem was the same as seen in http://freescale.lithium.com/t5/68K-ColdFire-reg-Microprocessors/FNET-on-TWR-MCF5225x-Which-Serial-P... post: "FNET on TWR-MCF5225x: Which Serial Port is routed to the DB9 connector?"
I have made my MQX application work with the FNET Bootloader too by following the "Adding an Ethernet Bootloader to Freescale MQX™" documentation. Everything is just working perfectly.
Now that I can use the FNET Bootloader to dowload any application or update firmware if were neccessary via TFTP. I have some questions.
1. How to automate the Update Firmware Proccess of an MQX application? (All made by the machine, only first configuration will be made by humans).
Lets suppose that we have a TFTP Server which will store the new MQX Application firmware. Since we don't know in which LAN network will the system be connected, the TFTP server IP address can be variable. Therefore it is not possible to have a default TFTP server Address for the FNET Bootloader. Then we need to first configure the system with the actual TFTP server Address by hand. As I can see It can be done with set and save commands.
After check if there is a new version of the firmware and if neccessary execute the firmware update proccess, the FNET Bootloader will start the MQX application. So far, so understood.
But at this time, the MQX application has been started. Then, it is the MQX application responsibility to know if there is a new version of the firmware (Issuing a simple TFTP file name check and version comparison) every period of time.
Once the MQX application knows there is a new version of the firmware, How can I make FNET Bootloader know that?.
I know that all parameters used by the FNET bootloader are stored in the upper block of Flash and are recalled after a power cycle or reset (If the Bootloader is in automatic booting mode).
Is it possible to modify some of these parameters (IP, netmask, gateway, TFTP IP address, script, image, etcetera...) from the MQX application, then apply a system reset to start the automatic firmware update execution?
Is this way the best to do an automatic firmware update?
Is there another automatic firmware update proccess already available?
An my last Question.
1. If there was a problem during the firmware update and the MQX application was not well flashed. Is the FNET bootloader able to know that?
How to know if there is a flashed data corruption and it is necessary to restart the firmware update proccess instead of starting the MQX application?
¿Is it possible to have a backup of the last working well firmware in case of a firmware update proccess crash?
Is a firmware update proccess crash possible to happen, resulting in flashed data corruption?
Thanks a lot and my best regars.