• R/O
  • HTTP
  • SSH
  • HTTPS

stmole32exa: Commit

ライブラリ stmole32 を使用するサンプルプロジェクト


Commit MetaInfo

Revision1f004d25944485fec0446fbcfc5b092061537e4f (tree)
Time2020-11-04 00:32:29
Authormolelord <molelord@user...>
Commitermolelord

Log Message

Update CubeMXデフォルトから、各種応用の雛型として使用できる設定へ、更新

チケット 40895に関連
Pinout&Configurationタブ

System Core-RCC
Low Speed ClockをDisable→Crystal/Ceramic Resonator
System Core-SYS
DebugをDisable→Trace Asynchronous Sw

Clock Configurationタブ

HCLKを16→168 (最高速の180でないのは、将来48MHzが必要になるため)
Do you want to use other sources?にはOKと答える
APB1とAPB2は同じ速度にする(ペリフェラルが属しているのがどちらか考えずに済む)

Project Managerタブ

Project-Toolchain/IDEを EWARM→Makefile
Project-Minimum Heap Size を 0x200→0x0 (代わりにFreeRTOSヒープを使う)
Project-□Use latest available version のチェックを外す(不用意なFW Packageの変更を防ぐ)
FWライブラリはV1.25.1を使用
Code Generator-STM32Cube MCU packages~ を
Copy all→Add necessary library files~(gitで管理するファイル数を減らす)
Code Generator-□Enable Full Assertをチェック(HALの誤った使い方を検出)
Advanced Settings-GPIO を HAL→LL(細かい制御を可能にする)

Change Summary

Incremental Difference

