2018-03-28 08:00 AM
Hello,
We are using ST32F405ZG and ST-Nucleo with a custom board design with SD card interface provision in it.
We are getting an error message as shown in the snap shot attached. Please provide some help in this issue.
with regards,
Srinivasan M
2018-03-28 08:14 AM
Would seem like you've balls up something in the design or connectivity...
No design details provided. It's a custom board so no one here was involved or familiar with the design.
Make sure the Nucleo on-board target is disconnected.
Check usual issues/suspect, covered here dozens of times,
Voltages on VDD, AVDD
Voltages on VCAP pins
Voltage on NRST pin
Accessibility of System Loader when BOOT0=High and connected to USART1 PA9/PA10
2018-03-28 10:27 AM
We are getting an error message as shown in the snap shot attached
Those messages are your Eclipse IDE debugger failing to connect via the ST-Link - this has nothing to do with the SD Card interfacing!
2018-03-29 02:45 AM
Hi,
Thank you for the reply.
I have gone through the code examples and found that the line below was missing in my code under the file 'Logic_Config_Touch_4.cfg' :
reset_config srst_only srst_nogate
This made the program to build and upload the program to the controller.
But now the issue is SD card is not getting mounted using FATFS thirdparty library.
The program executes and skips out of the mount function stating FR_INVALID_DRIVE
now I got got stuckup at this point. Don't know what to do next...
2018-03-29 04:56 AM
This made the program to build
That has nothing to do with building the code - it is purely debugger configuration.
The program executes and skips out of the mount function stating FR_INVALID_DRIVE
now I got got stuckup at this point. Don't know what to do next
Look at the FatFs documentation for information about the
FR_INVALID_DRIVE error, and what constitutes a valid drive.
Look at the code and see what are the possible causes of an
FR_INVALID_DRIVE error.
2018-03-29 05:43 AM
>
>
That has nothing to do with building the code - it is purely debugger configuration.
>
I meant - 'build and upload the program to the controller' because of that line it was not uploading the program to the controller.
>
>
Look at the FatFs
documentationfor information about theFR_INVALID_DRIVE error, and what constitutes a
validdrive.>
It says:
FR_INVALID_DRIVE:
Invalid drive number is specified in the path name. A null pointer is given as the path name. (Related option: FF_VOLUMES)
We went through the check and identified that the path name is different and the SD card slot was not working. Later we changed the SD card slot and now its working fine and the file is generated.
Thanks for all your bullet fast help....
2018-03-29 05:48 AM
You're welcome.
Now please mark the thread as answered: