Browse Source

New Version

alice
Alice Steiner 3 years ago
parent
commit
de377cf8a6
100 changed files with 16342 additions and 14723 deletions
  1. 14
    14
      SD_CARD_SPI/.cproject
  2. 19
    19
      SD_CARD_SPI/.mxproject
  3. 2
    2
      SD_CARD_SPI/Core/Inc/stm32l1xx_hal_conf.h
  4. 135
    26
      SD_CARD_SPI/Core/Src/main.c
  5. 61
    0
      SD_CARD_SPI/Core/Src/stm32l1xx_hal_msp.c
  6. 6
    0
      SD_CARD_SPI/Debug/Core/Src/fatfs_sd.d
  7. BIN
      SD_CARD_SPI/Debug/Core/Src/fatfs_sd.o
  8. 6
    0
      SD_CARD_SPI/Debug/Core/Src/main.d
  9. BIN
      SD_CARD_SPI/Debug/Core/Src/main.o
  10. 8
    7
      SD_CARD_SPI/Debug/Core/Src/main.su
  11. 6
    0
      SD_CARD_SPI/Debug/Core/Src/stm32l1xx_hal_msp.d
  12. BIN
      SD_CARD_SPI/Debug/Core/Src/stm32l1xx_hal_msp.o
  13. 6
    4
      SD_CARD_SPI/Debug/Core/Src/stm32l1xx_hal_msp.su
  14. 6
    0
      SD_CARD_SPI/Debug/Core/Src/stm32l1xx_it.d
  15. BIN
      SD_CARD_SPI/Debug/Core/Src/stm32l1xx_it.o
  16. 6
    0
      SD_CARD_SPI/Debug/Core/Src/system_stm32l1xx.d
  17. BIN
      SD_CARD_SPI/Debug/Core/Src/system_stm32l1xx.o
  18. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.d
  19. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.o
  20. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.d
  21. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.o
  22. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.d
  23. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.o
  24. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.d
  25. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.o
  26. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash.d
  27. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash.o
  28. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ex.d
  29. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ex.o
  30. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ramfunc.d
  31. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ramfunc.o
  32. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_gpio.d
  33. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_gpio.o
  34. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr.d
  35. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr.o
  36. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr_ex.d
  37. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr_ex.o
  38. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc.d
  39. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc.o
  40. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc_ex.d
  41. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc_ex.o
  42. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_spi.d
  43. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_spi.o
  44. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim.d
  45. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim.o
  46. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim_ex.d
  47. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim_ex.o
  48. 6
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_uart.d
  49. BIN
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_uart.o
  50. 10
    0
      SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/subdir.mk
  51. 6
    0
      SD_CARD_SPI/Debug/FATFS/App/fatfs.d
  52. BIN
      SD_CARD_SPI/Debug/FATFS/App/fatfs.o
  53. 6
    0
      SD_CARD_SPI/Debug/FATFS/Target/user_diskio.d
  54. BIN
      SD_CARD_SPI/Debug/FATFS/Target/user_diskio.o
  55. 6
    0
      SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/diskio.d
  56. BIN
      SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/diskio.o
  57. 6
    0
      SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/ff.d
  58. BIN
      SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/ff.o
  59. 6
    0
      SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.d
  60. BIN
      SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.o
  61. 6
    0
      SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.d
  62. BIN
      SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.o
  63. 6
    0
      SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.d
  64. BIN
      SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.o
  65. BIN
      SD_CARD_SPI/Debug/SD_CARD_SPI.bin
  66. BIN
      SD_CARD_SPI/Debug/SD_CARD_SPI.elf
  67. 14444
    13733
      SD_CARD_SPI/Debug/SD_CARD_SPI.list
  68. 1180
    844
      SD_CARD_SPI/Debug/SD_CARD_SPI.map
  69. 2
    0
      SD_CARD_SPI/Debug/objects.list
  70. 1
    1
      SD_CARD_SPI/FATFS/App/fatfs.c
  71. 1
    1
      SD_CARD_SPI/FATFS/App/fatfs.h
  72. 34
    22
      SD_CARD_SPI/SD_CARD_SPI.ioc
  73. 19
    19
      SD_Card_F401RE/.mxproject
  74. 1
    1
      SD_Card_F401RE/Core/Inc/stm32f4xx_hal_conf.h
  75. 1
    0
      SD_Card_F401RE/Core/Inc/stm32f4xx_it.h
  76. 84
    18
      SD_Card_F401RE/Core/Src/main.c
  77. 66
    0
      SD_Card_F401RE/Core/Src/stm32f4xx_hal_msp.c
  78. 15
    1
      SD_Card_F401RE/Core/Src/stm32f4xx_it.c
  79. 6
    0
      SD_Card_F401RE/Debug/Core/Src/fatfs_sd.d
  80. BIN
      SD_Card_F401RE/Debug/Core/Src/fatfs_sd.o
  81. 6
    0
      SD_Card_F401RE/Debug/Core/Src/main.d
  82. BIN
      SD_Card_F401RE/Debug/Core/Src/main.o
  83. 10
    7
      SD_Card_F401RE/Debug/Core/Src/main.su
  84. 6
    0
      SD_Card_F401RE/Debug/Core/Src/stm32f4xx_hal_msp.d
  85. BIN
      SD_Card_F401RE/Debug/Core/Src/stm32f4xx_hal_msp.o
  86. 6
    4
      SD_Card_F401RE/Debug/Core/Src/stm32f4xx_hal_msp.su
  87. 6
    0
      SD_Card_F401RE/Debug/Core/Src/stm32f4xx_it.d
  88. BIN
      SD_Card_F401RE/Debug/Core/Src/stm32f4xx_it.o
  89. 1
    0
      SD_Card_F401RE/Debug/Core/Src/stm32f4xx_it.su
  90. 6
    0
      SD_Card_F401RE/Debug/Core/Src/system_stm32f4xx.d
  91. BIN
      SD_Card_F401RE/Debug/Core/Src/system_stm32f4xx.o
  92. 6
    0
      SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.d
  93. BIN
      SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o
  94. 6
    0
      SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.d
  95. BIN
      SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o
  96. 6
    0
      SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.d
  97. BIN
      SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o
  98. 6
    0
      SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.d
  99. BIN
      SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o
  100. 0
    0
      SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.d

+ 14
- 14
SD_CARD_SPI/.cproject View File

