I am using NXP towerboard for LS1021 development. - TWR-LS1021A.
I have written driver for SD Card access.
With boot mode using NOR flash (SW2.1 ON), I am able to run my SDHC driver code successfully.
When I switch to SD card boot mode (SW2.1 OFF and SW2.3 ON), my driver code fails.
After debugging I found that, when I switched to SD boot mode, SDHC Present Status (PRSSTAT) Register value changes to 0x0F800008 from 0x0F8D0008.So after switching to SD boot mode, CINS bit of PRSSTAT register becomes "0" which indicates card is not connected and WPS bit of PRSSTAT register becomes "0" which indicates card is write protected. So such check conditions in my driver code returns error. If I avoid these conditions driver code runs successfully.
I have systech evalution board also, on which this code works fine.
So seems there is some hardware issue ?
Is anyone aware of such issue ?