ST32F103RG FatFS Not Initializing on software reset
Posted: Tue May 03, 2016 9:00 am
Gentlemen,
I'm running ChibiOS 2.6,
I've got an SD card connected to the STM32F103RG via SPI2 and I was using the FatFS Demo provided in ChibiStudio.
With a 8GB Class 4 transcend card the system works without any issue after a software reset. So it initializes and everything and resumes operation.
Recently we got a pack of 4GB Class4 cards. These cards do not get initialized after a software reset or after pressing the reset button.
InsertHandler exits after mmcConnect
But if i remove power and put it back in, it initializes fine. This issue is only for Reset (button press) or software reset.
I am guessing the card is still active since it's last power on, is there a way to de-init or force init the card?
I tried adding delays in various places but no luck.
This is not a big deal if i use the 8GB cards, but I know these cards won't be around so we need to get the system working with any sort of cards, so this is an important issue.
Any insights?
I'm running ChibiOS 2.6,
I've got an SD card connected to the STM32F103RG via SPI2 and I was using the FatFS Demo provided in ChibiStudio.
With a 8GB Class 4 transcend card the system works without any issue after a software reset. So it initializes and everything and resumes operation.
Recently we got a pack of 4GB Class4 cards. These cards do not get initialized after a software reset or after pressing the reset button.
InsertHandler exits after mmcConnect
But if i remove power and put it back in, it initializes fine. This issue is only for Reset (button press) or software reset.
I am guessing the card is still active since it's last power on, is there a way to de-init or force init the card?
I tried adding delays in various places but no luck.
This is not a big deal if i use the 8GB cards, but I know these cards won't be around so we need to get the system working with any sort of cards, so this is an important issue.
Any insights?