@@ -17,13 +17,13 @@
<configuration artifactExtension="elf" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" cleanCommand="rm -rf" description="" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1525788676" name="Debug" parent="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug">
<folderInfo id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1525788676." name="/" resourcePath="">
<toolChain id="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.debug.1551769294" name="MCU ARM GCC" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.debug">
<option id="com.st.stm32cube.ide.mcu.option.internal.toolchain.type.1493732574" superClass="com.st.stm32cube.ide.mcu.option.internal.toolchain.type" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.base.gnu-tools-for-stm32" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.option.internal.toolchain.version.375866785" superClass="com.st.stm32cube.ide.mcu.option.internal.toolchain.version" value="7-2018-q2-update" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu.754912280" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu" value="STM32L152RETx" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid.960611407" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid" value="0" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_coreid.2027540432" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_coreid" value="0" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board.513669273" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board" value="NUCLEO-L152RE" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.927363816" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.3 || Debug || true || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.base.gnu-tools-for-stm32 || NUCLEO-L152RE || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../FATFS/App | ../Drivers/CMSIS/Include | ../Core/Inc | ../Drivers/STM32L1xx_HAL_Driver/Inc | ../Drivers/CMSIS/Device/ST/STM32L1xx/Include | ../FATFS/Target | ../Drivers/STM32L1xx_HAL_Driver/Inc/Legacy | ../Middlewares/Third_Party/FatFs/src || || || USE_HAL_DRIVER | STM32L152xE || || Drivers | Core/Startup | Middlewares | Core | FATFS || || || ${workspace_loc:/${ProjName}/STM32L152RETX_FLASH.ld} || true || NonSecure || || secure_nsclib.o || " valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.option.internal.toolchain.type.1493732574" superClass="com.st.stm32cube.ide.mcu.option.internal.toolchain.type" useByScannerDiscovery="false" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.base.gnu-tools-for-stm32" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.option.internal.toolchain.version.375866785" superClass="com.st.stm32cube.ide.mcu.option.internal.toolchain.version" useByScannerDiscovery="false" value="7-2018-q2-update" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu.754912280" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu" useByScannerDiscovery="true" value="STM32L152RETx" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid.960611407" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid" useByScannerDiscovery="false" value="0" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_coreid.2027540432" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_coreid" useByScannerDiscovery="false" value="0" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board.513669273" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board" useByScannerDiscovery="false" value="NUCLEO-L152RE" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.927363816" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.3 || Debug || true || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.base.gnu-tools-for-stm32 || NUCLEO-L152RE || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../FATFS/App | ../Drivers/CMSIS/Include | ../Core/Inc | ../Drivers/STM32L1xx_HAL_Driver/Inc | ../Drivers/CMSIS/Device/ST/STM32L1xx/Include | ../FATFS/Target | ../Drivers/STM32L1xx_HAL_Driver/Inc/Legacy | ../Middlewares/Third_Party/FatFs/src || || || USE_HAL_DRIVER | STM32L152xE || || Drivers | Core/Startup | Middlewares | Core | FATFS || || || ${workspace_loc:/${ProjName}/STM32L152RETX_FLASH.ld} || true || NonSecure || || secure_nsclib.o || " valueType="string"/>
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform.2096327037" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
<builder buildPath="${workspace_loc:/SD_CARD_SPI}/Debug" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.537825062" managedBuildOn="true" name="Gnu Make Builder.Debug" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder"/>
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.1244820924" name="MCU GCC Assembler" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler">
@@ -100,13 +100,13 @@
<configuration artifactExtension="elf" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release" cleanCommand="rm -rf" description="" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.282706448" name="Release" parent="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release">
<folderInfo id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.282706448." name="/" resourcePath="">
<toolChain id="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.release.824124864" name="MCU ARM GCC" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.release">
<option id="com.st.stm32cube.ide.mcu.option.internal.toolchain.type.349938742" superClass="com.st.stm32cube.ide.mcu.option.internal.toolchain.type" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.base.gnu-tools-for-stm32" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.option.internal.toolchain.version.39397055" superClass="com.st.stm32cube.ide.mcu.option.internal.toolchain.version" value="7-2018-q2-update" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu.88208180" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu" value="STM32L152RETx" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid.1755005553" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid" value="0" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_coreid.1827314363" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_coreid" value="0" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board.722161120" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board" value="NUCLEO-L152RE" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.2138819059" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.3 || Release || false || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.base.gnu-tools-for-stm32 || NUCLEO-L152RE || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../FATFS/App | ../Drivers/CMSIS/Include | ../Core/Inc | ../Drivers/STM32L1xx_HAL_Driver/Inc | ../Drivers/CMSIS/Device/ST/STM32L1xx/Include | ../FATFS/Target | ../Drivers/STM32L1xx_HAL_Driver/Inc/Legacy | ../Middlewares/Third_Party/FatFs/src || || || USE_HAL_DRIVER | STM32L152xE || || Drivers | Core/Startup | Middlewares | Core | FATFS || || || ${workspace_loc:/${ProjName}/STM32L152RETX_FLASH.ld} || true || NonSecure || || secure_nsclib.o || " valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.option.internal.toolchain.type.349938742" superClass="com.st.stm32cube.ide.mcu.option.internal.toolchain.type" useByScannerDiscovery="false" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.base.gnu-tools-for-stm32" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.option.internal.toolchain.version.39397055" superClass="com.st.stm32cube.ide.mcu.option.internal.toolchain.version" useByScannerDiscovery="false" value="7-2018-q2-update" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu.88208180" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu" useByScannerDiscovery="true" value="STM32L152RETx" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid.1755005553" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_cpuid" useByScannerDiscovery="false" value="0" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_coreid.1827314363" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_coreid" useByScannerDiscovery="false" value="0" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board.722161120" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board" useByScannerDiscovery="false" value="NUCLEO-L152RE" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.2138819059" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.3 || Release || false || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.base.gnu-tools-for-stm32 || NUCLEO-L152RE || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../FATFS/App | ../Drivers/CMSIS/Include | ../Core/Inc | ../Drivers/STM32L1xx_HAL_Driver/Inc | ../Drivers/CMSIS/Device/ST/STM32L1xx/Include | ../FATFS/Target | ../Drivers/STM32L1xx_HAL_Driver/Inc/Legacy | ../Middlewares/Third_Party/FatFs/src || || || USE_HAL_DRIVER | STM32L152xE || || Drivers | Core/Startup | Middlewares | Core | FATFS || || || ${workspace_loc:/${ProjName}/STM32L152RETX_FLASH.ld} || true || NonSecure || || secure_nsclib.o || " valueType="string"/>
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform.1734695326" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
<builder buildPath="${workspace_loc:/SD_CARD_SPI}/Release" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.1338385203" managedBuildOn="true" name="Gnu Make Builder.Release" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder"/>
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.307579861" name="MCU GCC Assembler" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler">

+ 19
- 19
SD_CARD_SPI/.mxproject View File

@@ -1,34 +1,34 @@
[PreviousLibFiles]
LibFiles=Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal.h;Drivers/STM32L1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_def.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_rcc.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_rcc_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_pwr.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_pwr_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_exti.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_spi.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_tim.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_tim_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_uart.h;Middlewares/Third_Party/FatFs/src/diskio.h;Middlewares/Third_Party/FatFs/src/ff.h;Middlewares/Third_Party/FatFs/src/ff_gen_drv.h;Middlewares/Third_Party/FatFs/src/integer.h;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ramfunc.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_gpio.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_spi.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_uart.c;Middlewares/Third_Party/FatFs/src/diskio.c;Middlewares/Third_Party/FatFs/src/ff.c;Middlewares/Third_Party/FatFs/src/ff_gen_drv.c;Middlewares/Third_Party/FatFs/src/option/syscall.c;Middlewares/Third_Party/FatFs/src/option/ccsbcs.c;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal.h;Drivers/STM32L1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_def.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_rcc.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_rcc_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_pwr.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_pwr_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_exti.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_spi.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_tim.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_tim_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_uart.h;Middlewares/Third_Party/FatFs/src/diskio.h;Middlewares/Third_Party/FatFs/src/ff.h;Middlewares/Third_Party/FatFs/src/ff_gen_drv.h;Middlewares/Third_Party/FatFs/src/integer.h;Drivers/CMSIS/Device/ST/STM32L1xx/Include/stm32l152xe.h;Drivers/CMSIS/Device/ST/STM32L1xx/Include/stm32l1xx.h;Drivers/CMSIS/Device/ST/STM32L1xx/Include/system_stm32l1xx.h;Drivers/CMSIS/Device/ST/STM32L1xx/Source/Templates/system_stm32l1xx.c;Drivers/CMSIS/Include/cmsis_armcc.h;Drivers/CMSIS/Include/cmsis_armclang.h;Drivers/CMSIS/Include/cmsis_compiler.h;Drivers/CMSIS/Include/cmsis_gcc.h;Drivers/CMSIS/Include/cmsis_iccarm.h;Drivers/CMSIS/Include/cmsis_version.h;Drivers/CMSIS/Include/core_armv8mbl.h;Drivers/CMSIS/Include/core_armv8mml.h;Drivers/CMSIS/Include/core_cm0.h;Drivers/CMSIS/Include/core_cm0plus.h;Drivers/CMSIS/Include/core_cm1.h;Drivers/CMSIS/Include/core_cm23.h;Drivers/CMSIS/Include/core_cm3.h;Drivers/CMSIS/Include/core_cm33.h;Drivers/CMSIS/Include/core_cm4.h;Drivers/CMSIS/Include/core_cm7.h;Drivers/CMSIS/Include/core_sc000.h;Drivers/CMSIS/Include/core_sc300.h;Drivers/CMSIS/Include/mpu_armv7.h;Drivers/CMSIS/Include/mpu_armv8.h;Drivers/CMSIS/Include/tz_context.h;
LibFiles=Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal.h;Drivers/STM32L1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_def.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_rcc.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_rcc_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_pwr.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_pwr_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_exti.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_spi.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_tim.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_tim_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_uart.h;Middlewares/Third_Party/FatFs/src/diskio.h;Middlewares/Third_Party/FatFs/src/ff.h;Middlewares/Third_Party/FatFs/src/ff_gen_drv.h;Middlewares/Third_Party/FatFs/src/integer.h;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ramfunc.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_gpio.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_spi.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_uart.c;Middlewares/Third_Party/FatFs/src/diskio.c;Middlewares/Third_Party/FatFs/src/ff.c;Middlewares/Third_Party/FatFs/src/ff_gen_drv.c;Middlewares/Third_Party/FatFs/src/option/syscall.c;Middlewares/Third_Party/FatFs/src/option/ccsbcs.c;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal.h;Drivers/STM32L1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_def.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_rcc.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_rcc_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_pwr.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_pwr_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_exti.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_spi.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_tim.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_tim_ex.h;Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_uart.h;Middlewares/Third_Party/FatFs/src/diskio.h;Middlewares/Third_Party/FatFs/src/ff.h;Middlewares/Third_Party/FatFs/src/ff_gen_drv.h;Middlewares/Third_Party/FatFs/src/integer.h;Drivers/CMSIS/Device/ST/STM32L1xx/Include/stm32l152xe.h;Drivers/CMSIS/Device/ST/STM32L1xx/Include/stm32l1xx.h;Drivers/CMSIS/Device/ST/STM32L1xx/Include/system_stm32l1xx.h;Drivers/CMSIS/Device/ST/STM32L1xx/Source/Templates/system_stm32l1xx.c;Drivers/CMSIS/Include/cmsis_armcc.h;Drivers/CMSIS/Include/cmsis_armclang.h;Drivers/CMSIS/Include/cmsis_compiler.h;Drivers/CMSIS/Include/cmsis_gcc.h;Drivers/CMSIS/Include/cmsis_iccarm.h;Drivers/CMSIS/Include/cmsis_version.h;Drivers/CMSIS/Include/core_armv8mbl.h;Drivers/CMSIS/Include/core_armv8mml.h;Drivers/CMSIS/Include/core_cm0.h;Drivers/CMSIS/Include/core_cm0plus.h;Drivers/CMSIS/Include/core_cm1.h;Drivers/CMSIS/Include/core_cm23.h;Drivers/CMSIS/Include/core_cm3.h;Drivers/CMSIS/Include/core_cm33.h;Drivers/CMSIS/Include/core_cm4.h;Drivers/CMSIS/Include/core_cm7.h;Drivers/CMSIS/Include/core_sc000.h;Drivers/CMSIS/Include/core_sc300.h;Drivers/CMSIS/Include/mpu_armv7.h;Drivers/CMSIS/Include/mpu_armv8.h;Drivers/CMSIS/Include/tz_context.h;

