We've developed our product for the electrical domain, in our produced we've used LPC2468 microcontroller with ARM7 architecture. In our product we are using Keil RTX operating system and its flash file system. We are having the 4MB external NOR flash memory, in that flash file system has ported for store the files. In our source code, we are not able to see the source code of flash file system, it is in the form of library it seems. Recently we are facing issue that, microcontroller rebooting during the flash file system, when source invoke the finit() API system is getting reboot. We are not able to fix this issue because it is in the form of library, so please let us know how to fix this issue? and what would be the reason for reboot during the flash file system?.
OK, good to know that the reset is caused by the watchdog timer. Now you should try to find out why the application waits in an endless loop.
You wrote: "Since we are using the library of flash file system(FS_ARM_L.lib), so we are not able to see what is happening inside the finit() function". I already mentioned in an email to you and your colleagues that your company purchased the source code of the Flash file system many years ago. So why don't you use it?On the other hand, I doubt that there is an endless loop in the library that does not call functions of the Flash driver functions. Even if your application hangs somewhere in the function finit(), you should see calls to functions in the module File_lib.c and also other Flash driver functions. If you stop the application in the debugger, you should see in what endless loop your application is caught (in the disassembly window), and I'm pretty sure that with some single steps, you reach some Flash driver functions which check the status of your Flash. Then you have an indication of what status causes this issue.