Parcourir la source

从此刻起,项目分为两部分:Bootloader和App,当前为裁剪后的空白项目

zhanghongyi il y a 2 mois
Parent
commit
111d24f056
100 fichiers modifiés avec 18 ajouts et 35 suppressions
  1. 18 10
      .gitignore
  2. 0 0
      App/App/Inc/App_cpld.h
  3. 0 0
      App/App/Inc/App_display.h
  4. 0 0
      App/App/Inc/App_guardian.h
  5. 0 0
      App/App/Inc/App_main.h
  6. 0 0
      App/App/Inc/App_pc.h
  7. 0 0
      App/App/Inc/App_pidControl.h
  8. 0 0
      App/App/Inc/App_preheat.h
  9. 0 0
      App/App/Src/App_cpld.c
  10. 0 0
      App/App/Src/App_display.c
  11. 0 0
      App/App/Src/App_guardian.c
  12. 0 0
      App/App/Src/App_main.c
  13. 0 0
      App/App/Src/App_pc.c
  14. 0 0
      App/App/Src/App_pidControl.c
  15. 0 0
      App/App/Src/App_preheat.c
  16. 0 0
      App/App_6400_FrontAndBack.ioc
  17. 0 0
      App/Com/Inc/Com_cpld_protocol.h
  18. 0 0
      App/Com/Inc/Com_cpld_usart.h
  19. 0 0
      App/Com/Inc/Com_parameter.h
  20. 0 0
      App/Com/Inc/Com_pc_protocol.h
  21. 0 0
      App/Com/Inc/Com_pc_usart.h
  22. 0 0
      App/Com/Inc/Com_usb_cdc.h
  23. 0 0
      App/Com/Src/Com_cpld_protocol.c
  24. 0 0
      App/Com/Src/Com_cpld_usart.c
  25. 0 0
      App/Com/Src/Com_parameter.c
  26. 0 0
      App/Com/Src/Com_pc_protocol.c
  27. 0 0
      App/Com/Src/Com_pc_usart.c
  28. 0 0
      App/Com/Src/Com_usb_cdc.c
  29. 0 0
      App/Core/Inc/Core_i2c_sw.h
  30. 0 0
      App/Core/Inc/dma.h
  31. 0 0
      App/Core/Inc/dma2d.h
  32. 0 0
      App/Core/Inc/fmc.h
  33. 0 0
      App/Core/Inc/gpio.h
  34. 0 0
      App/Core/Inc/i2c.h
  35. 0 0
      App/Core/Inc/iwdg.h
  36. 0 0
      App/Core/Inc/ltdc.h
  37. 0 0
      App/Core/Inc/main.h
  38. 0 0
      App/Core/Inc/quadspi.h
  39. 0 0
      App/Core/Inc/stm32h7xx_hal_conf.h
  40. 0 0
      App/Core/Inc/stm32h7xx_it.h
  41. 0 0
      App/Core/Inc/usart.h
  42. 0 0
      App/Core/Src/Core_i2c_sw.c
  43. 0 0
      App/Core/Src/dma.c
  44. 0 0
      App/Core/Src/dma2d.c
  45. 0 0
      App/Core/Src/fmc.c
  46. 0 0
      App/Core/Src/gpio.c
  47. 0 0
      App/Core/Src/i2c.c
  48. 0 0
      App/Core/Src/iwdg.c
  49. 0 0
      App/Core/Src/ltdc.c
  50. 0 25
      Core/Src/main.c
  51. 0 0
      App/Core/Src/quadspi.c
  52. 0 0
      App/Core/Src/stm32h7xx_hal_msp.c
  53. 0 0
      App/Core/Src/stm32h7xx_hal_timebase_tim.c
  54. 0 0
      App/Core/Src/stm32h7xx_it.c
  55. 0 0
      App/Core/Src/system_stm32h7xx.c
  56. 0 0
      App/Core/Src/usart.c
  57. 0 0
      App/Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h743xx.h
  58. 0 0
      App/Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h
  59. 0 0
      App/Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h
  60. 0 0
      App/Drivers/CMSIS/Device/ST/STM32H7xx/LICENSE.txt
  61. 0 0
      App/Drivers/CMSIS/Include/cachel1_armv7.h
  62. 0 0
      App/Drivers/CMSIS/Include/cmsis_armcc.h
  63. 0 0
      App/Drivers/CMSIS/Include/cmsis_armclang.h
  64. 0 0
      App/Drivers/CMSIS/Include/cmsis_armclang_ltm.h
  65. 0 0
      App/Drivers/CMSIS/Include/cmsis_compiler.h
  66. 0 0
      App/Drivers/CMSIS/Include/cmsis_gcc.h
  67. 0 0
      App/Drivers/CMSIS/Include/cmsis_iccarm.h
  68. 0 0
      App/Drivers/CMSIS/Include/cmsis_version.h
  69. 0 0
      App/Drivers/CMSIS/Include/core_armv81mml.h
  70. 0 0
      App/Drivers/CMSIS/Include/core_armv8mbl.h
  71. 0 0
      App/Drivers/CMSIS/Include/core_armv8mml.h
  72. 0 0
      App/Drivers/CMSIS/Include/core_cm0.h
  73. 0 0
      App/Drivers/CMSIS/Include/core_cm0plus.h
  74. 0 0
      App/Drivers/CMSIS/Include/core_cm1.h
  75. 0 0
      App/Drivers/CMSIS/Include/core_cm23.h
  76. 0 0
      App/Drivers/CMSIS/Include/core_cm3.h
  77. 0 0
      App/Drivers/CMSIS/Include/core_cm33.h
  78. 0 0
      App/Drivers/CMSIS/Include/core_cm35p.h
  79. 0 0
      App/Drivers/CMSIS/Include/core_cm4.h
  80. 0 0
      App/Drivers/CMSIS/Include/core_cm55.h
  81. 0 0
      App/Drivers/CMSIS/Include/core_cm7.h
  82. 0 0
      App/Drivers/CMSIS/Include/core_cm85.h
  83. 0 0
      App/Drivers/CMSIS/Include/core_sc000.h
  84. 0 0
      App/Drivers/CMSIS/Include/core_sc300.h
  85. 0 0
      App/Drivers/CMSIS/Include/core_starmc1.h
  86. 0 0
      App/Drivers/CMSIS/Include/mpu_armv7.h
  87. 0 0
      App/Drivers/CMSIS/Include/mpu_armv8.h
  88. 0 0
      App/Drivers/CMSIS/Include/pac_armv81.h
  89. 0 0
      App/Drivers/CMSIS/Include/pmu_armv8.h
  90. 0 0
      App/Drivers/CMSIS/Include/tz_context.h
  91. 0 0
      App/Drivers/CMSIS/LICENSE.txt
  92. 0 0
      App/Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h
  93. 0 0
      App/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h
  94. 0 0
      App/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h
  95. 0 0
      App/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h
  96. 0 0
      App/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h
  97. 0 0
      App/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma2d.h
  98. 0 0
      App/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h
  99. 0 0
      App/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h
  100. 0 0
      Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h