[PreviousUsedCubeIDEFiles]
SourceFiles=Core\Src\main.c;FATFS\Target\user_diskio.c;FATFS\App\fatfs.c;Core\Src\stm32l1xx_it.c;Core\Src\stm32l1xx_hal_msp.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ramfunc.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_gpio.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_spi.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_uart.c;Middlewares/Third_Party/FatFs/src/diskio.c;Middlewares/Third_Party/FatFs/src/ff.c;Middlewares/Third_Party/FatFs/src/ff_gen_drv.c;Middlewares/Third_Party/FatFs/src/option/syscall.c;Middlewares/Third_Party/FatFs/src/option/ccsbcs.c;Core\Src/system_stm32l1xx.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ramfunc.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_gpio.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_spi.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_uart.c;Middlewares/Third_Party/FatFs/src/diskio.c;Middlewares/Third_Party/FatFs/src/ff.c;Middlewares/Third_Party/FatFs/src/ff_gen_drv.c;Middlewares/Third_Party/FatFs/src/option/syscall.c;Middlewares/Third_Party/FatFs/src/option/ccsbcs.c;Core\Src/system_stm32l1xx.c;Drivers/CMSIS/Device/ST/STM32L1xx/Source/Templates/system_stm32l1xx.c;;Middlewares/Third_Party/FatFs/src/diskio.c;Middlewares/Third_Party/FatFs/src/ff.c;Middlewares/Third_Party/FatFs/src/ff_gen_drv.c;Middlewares/Third_Party/FatFs/src/option/syscall.c;Middlewares/Third_Party/FatFs/src/option/ccsbcs.c;
SourceFiles=Core\Src\main.c;FATFS\Target\user_diskio.c;FATFS\App\fatfs.c;Core\Src\stm32l1xx_it.c;Core\Src\stm32l1xx_hal_msp.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ramfunc.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_gpio.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_spi.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_uart.c;Middlewares/Third_Party/FatFs/src/diskio.c;Middlewares/Third_Party/FatFs/src/ff.c;Middlewares/Third_Party/FatFs/src/ff_gen_drv.c;Middlewares/Third_Party/FatFs/src/option/syscall.c;Middlewares/Third_Party/FatFs/src/option/ccsbcs.c;Core\Src/system_stm32l1xx.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ramfunc.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_gpio.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_spi.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim_ex.c;Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_uart.c;Middlewares/Third_Party/FatFs/src/diskio.c;Middlewares/Third_Party/FatFs/src/ff.c;Middlewares/Third_Party/FatFs/src/ff_gen_drv.c;Middlewares/Third_Party/FatFs/src/option/syscall.c;Middlewares/Third_Party/FatFs/src/option/ccsbcs.c;Core\Src/system_stm32l1xx.c;Drivers/CMSIS/Device/ST/STM32L1xx/Source/Templates/system_stm32l1xx.c;;Middlewares/Third_Party/FatFs/src/diskio.c;Middlewares/Third_Party/FatFs/src/ff.c;Middlewares/Third_Party/FatFs/src/ff_gen_drv.c;Middlewares/Third_Party/FatFs/src/option/syscall.c;Middlewares/Third_Party/FatFs/src/option/ccsbcs.c;
HeaderPath=Drivers\STM32L1xx_HAL_Driver\Inc;Drivers\STM32L1xx_HAL_Driver\Inc\Legacy;Middlewares\Third_Party\FatFs\src;Drivers\CMSIS\Device\ST\STM32L1xx\Include;Drivers\CMSIS\Include;FATFS\Target;FATFS\App;Core\Inc;
CDefines=USE_HAL_DRIVER;STM32L152xE;USE_HAL_DRIVER;USE_HAL_DRIVER;

[PreviousGenFiles]
AdvancedFolderStructure=true
HeaderFileListSize=6
HeaderFiles#0=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/FATFS/Target/ffconf.h
HeaderFiles#1=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/FATFS/Target/user_diskio.h
HeaderFiles#2=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/FATFS/App/fatfs.h
HeaderFiles#3=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/Core/Inc/stm32l1xx_it.h
HeaderFiles#4=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/Core/Inc/stm32l1xx_hal_conf.h
HeaderFiles#5=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/Core/Inc/main.h
HeaderFiles#0=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/FATFS/Target/ffconf.h
HeaderFiles#1=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/FATFS/Target/user_diskio.h
HeaderFiles#2=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/FATFS/App/fatfs.h
HeaderFiles#3=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/Core/Inc/stm32l1xx_it.h
HeaderFiles#4=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/Core/Inc/stm32l1xx_hal_conf.h
HeaderFiles#5=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/Core/Inc/main.h
HeaderFolderListSize=3
HeaderPath#0=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/FATFS/Target
HeaderPath#1=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/FATFS/App
HeaderPath#2=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/Core/Inc
HeaderPath#0=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/FATFS/Target
HeaderPath#1=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/FATFS/App
HeaderPath#2=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/Core/Inc
HeaderFiles=;
SourceFileListSize=5
SourceFiles#0=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/FATFS/Target/user_diskio.c
SourceFiles#1=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/FATFS/App/fatfs.c
SourceFiles#2=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/Core/Src/stm32l1xx_it.c
SourceFiles#3=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/Core/Src/stm32l1xx_hal_msp.c
SourceFiles#4=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/Core/Src/main.c
SourceFiles#0=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/FATFS/Target/user_diskio.c
SourceFiles#1=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/FATFS/App/fatfs.c
SourceFiles#2=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/Core/Src/stm32l1xx_it.c
SourceFiles#3=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/Core/Src/stm32l1xx_hal_msp.c
SourceFiles#4=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/Core/Src/main.c
SourceFolderListSize=3
SourcePath#0=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/FATFS/Target
SourcePath#1=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/FATFS/App
SourcePath#2=C:/Users/Gregor/STM32CubeIDE/workspace_1.4.0/SD_CARD_SPI/Core/Src
SourcePath#0=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/FATFS/Target
SourcePath#1=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/FATFS/App
SourcePath#2=C:/Users/Gregor/Desktop/Projektarbeit/Workspace/SD_CARD_SPI/Core/Src
SourceFiles=;


