Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dgr6878
rt-thread
提交
b0db5ef2
R
rt-thread
项目概览
dgr6878
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b0db5ef2
编写于
10月 26, 2019
作者:
Z
zylx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【修改】更新cpu频率至400M,防止cpu锁死
上级
af315e63
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
55 addition
and
55 deletion
+55
-55
bsp/stm32/stm32h750-armfly-h7-tool/board/CubeMX_Config/.mxproject
...2/stm32h750-armfly-h7-tool/board/CubeMX_Config/.mxproject
+2
-2
bsp/stm32/stm32h750-armfly-h7-tool/board/CubeMX_Config/CubeMX_Config.ioc
...h750-armfly-h7-tool/board/CubeMX_Config/CubeMX_Config.ioc
+46
-46
bsp/stm32/stm32h750-armfly-h7-tool/board/CubeMX_Config/Src/main.c
...2/stm32h750-armfly-h7-tool/board/CubeMX_Config/Src/main.c
+4
-4
bsp/stm32/stm32h750-armfly-h7-tool/board/board.c
bsp/stm32/stm32h750-armfly-h7-tool/board/board.c
+3
-3
未找到文件。
bsp/stm32/stm32h750-armfly-h7-tool/board/CubeMX_Config/.mxproject
浏览文件 @
b0db5ef2
[PreviousGenFiles]
HeaderPath=
D
:/rt-thread/bsp/stm32/stm32h750-armfly-h7-tool/board/CubeMX_Config/Inc
HeaderPath=
E
:/rt-thread/bsp/stm32/stm32h750-armfly-h7-tool/board/CubeMX_Config/Inc
HeaderFiles=stm32h7xx_it.h;stm32h7xx_hal_conf.h;main.h;
SourcePath=
D
:/rt-thread/bsp/stm32/stm32h750-armfly-h7-tool/board/CubeMX_Config/Src
SourcePath=
E
:/rt-thread/bsp/stm32/stm32h750-armfly-h7-tool/board/CubeMX_Config/Src
SourceFiles=stm32h7xx_it.c;stm32h7xx_hal_msp.c;main.c;
[PreviousLibFiles]
...
...
bsp/stm32/stm32h750-armfly-h7-tool/board/CubeMX_Config/CubeMX_Config.ioc
浏览文件 @
b0db5ef2
...
...
@@ -213,80 +213,80 @@ ProjectManager.ToolChainLocation=
ProjectManager.UnderRoot=false
ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC-false-HAL-false,3-MX_USART1_UART_Init-USART1-false-HAL-true,4-MX_CRC_Init-CRC-false-HAL-true,5-MX_RNG_Init-RNG-false-HAL-true,6-MX_ADC3_Init-ADC3-false-HAL-true,7-MX_DAC1_Init-DAC1-false-HAL-true,8-MX_ETH_Init-ETH-false-HAL-true,9-MX_QUADSPI_Init-QUADSPI-false-HAL-true,10-MX_SDMMC1_MMC_Init-SDMMC1-false-HAL-true,11-MX_SPI5_Init-SPI5-false-HAL-true,12-MX_UART4_Init-UART4-false-HAL-true
RCC.ADCFreq_Value=480000000
RCC.AHB12Freq_Value=2
4
0000000
RCC.AHB4Freq_Value=2
4
0000000
RCC.APB1Freq_Value=1
2
0000000
RCC.APB2Freq_Value=1
2
0000000
RCC.APB3Freq_Value=1
2
0000000
RCC.APB4Freq_Value=1
2
0000000
RCC.AXIClockFreq_Value=2
4
0000000
RCC.AHB12Freq_Value=2
0
0000000
RCC.AHB4Freq_Value=2
0
0000000
RCC.APB1Freq_Value=1
0
0000000
RCC.APB2Freq_Value=1
0
0000000
RCC.APB3Freq_Value=1
0
0000000
RCC.APB4Freq_Value=1
0
0000000
RCC.AXIClockFreq_Value=2
0
0000000
RCC.CECFreq_Value=32000
RCC.CKPERFreq_Value=64000000
RCC.CortexFreq_Value=4
8
0000000
RCC.CpuClockFreq_Value=4
8
0000000
RCC.D1CPREFreq_Value=4
8
0000000
RCC.CortexFreq_Value=4
0
0000000
RCC.CpuClockFreq_Value=4
0
0000000
RCC.D1CPREFreq_Value=4
0
0000000
RCC.D1PPRE=RCC_APB3_DIV2
RCC.D2PPRE1=RCC_APB1_DIV2
RCC.D2PPRE2=RCC_APB2_DIV2
RCC.D3PPRE=RCC_APB4_DIV2
RCC.DFSDMACLkFreq_Value=4
8
0000000
RCC.DFSDMFreq_Value=1
2
0000000
RCC.DFSDMACLkFreq_Value=4
0
0000000
RCC.DFSDMFreq_Value=1
0
0000000
RCC.DIVM1=5
RCC.DIVM2=5
RCC.DIVN1=1
92
RCC.DIVN1=1
60
RCC.DIVN2=192
RCC.DIVP1Freq_Value=4
8
0000000
RCC.DIVP1Freq_Value=4
0
0000000
RCC.DIVP2Freq_Value=480000000
RCC.DIVP3Freq_Value=50390625
RCC.DIVQ1Freq_Value=4
8
0000000
RCC.DIVQ1Freq_Value=4
0
0000000
RCC.DIVQ2Freq_Value=480000000
RCC.DIVQ3Freq_Value=50390625
RCC.DIVR1Freq_Value=4
8
0000000
RCC.DIVR1Freq_Value=4
0
0000000
RCC.DIVR2Freq_Value=480000000
RCC.DIVR3Freq_Value=50390625
RCC.FDCANFreq_Value=4
8
0000000
RCC.FMCFreq_Value=2
4
0000000
RCC.FDCANFreq_Value=4
0
0000000
RCC.FMCFreq_Value=2
0
0000000
RCC.FamilyName=M
RCC.HCLK3ClockFreq_Value=2
4
0000000
RCC.HCLKFreq_Value=2
4
0000000
RCC.HCLK3ClockFreq_Value=2
0
0000000
RCC.HCLKFreq_Value=2
0
0000000
RCC.HPRE=RCC_HCLK_DIV2
RCC.HRTIMFreq_Value=2
4
0000000
RCC.I2C123Freq_Value=1
2
0000000
RCC.I2C4Freq_Value=1
2
0000000
RCC.HRTIMFreq_Value=2
0
0000000
RCC.I2C123Freq_Value=1
0
0000000
RCC.I2C4Freq_Value=1
0
0000000
RCC.IPParameters=ADCFreq_Value,AHB12Freq_Value,AHB4Freq_Value,APB1Freq_Value,APB2Freq_Value,APB3Freq_Value,APB4Freq_Value,AXIClockFreq_Value,CECFreq_Value,CKPERFreq_Value,CortexFreq_Value,CpuClockFreq_Value,D1CPREFreq_Value,D1PPRE,D2PPRE1,D2PPRE2,D3PPRE,DFSDMACLkFreq_Value,DFSDMFreq_Value,DIVM1,DIVM2,DIVN1,DIVN2,DIVP1Freq_Value,DIVP2Freq_Value,DIVP3Freq_Value,DIVQ1Freq_Value,DIVQ2Freq_Value,DIVQ3Freq_Value,DIVR1Freq_Value,DIVR2Freq_Value,DIVR3Freq_Value,FDCANFreq_Value,FMCFreq_Value,FamilyName,HCLK3ClockFreq_Value,HCLKFreq_Value,HPRE,HRTIMFreq_Value,I2C123Freq_Value,I2C4Freq_Value,LPTIM1Freq_Value,LPTIM2Freq_Value,LPTIM345Freq_Value,LPUART1Freq_Value,LTDCFreq_Value,MCO1PinFreq_Value,MCO2PinFreq_Value,PLL2FRACN,PLL3FRACN,PLLFRACN,PLLSourceVirtual,QSPIFreq_Value,RNGFreq_Value,RTCFreq_Value,SAI1Freq_Value,SAI23Freq_Value,SAI4AFreq_Value,SAI4BFreq_Value,SDMMCFreq_Value,SPDIFRXFreq_Value,SPI123Freq_Value,SPI45Freq_Value,SPI6Freq_Value,SWPMI1Freq_Value,SYSCLKFreq_VALUE,SYSCLKSource,Tim1OutputFreq_Value,Tim2OutputFreq_Value,TraceFreq_Value,USART16Freq_Value,USART234578Freq_Value,USBFreq_Value,VCO1OutputFreq_Value,VCO2OutputFreq_Value,VCO3OutputFreq_Value,VCOInput1Freq_Value,VCOInput2Freq_Value,VCOInput3Freq_Value
RCC.LPTIM1Freq_Value=1
2
0000000
RCC.LPTIM2Freq_Value=1
2
0000000
RCC.LPTIM345Freq_Value=1
2
0000000
RCC.LPUART1Freq_Value=1
2
0000000
RCC.LPTIM1Freq_Value=1
0
0000000
RCC.LPTIM2Freq_Value=1
0
0000000
RCC.LPTIM345Freq_Value=1
0
0000000
RCC.LPUART1Freq_Value=1
0
0000000
RCC.LTDCFreq_Value=50390625
RCC.MCO1PinFreq_Value=64000000
RCC.MCO2PinFreq_Value=4
8
0000000
RCC.MCO2PinFreq_Value=4
0
0000000
RCC.PLL2FRACN=0
RCC.PLL3FRACN=0
RCC.PLLFRACN=0
RCC.PLLSourceVirtual=RCC_PLLSOURCE_HSE
RCC.QSPIFreq_Value=2
4
0000000
RCC.QSPIFreq_Value=2
0
0000000
RCC.RNGFreq_Value=48000000
RCC.RTCFreq_Value=32000
RCC.SAI1Freq_Value=4
8
0000000
RCC.SAI23Freq_Value=4
8
0000000
RCC.SAI4AFreq_Value=4
8
0000000
RCC.SAI4BFreq_Value=4
8
0000000
RCC.SDMMCFreq_Value=4
8
0000000
RCC.SPDIFRXFreq_Value=4
8
0000000
RCC.SPI123Freq_Value=4
8
0000000
RCC.SPI45Freq_Value=1
2
0000000
RCC.SPI6Freq_Value=1
2
0000000
RCC.SWPMI1Freq_Value=1
2
0000000
RCC.SYSCLKFreq_VALUE=4
8
0000000
RCC.SAI1Freq_Value=4
0
0000000
RCC.SAI23Freq_Value=4
0
0000000
RCC.SAI4AFreq_Value=4
0
0000000
RCC.SAI4BFreq_Value=4
0
0000000
RCC.SDMMCFreq_Value=4
0
0000000
RCC.SPDIFRXFreq_Value=4
0
0000000
RCC.SPI123Freq_Value=4
0
0000000
RCC.SPI45Freq_Value=1
0
0000000
RCC.SPI6Freq_Value=1
0
0000000
RCC.SWPMI1Freq_Value=1
0
0000000
RCC.SYSCLKFreq_VALUE=4
0
0000000
RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK
RCC.Tim1OutputFreq_Value=2
4
0000000
RCC.Tim2OutputFreq_Value=2
4
0000000
RCC.Tim1OutputFreq_Value=2
0
0000000
RCC.Tim2OutputFreq_Value=2
0
0000000
RCC.TraceFreq_Value=64000000
RCC.USART16Freq_Value=1
2
0000000
RCC.USART234578Freq_Value=1
2
0000000
RCC.USBFreq_Value=4
8
0000000
RCC.VCO1OutputFreq_Value=
96
0000000
RCC.USART16Freq_Value=1
0
0000000
RCC.USART234578Freq_Value=1
0
0000000
RCC.USBFreq_Value=4
0
0000000
RCC.VCO1OutputFreq_Value=
80
0000000
RCC.VCO2OutputFreq_Value=960000000
RCC.VCO3OutputFreq_Value=100781250
RCC.VCOInput1Freq_Value=5000000
...
...
bsp/stm32/stm32h750-armfly-h7-tool/board/CubeMX_Config/Src/main.c
浏览文件 @
b0db5ef2
...
...
@@ -181,7 +181,7 @@ void SystemClock_Config(void)
HAL_PWREx_ConfigSupply
(
PWR_LDO_SUPPLY
);
/** Configure the main internal regulator output voltage
*/
__HAL_PWR_VOLTAGESCALING_CONFIG
(
PWR_REGULATOR_VOLTAGE_SCALE
0
);
__HAL_PWR_VOLTAGESCALING_CONFIG
(
PWR_REGULATOR_VOLTAGE_SCALE
1
);
while
(
!
__HAL_PWR_GET_FLAG
(
PWR_FLAG_VOSRDY
))
{}
/** Macro to configure the PLL clock source
...
...
@@ -195,7 +195,7 @@ void SystemClock_Config(void)
RCC_OscInitStruct
.
PLL
.
PLLState
=
RCC_PLL_ON
;
RCC_OscInitStruct
.
PLL
.
PLLSource
=
RCC_PLLSOURCE_HSE
;
RCC_OscInitStruct
.
PLL
.
PLLM
=
5
;
RCC_OscInitStruct
.
PLL
.
PLLN
=
1
92
;
RCC_OscInitStruct
.
PLL
.
PLLN
=
1
60
;
RCC_OscInitStruct
.
PLL
.
PLLP
=
2
;
RCC_OscInitStruct
.
PLL
.
PLLQ
=
2
;
RCC_OscInitStruct
.
PLL
.
PLLR
=
2
;
...
...
@@ -219,7 +219,7 @@ void SystemClock_Config(void)
RCC_ClkInitStruct
.
APB2CLKDivider
=
RCC_APB2_DIV2
;
RCC_ClkInitStruct
.
APB4CLKDivider
=
RCC_APB4_DIV2
;
if
(
HAL_RCC_ClockConfig
(
&
RCC_ClkInitStruct
,
FLASH_LATENCY_
4
)
!=
HAL_OK
)
if
(
HAL_RCC_ClockConfig
(
&
RCC_ClkInitStruct
,
FLASH_LATENCY_
2
)
!=
HAL_OK
)
{
Error_Handler
();
}
...
...
@@ -266,7 +266,7 @@ static void MX_ADC3_Init(void)
/** Common config
*/
hadc3
.
Instance
=
ADC3
;
hadc3
.
Init
.
ClockPrescaler
=
ADC_CLOCK_ASYNC_DIV1
;
hadc3
.
Init
.
ClockPrescaler
=
ADC_CLOCK_ASYNC_DIV1
6
;
hadc3
.
Init
.
Resolution
=
ADC_RESOLUTION_16B
;
hadc3
.
Init
.
ScanConvMode
=
ADC_SCAN_DISABLE
;
hadc3
.
Init
.
EOCSelection
=
ADC_EOC_SINGLE_CONV
;
...
...
bsp/stm32/stm32h750-armfly-h7-tool/board/board.c
浏览文件 @
b0db5ef2
...
...
@@ -25,7 +25,7 @@ void SystemClock_Config(void)
HAL_PWREx_ConfigSupply
(
PWR_LDO_SUPPLY
);
/** Configure the main internal regulator output voltage
*/
__HAL_PWR_VOLTAGESCALING_CONFIG
(
PWR_REGULATOR_VOLTAGE_SCALE
0
);
__HAL_PWR_VOLTAGESCALING_CONFIG
(
PWR_REGULATOR_VOLTAGE_SCALE
1
);
while
(
!
__HAL_PWR_GET_FLAG
(
PWR_FLAG_VOSRDY
))
{}
/** Macro to configure the PLL clock source
...
...
@@ -39,7 +39,7 @@ void SystemClock_Config(void)
RCC_OscInitStruct
.
PLL
.
PLLState
=
RCC_PLL_ON
;
RCC_OscInitStruct
.
PLL
.
PLLSource
=
RCC_PLLSOURCE_HSE
;
RCC_OscInitStruct
.
PLL
.
PLLM
=
5
;
RCC_OscInitStruct
.
PLL
.
PLLN
=
1
92
;
RCC_OscInitStruct
.
PLL
.
PLLN
=
1
60
;
RCC_OscInitStruct
.
PLL
.
PLLP
=
2
;
RCC_OscInitStruct
.
PLL
.
PLLQ
=
2
;
RCC_OscInitStruct
.
PLL
.
PLLR
=
2
;
...
...
@@ -63,7 +63,7 @@ void SystemClock_Config(void)
RCC_ClkInitStruct
.
APB2CLKDivider
=
RCC_APB2_DIV2
;
RCC_ClkInitStruct
.
APB4CLKDivider
=
RCC_APB4_DIV2
;
if
(
HAL_RCC_ClockConfig
(
&
RCC_ClkInitStruct
,
FLASH_LATENCY_
4
)
!=
HAL_OK
)
if
(
HAL_RCC_ClockConfig
(
&
RCC_ClkInitStruct
,
FLASH_LATENCY_
2
)
!=
HAL_OK
)
{
Error_Handler
();
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录