+ 18 - 10
.gitignore

@@ -1,14 +1,22 @@
-#编译产物
-MDK-ARM/STMH7_temperature_control_board/
+# 编译产物(App + Bootloader 双工程整目录忽略)
+App/MDK-ARM/App_Output/
+Bootloader/MDK-ARM/Bootloader_Output/
+
+# 参考资料
 参考资料/
 
-#烧录器配置
-MDK-ARM/JLinkLog.txt
-MDK-ARM/JLinkSettings.ini
+# 烧录器配置
+App/MDK-ARM/JLinkLog.txt
+App/MDK-ARM/JLinkSettings.ini
+Bootloader/MDK-ARM/JLinkLog.txt
+Bootloader/MDK-ARM/JLinkSettings.ini
+
+# Keil 个人配置
+**/*.uvoptx
+**/*.uvguix.*
 
-#编译器个人配置
-MDK-ARM/STMH7_temperature_control_board.uvguix.HONGY
-MDK-ARM/STMH7_temperature_control_board.uvoptx
+# CubeMX 每次打开生成的文件
+**/.mxproject
 
-#每次打开CUBEMX生成的文件
-.mxproject
+# Component Viewer 配置
+**/*.scvd

App/Inc/App_cpld.h → App/App/Inc/App_cpld.h


App/Inc/App_display.h → App/App/Inc/App_display.h


App/Inc/App_guardian.h → App/App/Inc/App_guardian.h


App/Inc/App_main.h → App/App/Inc/App_main.h


App/Inc/App_pc.h → App/App/Inc/App_pc.h


App/Inc/App_pidControl.h → App/App/Inc/App_pidControl.h


App/Inc/App_preheat.h → App/App/Inc/App_preheat.h


App/Src/App_cpld.c → App/App/Src/App_cpld.c


App/Src/App_display.c → App/App/Src/App_display.c


App/Src/App_guardian.c → App/App/Src/App_guardian.c


App/Src/App_main.c → App/App/Src/App_main.c


App/Src/App_pc.c → App/App/Src/App_pc.c


App/Src/App_pidControl.c → App/App/Src/App_pidControl.c


App/Src/App_preheat.c → App/App/Src/App_preheat.c


STMH7_temperature_control_board.ioc → App/App_6400_FrontAndBack.ioc


Com/Inc/Com_cpld_protocol.h → App/Com/Inc/Com_cpld_protocol.h


Com/Inc/Com_cpld_usart.h → App/Com/Inc/Com_cpld_usart.h


Com/Inc/Com_parameter.h → App/Com/Inc/Com_parameter.h


Com/Inc/Com_pc_protocol.h → App/Com/Inc/Com_pc_protocol.h


Com/Inc/Com_pc_usart.h → App/Com/Inc/Com_pc_usart.h


Com/Inc/Com_usb_cdc.h → App/Com/Inc/Com_usb_cdc.h


Com/Src/Com_cpld_protocol.c → App/Com/Src/Com_cpld_protocol.c


Com/Src/Com_cpld_usart.c → App/Com/Src/Com_cpld_usart.c


Com/Src/Com_parameter.c → App/Com/Src/Com_parameter.c


Com/Src/Com_pc_protocol.c → App/Com/Src/Com_pc_protocol.c


Com/Src/Com_pc_usart.c → App/Com/Src/Com_pc_usart.c


Com/Src/Com_usb_cdc.c → App/Com/Src/Com_usb_cdc.c


Core/Inc/Core_i2c_sw.h → App/Core/Inc/Core_i2c_sw.h


Core/Inc/dma.h → App/Core/Inc/dma.h


Core/Inc/dma2d.h → App/Core/Inc/dma2d.h


Core/Inc/fmc.h → App/Core/Inc/fmc.h


Core/Inc/gpio.h → App/Core/Inc/gpio.h


Core/Inc/i2c.h → App/Core/Inc/i2c.h


Core/Inc/iwdg.h → App/Core/Inc/iwdg.h


Core/Inc/ltdc.h → App/Core/Inc/ltdc.h


Core/Inc/main.h → App/Core/Inc/main.h


Core/Inc/quadspi.h → App/Core/Inc/quadspi.h


Core/Inc/stm32h7xx_hal_conf.h → App/Core/Inc/stm32h7xx_hal_conf.h


Core/Inc/stm32h7xx_it.h → App/Core/Inc/stm32h7xx_it.h


Core/Inc/usart.h → App/Core/Inc/usart.h


Core/Src/Core_i2c_sw.c → App/Core/Src/Core_i2c_sw.c


Core/Src/dma.c → App/Core/Src/dma.c


Core/Src/dma2d.c → App/Core/Src/dma2d.c


Core/Src/fmc.c → App/Core/Src/fmc.c


Core/Src/gpio.c → App/Core/Src/gpio.c


Core/Src/i2c.c → App/Core/Src/i2c.c


Core/Src/iwdg.c → App/Core/Src/iwdg.c


Core/Src/ltdc.c → App/Core/Src/ltdc.c


+ 0 - 25
Core/Src/main.c

@@ -136,31 +136,6 @@ int main(void)
   MX_USART3_UART_Init();
   MX_IWDG1_Init();
   /* USER CODE BEGIN 2 */