+ 2
- 2
SD_CARD_SPI/Core/Inc/stm32l1xx_hal_conf.h View File

@@ -5,7 +5,7 @@
******************************************************************************
* @attention
*
* <h2><center>&copy; COPYRIGHT(c) 2020 STMicroelectronics</center></h2>
* <h2><center>&copy; COPYRIGHT(c) 2021 STMicroelectronics</center></h2>
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
@@ -49,7 +49,7 @@
*/

#define HAL_MODULE_ENABLED
/*#define HAL_ADC_MODULE_ENABLED */
#define HAL_ADC_MODULE_ENABLED
/*#define HAL_CRYP_MODULE_ENABLED */
/*#define HAL_COMP_MODULE_ENABLED */
/*#define HAL_CRC_MODULE_ENABLED */

+ 135
- 26
SD_CARD_SPI/Core/Src/main.c View File

@@ -45,6 +45,10 @@ FRESULT fres;
DWORD fre_clust;
uint32_t totalSpace, freeSpace;
char buffer[100];
uint16_t AD_RES;
int num;
//Variable name for txt.file
char txtVar[19];

/* USER CODE END PD */

@@ -54,6 +58,8 @@ char buffer[100];
/* USER CODE END PM */

/* Private variables ---------------------------------------------------------*/
ADC_HandleTypeDef hadc;

SPI_HandleTypeDef hspi1;

UART_HandleTypeDef huart2;
@@ -67,6 +73,7 @@ void SystemClock_Config(void);
static void MX_GPIO_Init(void);
static void MX_USART2_UART_Init(void);
static void MX_SPI1_Init(void);
static void MX_ADC_Init(void);
/* USER CODE BEGIN PFP */

/* USER CODE END PFP */
@@ -80,6 +87,13 @@ void transmit_uart(char *string){
HAL_UART_Transmit(&huart2, (uint8_t*) string, len, 200);
}

/*void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)
{
// Read & Update The ADC Result
AD_RES = HAL_ADC_GetValue(hadc);

}*/

/* USER CODE END 0 */

/**
@@ -113,28 +127,26 @@ int main(void)
MX_USART2_UART_Init();
MX_SPI1_Init();
MX_FATFS_Init();
MX_ADC_Init();
/* USER CODE BEGIN 2 */

/* Waiting for the Micro SD module to initialize */
HAL_Delay(500);

fres = f_mount(&fs, "", 0);
if (fres == FR_OK) {
transmit_uart("SD card is mounted successfully!\r\n");
transmit_uart("SD card is mounted successfully!\r\n");
} else if (fres != FR_OK) {
transmit_uart("SD card is not mounted!\r\n");
transmit_uart("SD card is not mounted!\r\n");
}

// FA_OPEN_APPEND opens file if it exists and if not then creates it,
/*// FA_OPEN_APPEND opens file if it exists and if not then creates it,
// the pointer is set at the end of the file for appending
fres = f_open(&fil, "log-file.txt", FA_OPEN_APPEND | FA_WRITE | FA_READ);
fres = f_open(&fil, "log-file_test.txt", FA_OPEN_APPEND | FA_WRITE | FA_READ);
if (fres == FR_OK) {
transmit_uart("File opened.\r\n");
transmit_uart("File opened.\r\n");
} else if (fres != FR_OK) {
transmit_uart("File was not opened!\r\n");
}
transmit_uart("File was not opened!\r\n");
}*/

fres = f_getfree("", &fre_clust, &pfs);
/*fres = f_getfree("", &fre_clust, &pfs);
totalSpace = (uint32_t) ((pfs->n_fatent - 2) * pfs->csize * 0.5);
freeSpace = (uint32_t) (fre_clust * pfs->csize * 0.5);
char mSz[12];
@@ -146,20 +158,10 @@ int main(void)
} else if (fres != FR_OK) {
transmit_uart("Free space could not be determined!\r\n");
}


f_puts("Example Text\n", &fil);


fres = f_close(&fil);
if (fres == FR_OK) {
transmit_uart("File is closed.\r\n");
} else if (fres != FR_OK) {
transmit_uart("File was not closed.\r\n");
}
*/

/* Open file to read */
fres = f_open(&fil, "log-file.txt", FA_READ);
/*fres = f_open(&fil, "log-file.txt", FA_READ);
if (fres == FR_OK) {
transmit_uart("File opened.\r\n");
} else if (fres != FR_OK) {
@@ -171,10 +173,10 @@ int main(void)
sprintf(mRd, "%s", buffer);
transmit_uart(mRd);

}
}*/

/* Close file */
fres = f_close(&fil);
/*fres = f_close(&fil);
if (fres == FR_OK) {
transmit_uart("File is closed.\r\n");
} else if (fres != FR_OK) {
@@ -186,7 +188,28 @@ int main(void)
transmit_uart("SD card is unmounted!\r\n");
} else if (fres != FR_OK) {
transmit_uart("SD card was not unmounted!\r\n");
}
}*/

//create textfile Name (day.month.year_Values.txt) and saves to txtVar
int day = 12;
int month = 2;
int year = 21;
char str_month[3];
char str_year[3];

//int to char array
sprintf(txtVar, "%ld", day);
sprintf(str_month, "%ld", month);
sprintf(str_year, "%ld", year);

//Concatenate strings
strcat(txtVar, ".");
strcat(str_month, ".");
strcat(str_year, "_");

strcat(txtVar, str_month);
strcat(txtVar, str_year);
strcat(txtVar, "Values.txt");

/* USER CODE END 2 */

@@ -195,6 +218,39 @@ int main(void)
while (1)
{
/* USER CODE END WHILE */
HAL_Delay(5000);

// Start ADC Conversion
HAL_ADC_Start(&hadc);
// Poll ADC1 Perihperal & TimeOut = 1mSec
HAL_ADC_PollForConversion(&hadc, 1);
// Read The ADC Conversion Result
AD_RES = HAL_ADC_GetValue(&hadc);

num++;

// FA_OPEN_APPEND opens file (txtVar) if it exists and if not then creates it,
// the pointer is set at the end of the file for appending
fres = f_open(&fil, txtVar, FA_OPEN_APPEND | FA_WRITE | FA_READ);
if (fres == FR_OK) {
transmit_uart("File opened.\r\n");
} else if (fres != FR_OK) {
transmit_uart("File was not opened!\r\n");
}

f_puts("ADC_value_", &fil);
f_printf(&fil, "%d", num);
f_puts(" = ", &fil);
f_printf(&fil, "%d\n", AD_RES);

/* Close file */
fres = f_close(&fil);
if (fres == FR_OK) {
transmit_uart("File is closed.\r\n");
} else if (fres != FR_OK) {
transmit_uart("File was not closed.\r\n");
}


/* USER CODE BEGIN 3 */
}
@@ -242,6 +298,59 @@ void SystemClock_Config(void)
}
}

/**
* @brief ADC Initialization Function
* @param None
* @retval None
*/
static void MX_ADC_Init(void)
{

/* USER CODE BEGIN ADC_Init 0 */

/* USER CODE END ADC_Init 0 */

ADC_ChannelConfTypeDef sConfig = {0};

/* USER CODE BEGIN ADC_Init 1 */

/* USER CODE END ADC_Init 1 */
/** Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion)
*/
hadc.Instance = ADC1;
hadc.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1;
hadc.Init.Resolution = ADC_RESOLUTION_12B;
hadc.Init.DataAlign = ADC_DATAALIGN_RIGHT;
hadc.Init.ScanConvMode = ADC_SCAN_DISABLE;
hadc.Init.EOCSelection = ADC_EOC_SINGLE_CONV;
hadc.Init.LowPowerAutoWait = ADC_AUTOWAIT_DISABLE;
hadc.Init.LowPowerAutoPowerOff = ADC_AUTOPOWEROFF_DISABLE;
hadc.Init.ChannelsBank = ADC_CHANNELS_BANK_A;
hadc.Init.ContinuousConvMode = DISABLE;
hadc.Init.NbrOfConversion = 1;
hadc.Init.DiscontinuousConvMode = DISABLE;
hadc.Init.ExternalTrigConv = ADC_SOFTWARE_START;
hadc.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE;
hadc.Init.DMAContinuousRequests = DISABLE;
if (HAL_ADC_Init(&hadc) != HAL_OK)
{
Error_Handler();
}
/** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
*/
sConfig.Channel = ADC_CHANNEL_0;
sConfig.Rank = ADC_REGULAR_RANK_1;
sConfig.SamplingTime = ADC_SAMPLETIME_384CYCLES;
if (HAL_ADC_ConfigChannel(&hadc, &sConfig) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN ADC_Init 2 */

/* USER CODE END ADC_Init 2 */

}

/**
* @brief SPI1 Initialization Function
* @param None

+ 61
- 0
SD_CARD_SPI/Core/Src/stm32l1xx_hal_msp.c View File

@@ -80,6 +80,67 @@ void HAL_MspInit(void)
/* USER CODE END MspInit 1 */
}

