It can successfully running ROM_UpdateEthernet() without RTOS. it programs chips using LM Flash Programmer.
with RTOS and NDK, I call FirmwareUpdate() function within a task. The LM flash Programmer starts programming. However, it always stops for some reasons. I guess it is BIOS cause it stops.
then I execute BIOS_exit(1) after check firmware update command. therefore, if we receive firmware update command, it will normally terminate BIOS. I also registered FirmwareUpdate() function in System_atexit() handler; so, when BIOS_exit(1), the program counter go to FirmwareUpdate(). I debugging step by step. after BIOS_exit, the program execute FirmwareUpdate(). However, the LM Flash Programmer always attempt connecting. The boards sent out BOOTP request, and the LM reply it. however, the TFTP never start.
Please helps on this. I have been struggling for days. any ideas.
So appreciated