-  {
-    /* 上电打印复位原因 (IWDG/Soft/PIN/POR/BOR), 定位"谁复位的板子"; 读后清标志 */
-    uint32_t rsr = RCC->RSR;
-    if (rsr & RCC_RSR_IWDG1RSTF)
-    {
-      LOG_PRINTF("[INFO] Reset cause: IWDG\r\n");
-    }
-    if (rsr & RCC_RSR_WWDG1RSTF)
-    {
-      LOG_PRINTF("[INFO] Reset cause: WWDG\r\n");
-    }
-    if (rsr & RCC_RSR_SFTRSTF)
-    {
-      LOG_PRINTF("[INFO] Reset cause: SOFT\r\n");
-    }
-    if (rsr & RCC_RSR_PINRSTF)
-    {
-      LOG_PRINTF("[INFO] Reset cause: PIN\r\n");
-    }
-    if (rsr & (RCC_RSR_PORRSTF | RCC_RSR_BORRSTF))
-    {
-      LOG_PRINTF("[INFO] Reset cause: POR/BOR\r\n");
-    }
-    RCC->RSR |= RCC_RSR_RMVF;
-  }
   Int_sdram_init();
   Int_lcd_init();
   Com_parameter_init();

Core/Src/quadspi.c → App/Core/Src/quadspi.c


Core/Src/stm32h7xx_hal_msp.c → App/Core/Src/stm32h7xx_hal_msp.c