/**
* @brief ADC MSP Initialization
* This function configures the hardware resources used in this example
* @param hadc: ADC handle pointer
* @retval None
*/
void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
{
GPIO_InitTypeDef GPIO_InitStruct = {0};
if(hadc->Instance==ADC1)
{
/* USER CODE BEGIN ADC1_MspInit 0 */

/* USER CODE END ADC1_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_ADC1_CLK_ENABLE();

__HAL_RCC_GPIOA_CLK_ENABLE();
/**ADC GPIO Configuration
PA0-WKUP1 ------> ADC_IN0
*/
GPIO_InitStruct.Pin = GPIO_PIN_0;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);

/* USER CODE BEGIN ADC1_MspInit 1 */

/* USER CODE END ADC1_MspInit 1 */
}

}

/**
* @brief ADC MSP De-Initialization
* This function freeze the hardware resources used in this example
* @param hadc: ADC handle pointer
* @retval None
*/
void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc)
{
if(hadc->Instance==ADC1)
{
/* USER CODE BEGIN ADC1_MspDeInit 0 */

/* USER CODE END ADC1_MspDeInit 0 */
/* Peripheral clock disable */
__HAL_RCC_ADC1_CLK_DISABLE();

/**ADC GPIO Configuration
PA0-WKUP1 ------> ADC_IN0
*/
HAL_GPIO_DeInit(GPIOA, GPIO_PIN_0);

/* USER CODE BEGIN ADC1_MspDeInit 1 */

/* USER CODE END ADC1_MspDeInit 1 */
}

}