--- a/gme_ws01/nuc-f429-blink/nuc-f429-blink.ioc
+++ b/gme_ws01/nuc-f429-blink/nuc-f429-blink.ioc
@@ -1,5 +1,6 @@
11 #MicroXplorer Configuration settings - do not modify
22 File.Version=6
3+GPIO.groupedBy=Group By Peripherals
34 KeepUserPlacement=false
45 Mcu.Family=STM32F4
56 Mcu.IP0=NVIC
@@ -28,8 +29,9 @@ Mcu.Pin23=PA13
2829 Mcu.Pin24=PA14
2930 Mcu.Pin25=PG11
3031 Mcu.Pin26=PG13
31-Mcu.Pin27=PB7
32-Mcu.Pin28=VP_SYS_VS_Systick
32+Mcu.Pin27=PB3
33+Mcu.Pin28=PB7
34+Mcu.Pin29=VP_SYS_VS_Systick
3335 Mcu.Pin3=PH0/OSC_IN
3436 Mcu.Pin4=PH1/OSC_OUT
3537 Mcu.Pin5=PC1
@@ -37,7 +39,7 @@ Mcu.Pin6=PA1
3739 Mcu.Pin7=PA2
3840 Mcu.Pin8=PA7
3941 Mcu.Pin9=PC4
40-Mcu.PinsNb=29
42+Mcu.PinsNb=30
4143 Mcu.ThirdPartyNb=0
4244 Mcu.UserConstants=
4345 Mcu.UserName=STM32F429ZITx
@@ -73,10 +75,12 @@ PA12.Signal=USB_OTG_FS_DP
7375 PA13.GPIOParameters=GPIO_Label
7476 PA13.GPIO_Label=TMS
7577 PA13.Locked=true
78+PA13.Mode=Trace_Asynchronous_SW
7679 PA13.Signal=SYS_JTMS-SWDIO
7780 PA14.GPIOParameters=GPIO_Label
7881 PA14.GPIO_Label=TCK
7982 PA14.Locked=true
83+PA14.Mode=Trace_Asynchronous_SW
8084 PA14.Signal=SYS_JTCK-SWCLK
8185 PA2.GPIOParameters=GPIO_Label
8286 PA2.GPIO_Label=RMII_MDIO [LAN8742A-CZ-TR_MDIO]
@@ -106,6 +110,8 @@ PB14.GPIOParameters=GPIO_Label
106110 PB14.GPIO_Label=LD3 [Red]
107111 PB14.Locked=true
108112 PB14.Signal=GPIO_Output
113+PB3.Mode=Trace_Asynchronous_SW
114+PB3.Signal=SYS_JTDO-SWO
109115 PB7.GPIOParameters=GPIO_Label
110116 PB7.GPIO_Label=LD2 [Blue]
111117 PB7.Locked=true
@@ -119,8 +125,10 @@ PC13.GPIO_Label=USER_Btn [B1]
119125 PC13.Locked=true
120126 PC13.Signal=GPXTI13
121127 PC14/OSC32_IN.Locked=true
128+PC14/OSC32_IN.Mode=LSE-External-Oscillator
122129 PC14/OSC32_IN.Signal=RCC_OSC32_IN
123130 PC15/OSC32_OUT.Locked=true
131+PC15/OSC32_OUT.Mode=LSE-External-Oscillator
124132 PC15/OSC32_OUT.Signal=RCC_OSC32_OUT
125133 PC4.GPIOParameters=GPIO_Label
126134 PC4.GPIO_Label=RMII_RXD0 [LAN8742A-CZ-TR_RXD0]
@@ -172,11 +180,11 @@ ProjectManager.DeletePrevious=true
172180 ProjectManager.DeviceId=STM32F429ZITx
173181 ProjectManager.FirmwarePackage=STM32Cube FW_F4 V1.25.1
174182 ProjectManager.FreePins=false
175-ProjectManager.HalAssertFull=false
176-ProjectManager.HeapSize=0x200
183+ProjectManager.HalAssertFull=true
184+ProjectManager.HeapSize=0x0
177185 ProjectManager.KeepUserCode=true
178-ProjectManager.LastFirmware=true
179-ProjectManager.LibraryCopy=0
186+ProjectManager.LastFirmware=false
187+ProjectManager.LibraryCopy=2
180188 ProjectManager.MainLocation=Core/Src
181189 ProjectManager.NoMain=false
182190 ProjectManager.PreviousToolchain=
@@ -185,47 +193,50 @@ ProjectManager.ProjectFileName=nuc-f429-blink.ioc
185193 ProjectManager.ProjectName=nuc-f429-blink
186194 ProjectManager.RegisterCallBack=
187195 ProjectManager.StackSize=0x400
188-ProjectManager.TargetToolchain=EWARM V8.32
196+ProjectManager.TargetToolchain=Makefile
189197 ProjectManager.ToolChainLocation=
190198 ProjectManager.UnderRoot=false
191-ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC-false-HAL-false
192-RCC.48MHZClocksFreq_Value=48000000
199+ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-LL-true,2-SystemClock_Config-RCC-false-HAL-false
200+RCC.48MHZClocksFreq_Value=84000000
193201 RCC.ADC12outputFreq_Value=72000000
194202 RCC.ADC34outputFreq_Value=72000000
195-RCC.AHBFreq_Value=16000000
196-RCC.APB1CLKDivider=RCC_HCLK_DIV2
197-RCC.APB1Freq_Value=8000000
198-RCC.APB1TimFreq_Value=16000000
199-RCC.APB2Freq_Value=16000000
200-RCC.APB2TimFreq_Value=16000000
201-RCC.CortexFreq_Value=16000000
202-RCC.EthernetFreq_Value=16000000
203-RCC.FCLKCortexFreq_Value=16000000
203+RCC.AHBFreq_Value=168000000
204+RCC.APB1CLKDivider=RCC_HCLK_DIV4
205+RCC.APB1Freq_Value=42000000
206+RCC.APB1TimFreq_Value=84000000
207+RCC.APB2CLKDivider=RCC_HCLK_DIV4
208+RCC.APB2Freq_Value=42000000
209+RCC.APB2TimFreq_Value=84000000
210+RCC.CortexFreq_Value=168000000
211+RCC.EthernetFreq_Value=168000000
212+RCC.FCLKCortexFreq_Value=168000000
204213 RCC.FamilyName=M
205-RCC.HCLKFreq_Value=16000000
214+RCC.HCLKFreq_Value=168000000
206215 RCC.HSE_VALUE=8000000
207216 RCC.HSI_VALUE=16000000
208217 RCC.I2C1Freq_Value=8000000
209218 RCC.I2C2Freq_Value=8000000
210219 RCC.I2C3Freq_Value=8000000
211-RCC.I2SClocksFreq_Value=96000000
212-RCC.IPParameters=48MHZClocksFreq_Value,ADC12outputFreq_Value,ADC34outputFreq_Value,AHBFreq_Value,APB1CLKDivider,APB1Freq_Value,APB1TimFreq_Value,APB2Freq_Value,APB2TimFreq_Value,CortexFreq_Value,EthernetFreq_Value,FCLKCortexFreq_Value,FamilyName,HCLKFreq_Value,HSE_VALUE,HSI_VALUE,I2C1Freq_Value,I2C2Freq_Value,I2C3Freq_Value,I2SClocksFreq_Value,LCDTFTFreq_Value,LSE_VALUE,LSI_VALUE,MCO1PinFreq_Value,MCO2PinFreq_Value,MCOFreq_Value,PLLCLKFreq_Value,PLLMCOFreq_Value,PLLMUL,PLLQCLKFreq_Value,PRESCALERUSB,RTCFreq_Value,RTCHSEDivFreq_Value,SAI_AClocksFreq_Value,SAI_BClocksFreq_Value,SYSCLKFreq_VALUE,SYSCLKSourceVirtual,TIM15Freq_Value,TIM16Freq_Value,TIM17Freq_Value,TIM1Freq_Value,TIM20Freq_Value,TIM2Freq_Value,TIM3Freq_Value,TIM8Freq_Value,UART4Freq_Value,UART5Freq_Value,USART1Freq_Value,USART2Freq_Value,USART3Freq_Value,USBFreq_Value,VCOI2SOutputFreq_Value,VCOInputFreq_Value,VCOOutput2Freq_Value,VCOOutputFreq_Value,VCOSAIOutputFreq_Value,VCOSAIOutputFreq_ValueQ,VCOSAIOutputFreq_ValueR,VcooutputI2S,VcooutputI2SQ,WatchDogFreq_Value
213-RCC.LCDTFTFreq_Value=12250000
214-RCC.LSE_VALUE=32768
220+RCC.I2SClocksFreq_Value=192000000
221+RCC.IPParameters=48MHZClocksFreq_Value,ADC12outputFreq_Value,ADC34outputFreq_Value,AHBFreq_Value,APB1CLKDivider,APB1Freq_Value,APB1TimFreq_Value,APB2CLKDivider,APB2Freq_Value,APB2TimFreq_Value,CortexFreq_Value,EthernetFreq_Value,FCLKCortexFreq_Value,FamilyName,HCLKFreq_Value,HSE_VALUE,HSI_VALUE,I2C1Freq_Value,I2C2Freq_Value,I2C3Freq_Value,I2SClocksFreq_Value,LCDTFTFreq_Value,LSI_VALUE,MCO1PinFreq_Value,MCO2PinFreq_Value,MCOFreq_Value,PLLCLKFreq_Value,PLLM,PLLMCOFreq_Value,PLLMUL,PLLN,PLLQCLKFreq_Value,PRESCALERUSB,RTCFreq_Value,RTCHSEDivFreq_Value,SAI_AClocksFreq_Value,SAI_BClocksFreq_Value,SYSCLKFreq_VALUE,SYSCLKSource,SYSCLKSourceVirtual,TIM15Freq_Value,TIM16Freq_Value,TIM17Freq_Value,TIM1Freq_Value,TIM20Freq_Value,TIM2Freq_Value,TIM3Freq_Value,TIM8Freq_Value,UART4Freq_Value,UART5Freq_Value,USART1Freq_Value,USART2Freq_Value,USART3Freq_Value,USBFreq_Value,VCOI2SOutputFreq_Value,VCOInputFreq_Value,VCOOutput2Freq_Value,VCOOutputFreq_Value,VCOSAIOutputFreq_Value,VCOSAIOutputFreq_ValueQ,VCOSAIOutputFreq_ValueR,VcooutputI2S,VcooutputI2SQ,WatchDogFreq_Value
222+RCC.LCDTFTFreq_Value=24500000
215223 RCC.LSI_VALUE=32000
216224 RCC.MCO1PinFreq_Value=16000000
217-RCC.MCO2PinFreq_Value=16000000
225+RCC.MCO2PinFreq_Value=168000000
218226 RCC.MCOFreq_Value=72000000
219-RCC.PLLCLKFreq_Value=96000000
227+RCC.PLLCLKFreq_Value=168000000
228+RCC.PLLM=8
220229 RCC.PLLMCOFreq_Value=72000000
221230 RCC.PLLMUL=RCC_PLL_MUL9
222-RCC.PLLQCLKFreq_Value=48000000
231+RCC.PLLN=168
232+RCC.PLLQCLKFreq_Value=84000000
223233 RCC.PRESCALERUSB=RCC_USBCLKSOURCE_PLL_DIV1_5
224234 RCC.RTCFreq_Value=32000
225235 RCC.RTCHSEDivFreq_Value=4000000
226-RCC.SAI_AClocksFreq_Value=12250000
227-RCC.SAI_BClocksFreq_Value=12250000
228-RCC.SYSCLKFreq_VALUE=16000000
236+RCC.SAI_AClocksFreq_Value=24500000
237+RCC.SAI_BClocksFreq_Value=24500000
238+RCC.SYSCLKFreq_VALUE=168000000
239+RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK
229240 RCC.SYSCLKSourceVirtual=RCC_SYSCLKSOURCE_PLLCLK
230241 RCC.TIM15Freq_Value=72000000
231242 RCC.TIM16Freq_Value=72000000
@@ -241,15 +252,15 @@ RCC.USART1Freq_Value=72000000
241252 RCC.USART2Freq_Value=36000000
242253 RCC.USART3Freq_Value=36000000
243254 RCC.USBFreq_Value=48000000
244-RCC.VCOI2SOutputFreq_Value=192000000
245-RCC.VCOInputFreq_Value=1000000
255+RCC.VCOI2SOutputFreq_Value=384000000
256+RCC.VCOInputFreq_Value=2000000
246257 RCC.VCOOutput2Freq_Value=8000000
247-RCC.VCOOutputFreq_Value=192000000
248-RCC.VCOSAIOutputFreq_Value=49000000
249-RCC.VCOSAIOutputFreq_ValueQ=12250000
250-RCC.VCOSAIOutputFreq_ValueR=24500000
251-RCC.VcooutputI2S=96000000
252-RCC.VcooutputI2SQ=96000000
258+RCC.VCOOutputFreq_Value=336000000
259+RCC.VCOSAIOutputFreq_Value=98000000
260+RCC.VCOSAIOutputFreq_ValueQ=24500000
261+RCC.VCOSAIOutputFreq_ValueR=49000000
262+RCC.VcooutputI2S=192000000
263+RCC.VcooutputI2SQ=192000000
253264 RCC.WatchDogFreq_Value=32000
254265 SH.GPXTI13.0=GPIO_EXTI13
255266 SH.GPXTI13.ConfNb=1
Show on old repository browser