Core/Src/stm32h7xx_hal_timebase_tim.c → App/Core/Src/stm32h7xx_hal_timebase_tim.c


Core/Src/stm32h7xx_it.c → App/Core/Src/stm32h7xx_it.c


Core/Src/system_stm32h7xx.c → App/Core/Src/system_stm32h7xx.c


Core/Src/usart.c → App/Core/Src/usart.c


Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h743xx.h → App/Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h743xx.h


Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h → App/Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h


Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h → App/Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h


Drivers/CMSIS/Device/ST/STM32H7xx/LICENSE.txt → App/Drivers/CMSIS/Device/ST/STM32H7xx/LICENSE.txt


Drivers/CMSIS/Include/cachel1_armv7.h → App/Drivers/CMSIS/Include/cachel1_armv7.h


Drivers/CMSIS/Include/cmsis_armcc.h → App/Drivers/CMSIS/Include/cmsis_armcc.h


Drivers/CMSIS/Include/cmsis_armclang.h → App/Drivers/CMSIS/Include/cmsis_armclang.h


Drivers/CMSIS/Include/cmsis_armclang_ltm.h → App/Drivers/CMSIS/Include/cmsis_armclang_ltm.h


Drivers/CMSIS/Include/cmsis_compiler.h → App/Drivers/CMSIS/Include/cmsis_compiler.h


Drivers/CMSIS/Include/cmsis_gcc.h → App/Drivers/CMSIS/Include/cmsis_gcc.h


Drivers/CMSIS/Include/cmsis_iccarm.h → App/Drivers/CMSIS/Include/cmsis_iccarm.h


Drivers/CMSIS/Include/cmsis_version.h → App/Drivers/CMSIS/Include/cmsis_version.h


Drivers/CMSIS/Include/core_armv81mml.h → App/Drivers/CMSIS/Include/core_armv81mml.h


Drivers/CMSIS/Include/core_armv8mbl.h → App/Drivers/CMSIS/Include/core_armv8mbl.h


Drivers/CMSIS/Include/core_armv8mml.h → App/Drivers/CMSIS/Include/core_armv8mml.h


Drivers/CMSIS/Include/core_cm0.h → App/Drivers/CMSIS/Include/core_cm0.h


Drivers/CMSIS/Include/core_cm0plus.h → App/Drivers/CMSIS/Include/core_cm0plus.h


Drivers/CMSIS/Include/core_cm1.h → App/Drivers/CMSIS/Include/core_cm1.h


Drivers/CMSIS/Include/core_cm23.h → App/Drivers/CMSIS/Include/core_cm23.h


Drivers/CMSIS/Include/core_cm3.h → App/Drivers/CMSIS/Include/core_cm3.h


Drivers/CMSIS/Include/core_cm33.h → App/Drivers/CMSIS/Include/core_cm33.h


Drivers/CMSIS/Include/core_cm35p.h → App/Drivers/CMSIS/Include/core_cm35p.h


Drivers/CMSIS/Include/core_cm4.h → App/Drivers/CMSIS/Include/core_cm4.h


Drivers/CMSIS/Include/core_cm55.h → App/Drivers/CMSIS/Include/core_cm55.h


Drivers/CMSIS/Include/core_cm7.h → App/Drivers/CMSIS/Include/core_cm7.h


Drivers/CMSIS/Include/core_cm85.h → App/Drivers/CMSIS/Include/core_cm85.h


Drivers/CMSIS/Include/core_sc000.h → App/Drivers/CMSIS/Include/core_sc000.h


Drivers/CMSIS/Include/core_sc300.h → App/Drivers/CMSIS/Include/core_sc300.h


Drivers/CMSIS/Include/core_starmc1.h → App/Drivers/CMSIS/Include/core_starmc1.h


Drivers/CMSIS/Include/mpu_armv7.h → App/Drivers/CMSIS/Include/mpu_armv7.h


Drivers/CMSIS/Include/mpu_armv8.h → App/Drivers/CMSIS/Include/mpu_armv8.h


Drivers/CMSIS/Include/pac_armv81.h → App/Drivers/CMSIS/Include/pac_armv81.h


Drivers/CMSIS/Include/pmu_armv8.h → App/Drivers/CMSIS/Include/pmu_armv8.h


Drivers/CMSIS/Include/tz_context.h → App/Drivers/CMSIS/Include/tz_context.h


Drivers/CMSIS/LICENSE.txt → App/Drivers/CMSIS/LICENSE.txt


Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h → App/Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h


Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h → App/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h


Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h → App/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h


Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h → App/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h


Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h → App/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h


Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma2d.h → App/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma2d.h


Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h → App/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h


Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h → App/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h


+ 0 - 0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff