Hi @dhanabharathi,
1. Are you deleting all related Det files? Have you disabled all of the error detection in your modules? If not, the driver may try to include related files:


2. Hard to say without seeing what you modified or where does the hard fault happened, however, please check the .map file compiled by your project, and adjust the link file according to the size of your program.
When adjusting the linker file, pay attention to MPU config and such. I suggest deleting Det.c for now to avoid overflow for now.
Best regards,
Julián