/**
* @brief SPI MSP Initialization
* This function configures the hardware resources used in this example

+ 6
- 0
SD_CARD_SPI/Debug/Core/Src/fatfs_sd.d View File

@@ -17,6 +17,8 @@ Core/Src/fatfs_sd.o: ../Core/Src/fatfs_sd.c \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -64,6 +66,10 @@ Core/Src/fatfs_sd.o: ../Core/Src/fatfs_sd.c \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Core/Src/fatfs_sd.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Core/Src/main.d View File

@@ -17,6 +17,8 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -70,6 +72,10 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Core/Src/main.o View File


+ 8
- 7
SD_CARD_SPI/Debug/Core/Src/main.su View File

@@ -1,7 +1,8 @@
main.c:78:6:transmit_uart 24 static
main.c:89:5:main 128 static
main.c:208:6:SystemClock_Config 80 static
main.c:250:13:MX_SPI1_Init 8 static
main.c:288:13:MX_USART2_UART_Init 8 static
main.c:321:13:MX_GPIO_Init 48 static
main.c:357:6:Error_Handler 4 static
main.c:85:6:transmit_uart 24 static
main.c:103:5:main 64 static
main.c:264:6:SystemClock_Config 80 static
main.c:306:13:MX_ADC_Init 24 static
main.c:359:13:MX_SPI1_Init 8 static
main.c:397:13:MX_USART2_UART_Init 8 static
main.c:430:13:MX_GPIO_Init 48 static
main.c:466:6:Error_Handler 4 static

+ 6
- 0
SD_CARD_SPI/Debug/Core/Src/stm32l1xx_hal_msp.d View File

@@ -17,6 +17,8 @@ Core/Src/stm32l1xx_hal_msp.o: ../Core/Src/stm32l1xx_hal_msp.c \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -64,6 +66,10 @@ Core/Src/stm32l1xx_hal_msp.o: ../Core/Src/stm32l1xx_hal_msp.c \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Core/Src/stm32l1xx_hal_msp.o View File


+ 6
- 4
SD_CARD_SPI/Debug/Core/Src/stm32l1xx_hal_msp.su View File

@@ -1,5 +1,7 @@
stm32l1xx_hal_msp.c:64:6:HAL_MspInit 24 static
stm32l1xx_hal_msp.c:89:6:HAL_SPI_MspInit 48 static
stm32l1xx_hal_msp.c:126:6:HAL_SPI_MspDeInit 16 static
stm32l1xx_hal_msp.c:156:6:HAL_UART_MspInit 48 static
stm32l1xx_hal_msp.c:192:6:HAL_UART_MspDeInit 16 static
stm32l1xx_hal_msp.c:89:6:HAL_ADC_MspInit 48 static
stm32l1xx_hal_msp.c:122:6:HAL_ADC_MspDeInit 16 static
stm32l1xx_hal_msp.c:150:6:HAL_SPI_MspInit 48 static
stm32l1xx_hal_msp.c:187:6:HAL_SPI_MspDeInit 16 static
stm32l1xx_hal_msp.c:217:6:HAL_UART_MspInit 48 static
stm32l1xx_hal_msp.c:253:6:HAL_UART_MspDeInit 16 static

+ 6
- 0
SD_CARD_SPI/Debug/Core/Src/stm32l1xx_it.d View File

@@ -17,6 +17,8 @@ Core/Src/stm32l1xx_it.o: ../Core/Src/stm32l1xx_it.c ../Core/Inc/main.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -65,6 +67,10 @@ Core/Src/stm32l1xx_it.o: ../Core/Src/stm32l1xx_it.c ../Core/Inc/main.h \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Core/Src/stm32l1xx_it.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Core/Src/system_stm32l1xx.d View File

@@ -17,6 +17,8 @@ Core/Src/system_stm32l1xx.o: ../Core/Src/system_stm32l1xx.c \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -62,6 +64,10 @@ Core/Src/system_stm32l1xx.o: ../Core/Src/system_stm32l1xx.c \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Core/Src/system_stm32l1xx.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ex.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ex.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ex.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ex.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ramfunc.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ramfunc.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ramfunc.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_flash_ramfunc.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_gpio.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_gpio.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_gpio.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_gpio.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr_ex.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr_ex.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr_ex.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_pwr_ex.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc_ex.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc_ex.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc_ex.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_rcc_ex.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_spi.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_spi.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_spi.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_spi.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim_ex.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim_ex.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim_ex.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_tim_ex.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_uart.d View File

@@ -18,6 +18,8 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_uart.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -63,6 +65,10 @@ Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_uart.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_uart.o View File


+ 10
- 0
SD_CARD_SPI/Debug/Drivers/STM32L1xx_HAL_Driver/Src/subdir.mk View File

@@ -5,6 +5,8 @@
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.c \
../Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc.c \
../Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc_ex.c \
../Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.c \
../Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.c \
../Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.c \
@@ -23,6 +25,8 @@ C_SRCS += \

OBJS += \
./Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.o \
./Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc.o \
./Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc_ex.o \
./Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.o \
./Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.o \
./Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.o \
@@ -41,6 +45,8 @@ OBJS += \

C_DEPS += \
./Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.d \
./Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc.d \
./Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc_ex.d \
./Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.d \
./Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.d \
./Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.d \
@@ -61,6 +67,10 @@ C_DEPS += \
# Each subdirectory must supply rules for building sources it contributes
Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.o: ../Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.c
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32L152xE -DDEBUG -c -I../Core/Inc -I../Drivers/STM32L1xx_HAL_Driver/Inc -I../Drivers/STM32L1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32L1xx/Include -I../Drivers/CMSIS/Include -I../FATFS/Target -I../FATFS/App -I../Middlewares/Third_Party/FatFs/src -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc.o: ../Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc.c
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32L152xE -DDEBUG -c -I../Core/Inc -I../Drivers/STM32L1xx_HAL_Driver/Inc -I../Drivers/STM32L1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32L1xx/Include -I../Drivers/CMSIS/Include -I../FATFS/Target -I../FATFS/App -I../Middlewares/Third_Party/FatFs/src -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc_ex.o: ../Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc_ex.c
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32L152xE -DDEBUG -c -I../Core/Inc -I../Drivers/STM32L1xx_HAL_Driver/Inc -I../Drivers/STM32L1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32L1xx/Include -I../Drivers/CMSIS/Include -I../FATFS/Target -I../FATFS/App -I../Middlewares/Third_Party/FatFs/src -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc_ex.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.o: ../Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.c
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32L152xE -DDEBUG -c -I../Core/Inc -I../Drivers/STM32L1xx_HAL_Driver/Inc -I../Drivers/STM32L1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32L1xx/Include -I../Drivers/CMSIS/Include -I../FATFS/Target -I../FATFS/App -I../Middlewares/Third_Party/FatFs/src -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.o: ../Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.c

+ 6
- 0
SD_CARD_SPI/Debug/FATFS/App/fatfs.d View File

@@ -19,6 +19,8 @@ FATFS/App/fatfs.o: ../FATFS/App/fatfs.c ../FATFS/App/fatfs.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -77,6 +79,10 @@ FATFS/App/fatfs.o: ../FATFS/App/fatfs.c ../FATFS/App/fatfs.h \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/FATFS/App/fatfs.o View File


+ 6
- 0
SD_CARD_SPI/Debug/FATFS/Target/user_diskio.d View File

@@ -21,6 +21,8 @@ FATFS/Target/user_diskio.o: ../FATFS/Target/user_diskio.c \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -78,6 +80,10 @@ FATFS/Target/user_diskio.o: ../FATFS/Target/user_diskio.c \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/FATFS/Target/user_diskio.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/diskio.d View File

@@ -22,6 +22,8 @@ Middlewares/Third_Party/FatFs/src/diskio.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -79,6 +81,10 @@ Middlewares/Third_Party/FatFs/src/diskio.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/diskio.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/ff.d View File

@@ -20,6 +20,8 @@ Middlewares/Third_Party/FatFs/src/ff.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -74,6 +76,10 @@ Middlewares/Third_Party/FatFs/src/ff.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/ff.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.d View File

@@ -22,6 +22,8 @@ Middlewares/Third_Party/FatFs/src/ff_gen_drv.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -79,6 +81,10 @@ Middlewares/Third_Party/FatFs/src/ff_gen_drv.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.d View File

@@ -21,6 +21,8 @@ Middlewares/Third_Party/FatFs/src/option/ccsbcs.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -74,6 +76,10 @@ Middlewares/Third_Party/FatFs/src/option/ccsbcs.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/option/ccsbcs.o View File


+ 6
- 0
SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.d View File

@@ -21,6 +21,8 @@ Middlewares/Third_Party/FatFs/src/option/syscall.o: \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_gpio_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_dma.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h \
../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ramfunc.h \
@@ -74,6 +76,10 @@ Middlewares/Third_Party/FatFs/src/option/syscall.o: \

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_cortex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_adc_ex.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash.h:

../Drivers/STM32L1xx_HAL_Driver/Inc/stm32l1xx_hal_flash_ex.h:

BIN
SD_CARD_SPI/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.o View File


BIN
SD_CARD_SPI/Debug/SD_CARD_SPI.bin View File


BIN
SD_CARD_SPI/Debug/SD_CARD_SPI.elf View File


+ 14444
- 13733
SD_CARD_SPI/Debug/SD_CARD_SPI.list
File diff suppressed because it is too large
View File


+ 1180
- 844
SD_CARD_SPI/Debug/SD_CARD_SPI.map
File diff suppressed because it is too large
View File


+ 2
- 0
SD_CARD_SPI/Debug/objects.list View File

@@ -7,6 +7,8 @@
"Core/Src/system_stm32l1xx.o"
"Core/Startup/startup_stm32l152retx.o"
"Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal.o"
"Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc.o"
"Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_adc_ex.o"
"Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_cortex.o"
"Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_dma.o"
"Drivers/STM32L1xx_HAL_Driver/Src/stm32l1xx_hal_exti.o"

+ 1
- 1
SD_CARD_SPI/FATFS/App/fatfs.c View File

@@ -5,7 +5,7 @@
******************************************************************************
* @attention
*
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
* <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under Ultimate Liberty license

+ 1
- 1
SD_CARD_SPI/FATFS/App/fatfs.h View File

@@ -5,7 +5,7 @@
******************************************************************************
* @attention
*
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
* <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under Ultimate Liberty license

+ 34
- 22
SD_CARD_SPI/SD_CARD_SPI.ioc View File

@@ -1,4 +1,11 @@
#MicroXplorer Configuration settings - do not modify
ADC.Channel-0\#ChannelRegularConversion=ADC_CHANNEL_0
ADC.ContinuousConvMode=DISABLE
ADC.EOCSelection=ADC_EOC_SINGLE_CONV
ADC.IPParameters=Rank-0\#ChannelRegularConversion,Channel-0\#ChannelRegularConversion,SamplingTime-0\#ChannelRegularConversion,NbrOfConversionFlag,ContinuousConvMode,EOCSelection
ADC.NbrOfConversionFlag=1
ADC.Rank-0\#ChannelRegularConversion=1
ADC.SamplingTime-0\#ChannelRegularConversion=ADC_SAMPLETIME_384CYCLES
FATFS.IPParameters=_USE_LFN,_MAX_SS
FATFS._MAX_SS=4096
FATFS._USE_LFN=1
@@ -6,37 +13,39 @@ File.Version=6
GPIO.groupedBy=Group By Peripherals
KeepUserPlacement=false
Mcu.Family=STM32L1
Mcu.IP0=FATFS
Mcu.IP1=NVIC
Mcu.IP2=RCC
Mcu.IP3=SPI1
Mcu.IP4=SYS
Mcu.IP5=USART2
Mcu.IPNb=6
Mcu.IP0=ADC
Mcu.IP1=FATFS
Mcu.IP2=NVIC
Mcu.IP3=RCC
Mcu.IP4=SPI1
Mcu.IP5=SYS
Mcu.IP6=USART2
Mcu.IPNb=7
Mcu.Name=STM32L152RETx
Mcu.Package=LQFP64
Mcu.Pin0=PC13-WKUP2
Mcu.Pin1=PC14-OSC32_IN
Mcu.Pin10=PA13
Mcu.Pin11=PA14
Mcu.Pin12=PB3
Mcu.Pin13=PB6
Mcu.Pin14=VP_FATFS_VS_Generic
Mcu.Pin15=VP_SYS_VS_Systick
Mcu.Pin10=PA7
Mcu.Pin11=PA13
Mcu.Pin12=PA14
Mcu.Pin13=PB3
Mcu.Pin14=PB6
Mcu.Pin15=VP_FATFS_VS_Generic
Mcu.Pin16=VP_SYS_VS_Systick
Mcu.Pin2=PC15-OSC32_OUT
Mcu.Pin3=PH0-OSC_IN
Mcu.Pin4=PH1-OSC_OUT
Mcu.Pin5=PA2
Mcu.Pin6=PA3
Mcu.Pin7=PA5
Mcu.Pin8=PA6
Mcu.Pin9=PA7
Mcu.PinsNb=16
Mcu.Pin5=PA0-WKUP1
Mcu.Pin6=PA2
Mcu.Pin7=PA3
Mcu.Pin8=PA5
Mcu.Pin9=PA6
Mcu.PinsNb=17
Mcu.ThirdPartyNb=0
Mcu.UserConstants=
Mcu.UserName=STM32L152RETx
MxCube.Version=6.0.0
MxDb.Version=DB.6.0.0
MxCube.Version=6.1.1
MxDb.Version=DB.6.0.10
NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:true\:false
NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:true\:false
NVIC.ForceEnableDMAVector=true
@@ -48,6 +57,8 @@ NVIC.PriorityGroup=NVIC_PRIORITYGROUP_0
NVIC.SVC_IRQn=true\:0\:0\:false\:false\:true\:true\:false
NVIC.SysTick_IRQn=true\:0\:0\:true\:false\:true\:true\:true
NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:true\:false
PA0-WKUP1.Mode=IN0
PA0-WKUP1.Signal=ADC_IN0
PA13.GPIOParameters=GPIO_Label
PA13.GPIO_Label=TMS
PA13.Locked=true
@@ -126,7 +137,7 @@ ProjectManager.StackSize=0x400
ProjectManager.TargetToolchain=STM32CubeIDE
ProjectManager.ToolChainLocation=
ProjectManager.UnderRoot=true
ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC-false-HAL-false,3-MX_USART2_UART_Init-USART2-false-HAL-true,4-MX_SPI1_Init-SPI1-false-HAL-true,5-MX_FATFS_Init-FATFS-false-HAL-false
ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC-false-HAL-false,3-MX_USART2_UART_Init-USART2-false-HAL-true,4-MX_SPI1_Init-SPI1-false-HAL-true,5-MX_FATFS_Init-FATFS-false-HAL-false,6-MX_ADC_Init-ADC-false-HAL-true
RCC.48MHZClocksFreq_Value=48000000
RCC.AHBFreq_Value=32000000
RCC.APB1Freq_Value=32000000
@@ -172,3 +183,4 @@ VP_SYS_VS_Systick.Mode=SysTick
VP_SYS_VS_Systick.Signal=SYS_VS_Systick
board=NUCLEO-L152RE
boardIOC=true
isbadioc=false

+ 19
- 19
SD_Card_F401RE/.mxproject
File diff suppressed because it is too large
View File


+ 1
- 1
SD_Card_F401RE/Core/Inc/stm32f4xx_hal_conf.h View File

@@ -36,7 +36,7 @@
*/
#define HAL_MODULE_ENABLED

