Chaitanya,Assuming that the flash is correctly integrated, a common software fault that results in hardfault being entered almost immediately is not having the LSB of the second word set, i.e. the LSB of the reset vector must be one.hths.