SD card support on artemis Ambiq SDK

I have developed SD libraries using SPI interface and FAT-FS with Ambique (Artemis ATP board).

SD card interface is working properly (no issue at all).

Now when I read data from SD card and store that data in Flash memory , flash writing is working as required but after writing data to flash , SD card do not unmounted ( got stuck in the mount function ).

Now when i reset the system the SD card is unable to mount.