/* #define HAL_ADC_MODULE_ENABLED */
#define HAL_ADC_MODULE_ENABLED
/* #define HAL_CRYP_MODULE_ENABLED */
/* #define HAL_CAN_MODULE_ENABLED */
/* #define HAL_CRC_MODULE_ENABLED */

+ 1
- 0
SD_Card_F401RE/Core/Inc/stm32f4xx_it.h View File

@@ -56,6 +56,7 @@ void SVC_Handler(void);
void DebugMon_Handler(void);
void PendSV_Handler(void);
void SysTick_Handler(void);
void ADC_IRQHandler(void);
/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

+ 84
- 18
SD_Card_F401RE/Core/Src/main.c View File

@@ -43,6 +43,7 @@ FRESULT fres;
DWORD fre_clust;
uint32_t totalSpace, freeSpace;
char buffer[100];
uint16_t AD_RES;
/* USER CODE END PD */

/* Private macro -------------------------------------------------------------*/
@@ -51,6 +52,8 @@ char buffer[100];
/* USER CODE END PM */

/* Private variables ---------------------------------------------------------*/
ADC_HandleTypeDef hadc1;

SPI_HandleTypeDef hspi1;

UART_HandleTypeDef huart2;
@@ -64,6 +67,7 @@ void SystemClock_Config(void);
static void MX_GPIO_Init(void);
static void MX_USART2_UART_Init(void);
static void MX_SPI1_Init(void);
static void MX_ADC1_Init(void);
/* USER CODE BEGIN PFP */

/* USER CODE END PFP */
@@ -108,6 +112,7 @@ int main(void)
MX_USART2_UART_Init();
MX_SPI1_Init();
MX_FATFS_Init();
MX_ADC1_Init();
/* USER CODE BEGIN 2 */

/* Waiting for the Micro SD module to initialize */
@@ -122,14 +127,14 @@ int main(void)

// FA_OPEN_APPEND opens file if it exists and if not then creates it,
// the pointer is set at the end of the file for appending
fres = f_open(&fil, "log-file.txt", FA_OPEN_APPEND | FA_WRITE | FA_READ);
fres = f_open(&fil, "log-file_test.txt", FA_OPEN_APPEND | FA_WRITE | FA_READ);
if (fres == FR_OK) {
transmit_uart("File opened.\r\n");
} else if (fres != FR_OK) {
transmit_uart("File was not opened!\r\n");
}

fres = f_getfree("", &fre_clust, &pfs);
/*fres = f_getfree("", &fre_clust, &pfs);
totalSpace = (uint32_t) ((pfs->n_fatent - 2) * pfs->csize * 0.5);
freeSpace = (uint32_t) (fre_clust * pfs->csize * 0.5);
char mSz[12];
@@ -141,19 +146,15 @@ int main(void)
} else if (fres != FR_OK) {
transmit_uart("Free space could not be determined!\r\n");
}
*/

f_puts("Example Text\n", &fil);
// Start ADC Conversion
HAL_ADC_Start_IT(&hadc1);


fres = f_close(&fil);
if (fres == FR_OK) {
transmit_uart("File is closed.\r\n");
} else if (fres != FR_OK) {
transmit_uart("File was not closed.\r\n");
}

/* Open file to read */
fres = f_open(&fil, "log-file.txt", FA_READ);
/*fres = f_open(&fil, "log-file.txt", FA_READ);
if (fres == FR_OK) {
transmit_uart("File opened.\r\n");
} else if (fres != FR_OK) {
@@ -165,22 +166,17 @@ int main(void)
sprintf(mRd, "%s", buffer);
transmit_uart(mRd);

}
}*/

/* Close file */
fres = f_close(&fil);
/*fres = f_close(&fil);
if (fres == FR_OK) {
transmit_uart("File is closed.\r\n");
} else if (fres != FR_OK) {
transmit_uart("File was not closed.\r\n");
}
*/

f_mount(NULL, "", 1);
if (fres == FR_OK) {
transmit_uart("SD card is unmounted!\r\n");
} else if (fres != FR_OK) {
transmit_uart("SD card was not unmounted!\r\n");
}

/* USER CODE END 2 */

@@ -239,6 +235,56 @@ void SystemClock_Config(void)
}
}

/**
* @brief ADC1 Initialization Function
* @param None
* @retval None
*/
static void MX_ADC1_Init(void)
{

/* USER CODE BEGIN ADC1_Init 0 */

/* USER CODE END ADC1_Init 0 */

ADC_ChannelConfTypeDef sConfig = {0};

/* USER CODE BEGIN ADC1_Init 1 */

/* USER CODE END ADC1_Init 1 */
/** Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion)
*/
hadc1.Instance = ADC1;
hadc1.Init.ClockPrescaler = ADC_CLOCK_SYNC_PCLK_DIV4;
hadc1.Init.Resolution = ADC_RESOLUTION_12B;
hadc1.Init.ScanConvMode = DISABLE;
hadc1.Init.ContinuousConvMode = ENABLE;
hadc1.Init.DiscontinuousConvMode = DISABLE;
hadc1.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE;
hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START;
hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT;
hadc1.Init.NbrOfConversion = 1;
hadc1.Init.DMAContinuousRequests = DISABLE;
hadc1.Init.EOCSelection = ADC_EOC_SINGLE_CONV;
if (HAL_ADC_Init(&hadc1) != HAL_OK)
{
Error_Handler();
}
/** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
*/
sConfig.Channel = ADC_CHANNEL_0;
sConfig.Rank = 1;
sConfig.SamplingTime = ADC_SAMPLETIME_480CYCLES;
if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN ADC1_Init 2 */

/* USER CODE END ADC1_Init 2 */

}

/**
* @brief SPI1 Initialization Function
* @param None
@@ -344,6 +390,26 @@ static void MX_GPIO_Init(void)
}

/* USER CODE BEGIN 4 */
void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)
{
// Read & Update The ADC Result
AD_RES = HAL_ADC_GetValue(&hadc1);


f_puts(AD_RES, &fil);

fres = f_close(&fil);
if (fres == FR_OK) {
transmit_uart("File is closed.\r\n");
} else if (fres != FR_OK) {
transmit_uart("File was not closed.\r\n");
}
}

void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
{
transmit_uart("ADC Error!\r\n");
}

/* USER CODE END 4 */


+ 66
- 0
SD_Card_F401RE/Core/Src/stm32f4xx_hal_msp.c View File

@@ -79,6 +79,72 @@ void HAL_MspInit(void)
/* USER CODE END MspInit 1 */
}

/**
* @brief ADC MSP Initialization
* This function configures the hardware resources used in this example
* @param hadc: ADC handle pointer
* @retval None
*/
void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
{
GPIO_InitTypeDef GPIO_InitStruct = {0};
if(hadc->Instance==ADC1)
{
/* USER CODE BEGIN ADC1_MspInit 0 */

/* USER CODE END ADC1_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_ADC1_CLK_ENABLE();

__HAL_RCC_GPIOA_CLK_ENABLE();
/**ADC1 GPIO Configuration
PA0-WKUP ------> ADC1_IN0
*/
GPIO_InitStruct.Pin = GPIO_PIN_0;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);

/* ADC1 interrupt Init */
HAL_NVIC_SetPriority(ADC_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(ADC_IRQn);
/* USER CODE BEGIN ADC1_MspInit 1 */

/* USER CODE END ADC1_MspInit 1 */
}

}

/**
* @brief ADC MSP De-Initialization
* This function freeze the hardware resources used in this example
* @param hadc: ADC handle pointer
* @retval None
*/
void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc)
{
if(hadc->Instance==ADC1)
{
/* USER CODE BEGIN ADC1_MspDeInit 0 */

/* USER CODE END ADC1_MspDeInit 0 */
/* Peripheral clock disable */
__HAL_RCC_ADC1_CLK_DISABLE();

/**ADC1 GPIO Configuration
PA0-WKUP ------> ADC1_IN0
*/
HAL_GPIO_DeInit(GPIOA, GPIO_PIN_0);

/* ADC1 interrupt DeInit */
HAL_NVIC_DisableIRQ(ADC_IRQn);
/* USER CODE BEGIN ADC1_MspDeInit 1 */

/* USER CODE END ADC1_MspDeInit 1 */
}

}

/**
* @brief SPI MSP Initialization
* This function configures the hardware resources used in this example

+ 15
- 1
SD_Card_F401RE/Core/Src/stm32f4xx_it.c View File

@@ -56,7 +56,7 @@
/* USER CODE END 0 */

/* External variables --------------------------------------------------------*/
extern ADC_HandleTypeDef hadc1;
/* USER CODE BEGIN EV */

/* USER CODE END EV */
@@ -199,6 +199,20 @@ void SysTick_Handler(void)
/* please refer to the startup file (startup_stm32f4xx.s). */
/******************************************************************************/

/**
* @brief This function handles ADC1 global interrupt.
*/
void ADC_IRQHandler(void)
{
/* USER CODE BEGIN ADC_IRQn 0 */

/* USER CODE END ADC_IRQn 0 */
HAL_ADC_IRQHandler(&hadc1);
/* USER CODE BEGIN ADC_IRQn 1 */

/* USER CODE END ADC_IRQn 1 */
}

/* USER CODE BEGIN 1 */

/* USER CODE END 1 */

+ 6
- 0
SD_Card_F401RE/Debug/Core/Src/fatfs_sd.d View File

@@ -19,6 +19,8 @@ Core/Src/fatfs_sd.o: ../Core/Src/fatfs_sd.c \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h \
@@ -69,6 +71,10 @@ Core/Src/fatfs_sd.o: ../Core/Src/fatfs_sd.c \

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h:

BIN
SD_Card_F401RE/Debug/Core/Src/fatfs_sd.o View File


+ 6
- 0
SD_Card_F401RE/Debug/Core/Src/main.d View File

@@ -19,6 +19,8 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h \
@@ -75,6 +77,10 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h:

BIN
SD_Card_F401RE/Debug/Core/Src/main.o View File


+ 10
- 7
SD_Card_F401RE/Debug/Core/Src/main.su View File

@@ -1,7 +1,10 @@
main.c:74:6:transmit_uart 24 static
main.c:84:5:main 128 static
main.c:202:6:SystemClock_Config 88 static
main.c:247:13:MX_SPI1_Init 8 static
main.c:285:13:MX_USART2_UART_Init 8 static
main.c:318:13:MX_GPIO_Init 48 static
main.c:354:6:Error_Handler 4 static,ignoring_inline_asm
main.c:78:6:transmit_uart 24 static
main.c:88:5:main 8 static
main.c:198:6:SystemClock_Config 88 static
main.c:243:13:MX_ADC1_Init 24 static
main.c:293:13:MX_SPI1_Init 8 static
main.c:331:13:MX_USART2_UART_Init 8 static
main.c:364:13:MX_GPIO_Init 48 static
main.c:393:6:HAL_ADC_ConvCpltCallback 16 static
main.c:409:6:HAL_ADC_ErrorCallback 16 static
main.c:420:6:Error_Handler 4 static,ignoring_inline_asm

+ 6
- 0
SD_Card_F401RE/Debug/Core/Src/stm32f4xx_hal_msp.d View File

@@ -19,6 +19,8 @@ Core/Src/stm32f4xx_hal_msp.o: ../Core/Src/stm32f4xx_hal_msp.c \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h \
@@ -69,6 +71,10 @@ Core/Src/stm32f4xx_hal_msp.o: ../Core/Src/stm32f4xx_hal_msp.c \

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h:

BIN
SD_Card_F401RE/Debug/Core/Src/stm32f4xx_hal_msp.o View File


+ 6
- 4
SD_Card_F401RE/Debug/Core/Src/stm32f4xx_hal_msp.su View File

@@ -1,5 +1,7 @@
stm32f4xx_hal_msp.c:64:6:HAL_MspInit 16 static
stm32f4xx_hal_msp.c:88:6:HAL_SPI_MspInit 48 static
stm32f4xx_hal_msp.c:125:6:HAL_SPI_MspDeInit 16 static
stm32f4xx_hal_msp.c:155:6:HAL_UART_MspInit 48 static
stm32f4xx_hal_msp.c:191:6:HAL_UART_MspDeInit 16 static
stm32f4xx_hal_msp.c:88:6:HAL_ADC_MspInit 48 static
stm32f4xx_hal_msp.c:124:6:HAL_ADC_MspDeInit 16 static
stm32f4xx_hal_msp.c:154:6:HAL_SPI_MspInit 48 static
stm32f4xx_hal_msp.c:191:6:HAL_SPI_MspDeInit 16 static
stm32f4xx_hal_msp.c:221:6:HAL_UART_MspInit 48 static
stm32f4xx_hal_msp.c:257:6:HAL_UART_MspDeInit 16 static

+ 6
- 0
SD_Card_F401RE/Debug/Core/Src/stm32f4xx_it.d View File

@@ -19,6 +19,8 @@ Core/Src/stm32f4xx_it.o: ../Core/Src/stm32f4xx_it.c ../Core/Inc/main.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h \
@@ -70,6 +72,10 @@ Core/Src/stm32f4xx_it.o: ../Core/Src/stm32f4xx_it.c ../Core/Inc/main.h \

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h:

BIN
SD_Card_F401RE/Debug/Core/Src/stm32f4xx_it.o View File


+ 1
- 0
SD_Card_F401RE/Debug/Core/Src/stm32f4xx_it.su View File

@@ -7,3 +7,4 @@ stm32f4xx_it.c:145:6:SVC_Handler 4 static
stm32f4xx_it.c:158:6:DebugMon_Handler 4 static
stm32f4xx_it.c:171:6:PendSV_Handler 4 static
stm32f4xx_it.c:184:6:SysTick_Handler 8 static
stm32f4xx_it.c:205:6:ADC_IRQHandler 8 static

+ 6
- 0
SD_Card_F401RE/Debug/Core/Src/system_stm32f4xx.d View File

@@ -19,6 +19,8 @@ Core/Src/system_stm32f4xx.o: ../Core/Src/system_stm32f4xx.c \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h \
@@ -67,6 +69,10 @@ Core/Src/system_stm32f4xx.o: ../Core/Src/system_stm32f4xx.c \

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h:

BIN
SD_Card_F401RE/Debug/Core/Src/system_stm32f4xx.o View File


+ 6
- 0
SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.d View File

@@ -20,6 +20,8 @@ Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o: \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h \
@@ -68,6 +70,10 @@ Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o: \

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h:

BIN
SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o View File


+ 6
- 0
SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.d View File

@@ -20,6 +20,8 @@ Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o: \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h \
@@ -68,6 +70,10 @@ Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o: \

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h:

BIN
SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o View File


+ 6
- 0
SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.d View File

@@ -20,6 +20,8 @@ Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o: \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h \
@@ -68,6 +70,10 @@ Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o: \

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h:

BIN
SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o View File


+ 6
- 0
SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.d View File

@@ -20,6 +20,8 @@ Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o: \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h \
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h \
@@ -68,6 +70,10 @@ Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o: \

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc_ex.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h:

../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h:

BIN
SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o View File


+ 0
- 0
SD_Card_F401RE/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.d View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save