Changeset 54 for ctrl/firmware/Main/CubeMX
- Timestamp:
- Dec 10, 2024, 11:42:57 AM (5 weeks ago)
- Location:
- ctrl/firmware/Main/CubeMX
- Files:
-
- 99 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
ctrl/firmware/Main/CubeMX/Core/Inc/main.h
r50 r54 70 70 #define RST_DISPLAY_Pin GPIO_PIN_15 71 71 #define RST_DISPLAY_GPIO_Port GPIOE 72 #define SD_DETECT_Pin GPIO_PIN_8 73 #define SD_DETECT_GPIO_Port GPIOA 72 74 #define OUTPUT_ON_LED_Pin GPIO_PIN_7 73 75 #define OUTPUT_ON_LED_GPIO_Port GPIOD -
ctrl/firmware/Main/CubeMX/Core/Inc/stm32h7xx_hal_conf.h
r51 r54 75 75 #define HAL_SPI_MODULE_ENABLED 76 76 /* #define HAL_SWPMI_MODULE_ENABLED */ 77 /* #define HAL_TIM_MODULE_ENABLED */ 77 #define HAL_TIM_MODULE_ENABLED 78 78 /* #define HAL_UART_MODULE_ENABLED */ 79 79 /* #define HAL_USART_MODULE_ENABLED */ -
ctrl/firmware/Main/CubeMX/Core/Inc/stm32h7xx_it.h
r51 r54 52 52 void BusFault_Handler(void); 53 53 void UsageFault_Handler(void); 54 void SVC_Handler(void);55 54 void DebugMon_Handler(void); 56 void PendSV_Handler(void);57 void SysTick_Handler(void);58 55 void DMA1_Stream0_IRQHandler(void); 59 56 void SDMMC1_IRQHandler(void); 57 void TIM7_IRQHandler(void); 60 58 void SPI4_IRQHandler(void); 61 59 /* USER CODE BEGIN EFP */ -
ctrl/firmware/Main/CubeMX/Core/Src/gpio.c
r51 r54 108 108 /*Configure GPIO pins : PA0 PA1 PA2 PA3 109 109 PA4 PA5 PA6 PA7 110 PA 8 PA9 PA10 PA11111 PA1 2 PA15 */110 PA9 PA10 PA11 PA12 111 PA15 */ 112 112 GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3 113 113 |GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7 114 |GPIO_PIN_ 8|GPIO_PIN_9|GPIO_PIN_10|GPIO_PIN_11115 |GPIO_PIN_1 2|GPIO_PIN_15;114 |GPIO_PIN_9|GPIO_PIN_10|GPIO_PIN_11|GPIO_PIN_12 115 |GPIO_PIN_15; 116 116 GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; 117 117 GPIO_InitStruct.Pull = GPIO_NOPULL; … … 152 152 HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 153 153 154 /*Configure GPIO pin : SD_DETECT_Pin */ 155 GPIO_InitStruct.Pin = SD_DETECT_Pin; 156 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 157 GPIO_InitStruct.Pull = GPIO_PULLDOWN; 158 HAL_GPIO_Init(SD_DETECT_GPIO_Port, &GPIO_InitStruct); 159 154 160 /*Configure GPIO pin : OUTPUT_ON_LED_Pin */ 155 161 GPIO_InitStruct.Pin = OUTPUT_ON_LED_Pin; -
ctrl/firmware/Main/CubeMX/Core/Src/main.c
r51 r54 18 18 /* USER CODE END Header */ 19 19 /* Includes ------------------------------------------------------------------*/ 20 #include "app_threadx.h" 20 21 #include "main.h" 21 22 #include "dma.h" … … 118 119 /* USER CODE BEGIN 2 */ 119 120 120 //HAL_GPIO_WritePin(PWM_DISPLAY_LIGHT_GPIO_Port, PWM_DISPLAY_LIGHT_Pin, GPIO_PIN_SET);121 //HAL_GPIO_WritePin(TX1_LED_GPIO_Port, TX1_LED_Pin, GPIO_PIN_SET);122 //HAL_GPIO_WritePin(RX1_LED_GPIO_Port, RX1_LED_Pin, GPIO_PIN_SET);123 //HAL_GPIO_WritePin(OUTPUT_ON_LED_GPIO_Port, OUTPUT_ON_LED_Pin, GPIO_PIN_RESET);124 125 126 121 /* USER CODE END 2 */ 122 123 MX_ThreadX_Init(); 124 125 /* We should never get here as control is now taken by the scheduler */ 127 126 128 127 /* Infinite loop */ … … 260 259 261 260 /** 261 * @brief Period elapsed callback in non blocking mode 262 * @note This function is called when TIM7 interrupt took place, inside 263 * HAL_TIM_IRQHandler(). It makes a direct call to HAL_IncTick() to increment 264 * a global variable "uwTick" used as application time base. 265 * @param htim : TIM handle 266 * @retval None 267 */ 268 void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) 269 { 270 /* USER CODE BEGIN Callback 0 */ 271 272 /* USER CODE END Callback 0 */ 273 if (htim->Instance == TIM7) { 274 HAL_IncTick(); 275 } 276 /* USER CODE BEGIN Callback 1 */ 277 278 /* USER CODE END Callback 1 */ 279 } 280 281 /** 262 282 * @brief This function is executed in case of error occurrence. 263 283 * @retval None -
ctrl/firmware/Main/CubeMX/Core/Src/stm32h7xx_it.c
r51 r54 59 59 extern DMA_HandleTypeDef hdma_spi4_tx; 60 60 extern SPI_HandleTypeDef hspi4; 61 extern TIM_HandleTypeDef htim7; 62 61 63 /* USER CODE BEGIN EV */ 62 64 … … 142 144 143 145 /** 144 * @brief This function handles System service call via SWI instruction.145 */146 void SVC_Handler(void)147 {148 /* USER CODE BEGIN SVCall_IRQn 0 */149 150 /* USER CODE END SVCall_IRQn 0 */151 /* USER CODE BEGIN SVCall_IRQn 1 */152 153 /* USER CODE END SVCall_IRQn 1 */154 }155 156 /**157 146 * @brief This function handles Debug monitor. 158 147 */ … … 165 154 166 155 /* USER CODE END DebugMonitor_IRQn 1 */ 167 }168 169 /**170 * @brief This function handles Pendable request for system service.171 */172 void PendSV_Handler(void)173 {174 /* USER CODE BEGIN PendSV_IRQn 0 */175 176 /* USER CODE END PendSV_IRQn 0 */177 /* USER CODE BEGIN PendSV_IRQn 1 */178 179 /* USER CODE END PendSV_IRQn 1 */180 }181 182 /**183 * @brief This function handles System tick timer.184 */185 void SysTick_Handler(void)186 {187 /* USER CODE BEGIN SysTick_IRQn 0 */188 189 /* USER CODE END SysTick_IRQn 0 */190 HAL_IncTick();191 /* USER CODE BEGIN SysTick_IRQn 1 */192 193 /* USER CODE END SysTick_IRQn 1 */194 156 } 195 157 … … 230 192 231 193 /** 194 * @brief This function handles TIM7 global interrupt. 195 */ 196 void TIM7_IRQHandler(void) 197 { 198 /* USER CODE BEGIN TIM7_IRQn 0 */ 199 200 /* USER CODE END TIM7_IRQn 0 */ 201 HAL_TIM_IRQHandler(&htim7); 202 /* USER CODE BEGIN TIM7_IRQn 1 */ 203 204 /* USER CODE END TIM7_IRQn 1 */ 205 } 206 207 /** 232 208 * @brief This function handles SPI4 global interrupt. 233 209 */ -
ctrl/firmware/Main/CubeMX/charger.ioc
r51 r54 51 51 Mcu.Pin10=PC8 52 52 Mcu.Pin11=PC9 53 Mcu.Pin12=PA 13(JTMS/SWDIO)54 Mcu.Pin13=PA1 4(JTCK/SWCLK)55 Mcu.Pin14=P C1056 Mcu.Pin15=PC1 157 Mcu.Pin16=PC1 258 Mcu.Pin17=P D259 Mcu.Pin18=PD 760 Mcu.Pin19=P G953 Mcu.Pin12=PA8 54 Mcu.Pin13=PA13(JTMS/SWDIO) 55 Mcu.Pin14=PA14(JTCK/SWCLK) 56 Mcu.Pin15=PC10 57 Mcu.Pin16=PC11 58 Mcu.Pin17=PC12 59 Mcu.Pin18=PD2 60 Mcu.Pin19=PD7 61 61 Mcu.Pin2=PC15-OSC32_OUT 62 Mcu.Pin20=PG10 63 Mcu.Pin21=PG11 64 Mcu.Pin22=PG12 65 Mcu.Pin23=PG13 66 Mcu.Pin24=VP_RTC_VS_RTC_Activate 67 Mcu.Pin25=VP_SYS_VS_Systick 68 Mcu.Pin26=VP_MEMORYMAP_VS_MEMORYMAP 62 Mcu.Pin20=PG9 63 Mcu.Pin21=PG10 64 Mcu.Pin22=PG11 65 Mcu.Pin23=PG12 66 Mcu.Pin24=PG13 67 Mcu.Pin25=VP_RTC_VS_RTC_Activate 68 Mcu.Pin26=VP_SYS_VS_tim7 69 Mcu.Pin27=VP_MEMORYMAP_VS_MEMORYMAP 70 Mcu.Pin28=VP_STMicroelectronics.X-CUBE-AZRTOS-H7_VS_RTOSJjThreadX_6.4.0_3.3.0 71 Mcu.Pin29=VP_STMicroelectronics.X-CUBE-AZRTOS-H7_VS_FileOoSystemJjFileX_6.4.0_3.3.0 69 72 Mcu.Pin3=PH0-OSC_IN 73 Mcu.Pin30=VP_STMicroelectronics.X-CUBE-AZRTOS-H7_VS_FileOoSystemJjInterfaces_3.3.0_3.3.0 70 74 Mcu.Pin4=PH1-OSC_OUT 71 75 Mcu.Pin5=PE11 … … 74 78 Mcu.Pin8=PE14 75 79 Mcu.Pin9=PE15 76 Mcu.PinsNb=27 77 Mcu.ThirdPartyNb=0 80 Mcu.PinsNb=31 81 Mcu.ThirdParty0=STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0 82 Mcu.ThirdPartyNb=1 78 83 Mcu.UserConstants= 79 84 Mcu.UserName=STM32H723ZETx 80 85 MxCube.Version=6.13.0 81 86 MxDb.Version=DB.6.0.130 82 NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false 83 NVIC.DMA1_Stream0_IRQn=true\:0\:0\:false\:false\:true\:false\: true\:true84 NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false 87 NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false 88 NVIC.DMA1_Stream0_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:true\:true 89 NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false 85 90 NVIC.ForceEnableDMAVector=true 86 NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false 87 NVIC.MemoryManagement_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false 88 NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false 89 NVIC.PendSV_IRQn=true\:0\:0\:false\:false\: true\:false\:false\:false91 NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false 92 NVIC.MemoryManagement_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false 93 NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false 94 NVIC.PendSV_IRQn=true\:0\:0\:false\:false\:false\:false\:false\:false\:false 90 95 NVIC.PriorityGroup=NVIC_PRIORITYGROUP_4 91 NVIC.SDMMC1_IRQn=true\:0\:0\:false\:false\:true\:true\:true\:true 92 NVIC.SPI4_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:true 93 NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false 94 NVIC.SysTick_IRQn=true\:15\:0\:false\:false\:true\:false\:true\:false 95 NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false 96 NVIC.SDMMC1_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:true\:true 97 NVIC.SPI4_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:true\:true 98 NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:false\:false\:false\:false\:false 99 NVIC.SavedPendsvIrqHandlerGenerated=true 100 NVIC.SavedSvcallIrqHandlerGenerated=true 101 NVIC.SavedSystickIrqHandlerGenerated=true 102 NVIC.SysTick_IRQn=true\:0\:0\:false\:false\:false\:false\:false\:true\:false 103 NVIC.TIM7_IRQn=true\:15\:0\:false\:false\:true\:false\:false\:true\:true 104 NVIC.TimeBase=TIM7_IRQn 105 NVIC.TimeBaseIP=TIM7 106 NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false 96 107 PA13(JTMS/SWDIO).Mode=Serial_Wire 97 108 PA13(JTMS/SWDIO).Signal=DEBUG_JTMS-SWDIO 98 109 PA14(JTCK/SWCLK).Mode=Serial_Wire 99 110 PA14(JTCK/SWCLK).Signal=DEBUG_JTCK-SWCLK 111 PA8.GPIOParameters=GPIO_PuPd,GPIO_Label 112 PA8.GPIO_Label=SD_DETECT 113 PA8.GPIO_PuPd=GPIO_PULLDOWN 114 PA8.Locked=true 115 PA8.Signal=GPIO_Input 100 116 PC10.Mode=SD_4_bits_Wide_bus 101 117 PC10.Signal=SDMMC1_D2 … … 187 203 ProjectManager.KeepUserCode=true 188 204 ProjectManager.LastFirmware=true 189 ProjectManager.LibraryCopy= 0205 ProjectManager.LibraryCopy=1 190 206 ProjectManager.MainLocation=Core/Src 191 207 ProjectManager.NoMain=false 192 ProjectManager.PreviousToolchain= 208 ProjectManager.PreviousToolchain=STM32CubeIDE 193 209 ProjectManager.ProjectBuild=false 194 210 ProjectManager.ProjectFileName=charger.ioc … … 197 213 ProjectManager.RegisterCallBack= 198 214 ProjectManager.StackSize=0x400 199 ProjectManager.TargetToolchain= EWARM V8.50215 ProjectManager.TargetToolchain=STM32CubeIDE 200 216 ProjectManager.ToolChainLocation= 201 217 ProjectManager.UAScriptAfterPath= 202 218 ProjectManager.UAScriptBeforePath= 203 ProjectManager.UnderRoot= false204 ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_DMA_Init-DMA-false-HAL-true,4-MX_RTC_Init-RTC-false-HAL-true,5-MX_SPI4_Init-SPI4-false-HAL-true, 0-MX_CORTEX_M7_Init-CORTEX_M7-false-HAL-true219 ProjectManager.UnderRoot=true 220 ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_DMA_Init-DMA-false-HAL-true,4-MX_RTC_Init-RTC-false-HAL-true,5-MX_SPI4_Init-SPI4-false-HAL-true,6-MX_SDMMC1_SD_Init-SDMMC1-false-HAL-true,0-MX_CORTEX_M7_Init-CORTEX_M7-false-HAL-true 205 221 RCC.ADCFreq_Value=166666666.66666666 206 222 RCC.AHB12Freq_Value=100000000 … … 293 309 SPI4.VirtualNSS=VM_NSSHARD 294 310 SPI4.VirtualType=VM_MASTER 311 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.FX_APP_MEM_POOL_SIZE=8192 312 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.FX_DRIVER_SD_INIT=0 313 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.FX_ENABLE_EXFAT=1 314 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.FX_ENABLE_FAULT_TOLERANT=1 315 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.FX_FAULT_TOLERANT=1 316 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.FX_FAULT_TOLERANT_DATA=1 317 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.FileOoSystemJjFileX_Checked=true 318 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.FileOoSystemJjInterfaces_Checked=true 319 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.FileXCcFileOoSystemJjFileXJjCore=true 320 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.IPParameters=TX_APP_MEM_POOL_SIZE,FX_APP_MEM_POOL_SIZE,TX_APP_GENERATE_INIT_CODE,TX_APP_CREATION,TX_ENABLE_STACK_CHECKING,TX_NO_FILEX_POINTER,TX_LOW_POWER,FX_ENABLE_EXFAT,FX_ENABLE_FAULT_TOLERANT,FX_FAULT_TOLERANT,FX_FAULT_TOLERANT_DATA,FX_DRIVER_SD_INIT,ThreadXCcRTOSJjThreadXJjCore,ThreadXCcRTOSJjThreadXJjLowOoPowerOosupport,FileXCcFileOoSystemJjFileXJjCore,InterfacesCcFileOoSystemJjFileXOoSDOointerface 321 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.InterfacesCcFileOoSystemJjFileXOoSDOointerface=true 322 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.RTOSJjThreadX_Checked=true 323 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.TX_APP_CREATION=1 324 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.TX_APP_GENERATE_INIT_CODE=false 325 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.TX_APP_MEM_POOL_SIZE=8192 326 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.TX_ENABLE_STACK_CHECKING=1 327 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.TX_LOW_POWER=1 328 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.TX_NO_FILEX_POINTER=1 329 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.ThreadXCcRTOSJjThreadXJjCore=true 330 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0.ThreadXCcRTOSJjThreadXJjLowOoPowerOosupport=true 331 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0_IsAnAzureRtosMw=true 332 STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0_SwParameter=InterfacesCcFileOoSystemJjFileXOoSDOointerface\:true;ThreadXCcRTOSJjThreadXJjLowOoPowerOosupport\:true;FileXCcFileOoSystemJjFileXJjCore\:true;ThreadXCcRTOSJjThreadXJjCore\:true; 295 333 VP_MEMORYMAP_VS_MEMORYMAP.Mode=CurAppReg 296 334 VP_MEMORYMAP_VS_MEMORYMAP.Signal=MEMORYMAP_VS_MEMORYMAP 297 335 VP_RTC_VS_RTC_Activate.Mode=RTC_Enabled 298 336 VP_RTC_VS_RTC_Activate.Signal=RTC_VS_RTC_Activate 299 VP_SYS_VS_Systick.Mode=SysTick 300 VP_SYS_VS_Systick.Signal=SYS_VS_Systick 337 VP_STMicroelectronics.X-CUBE-AZRTOS-H7_VS_FileOoSystemJjFileX_6.4.0_3.3.0.Mode=FileOoSystemJjFileX 338 VP_STMicroelectronics.X-CUBE-AZRTOS-H7_VS_FileOoSystemJjFileX_6.4.0_3.3.0.Signal=STMicroelectronics.X-CUBE-AZRTOS-H7_VS_FileOoSystemJjFileX_6.4.0_3.3.0 339 VP_STMicroelectronics.X-CUBE-AZRTOS-H7_VS_FileOoSystemJjInterfaces_3.3.0_3.3.0.Mode=FileOoSystemJjInterfaces 340 VP_STMicroelectronics.X-CUBE-AZRTOS-H7_VS_FileOoSystemJjInterfaces_3.3.0_3.3.0.Signal=STMicroelectronics.X-CUBE-AZRTOS-H7_VS_FileOoSystemJjInterfaces_3.3.0_3.3.0 341 VP_STMicroelectronics.X-CUBE-AZRTOS-H7_VS_RTOSJjThreadX_6.4.0_3.3.0.Mode=RTOSJjThreadX 342 VP_STMicroelectronics.X-CUBE-AZRTOS-H7_VS_RTOSJjThreadX_6.4.0_3.3.0.Signal=STMicroelectronics.X-CUBE-AZRTOS-H7_VS_RTOSJjThreadX_6.4.0_3.3.0 343 VP_SYS_VS_tim7.Mode=TIM7 344 VP_SYS_VS_tim7.Signal=SYS_VS_tim7 301 345 board=custom
Note: See TracChangeset
for help on using the changeset viewer.