tried to add pause at start and it did not help, but then I learnt that I was resetting the controller at the time when the card is being accessed and this was hanging the card. Adding indication when not to reset helped