updated i2c1 setting

This commit is contained in:
YunHorn Technology 2022-09-26 17:13:06 +08:00
parent ebfbdacd08
commit 3a7a994300
17 changed files with 307 additions and 357 deletions

View File

@ -115,9 +115,9 @@ void MX_TIM2_Init(void);
#define SSD1306_I2C_HANDLE hi2c1 #define SSD1306_I2C_HANDLE hi2c1
#define MEMS_POWER_Pin GPIO_PIN_4 #define MEMS_POWER_Pin GPIO_PIN_4
#define MEMS_POWER_GPIO_Port GPIOB #define MEMS_POWER_GPIO_Port GPIOB
//MOVED TO PRD CONF .H
//#define USE_STM32WLE5 1U //#define USE_STM32WLE5 1U
#define USE_STM32WL55 1U //#define USE_STM32WL55 1U
/* USER CODE END Private defines */ /* USER CODE END Private defines */
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -277,8 +277,8 @@
/* 2KB = 2048 = 0x800 End @ of user Flash area */ /* 2KB = 2048 = 0x800 End @ of user Flash area */
//#define USE_STM32WLE5 1U #define USE_STM32WLE5 1U
#define USE_STM32WL55 1U //#define USE_STM32WL55 1U

View File

@ -115,27 +115,20 @@ void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c)
/**I2C1 GPIO Configuration /**I2C1 GPIO Configuration
PA10 ------> I2C1_SDA //STM32WLE5 PB6 ------> I2C1_SCL //STM32WLE5
PB8 ------> I2C1_SCL PB7 ------> I2C1_SDA
*/ */
#ifdef USE_STM32WLE5 #ifdef USE_STM32WLE5
__HAL_RCC_GPIOB_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE();
GPIO_InitStruct.Pin = GPIO_PIN_8; GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7;
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
GPIO_InitStruct.Pull = GPIO_PULLUP; GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.Alternate = GPIO_AF4_I2C1; GPIO_InitStruct.Alternate = GPIO_AF4_I2C1;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
GPIO_InitStruct.Pin = GPIO_PIN_10;
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.Alternate = GPIO_AF4_I2C1;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
#endif #endif
/* Peripheral clock enable */ /* Peripheral clock enable */
__HAL_RCC_I2C1_CLK_ENABLE(); __HAL_RCC_I2C1_CLK_ENABLE();
@ -232,14 +225,14 @@ void HAL_I2C_MspDeInit(I2C_HandleTypeDef* hi2c)
#endif #endif
/**I2C1 GPIO Configuration //STM32WLE5 /**I2C1 GPIO Configuration //STM32WLE5
PA10 ------> I2C1_SDA PB7 ------> I2C1_SDA
PB8 ------> I2C1_SCL PB6 ------> I2C1_SCL
*/ */
#ifdef USE_STM32WLE5 #ifdef USE_STM32WLE5
HAL_GPIO_DeInit(GPIOA, GPIO_PIN_10); HAL_GPIO_DeInit(GPIOB, GPIO_PIN_6);
HAL_GPIO_DeInit(GPIOB, GPIO_PIN_8); HAL_GPIO_DeInit(GPIOB, GPIO_PIN_7);
#endif #endif

View File

@ -344,7 +344,7 @@ void STS_MOTION_SENSOR_Function_Test_Process(void)
//HAL_I2C_Init(&MOTION_SENSOR_I2C_HANDLE); //HAL_I2C_Init(&MOTION_SENSOR_I2C_HANDLE);
if (HAL_I2C_GetState(&MOTION_SENSOR_I2C_HANDLE) != HAL_I2C_STATE_READY) { if (HAL_I2C_GetState(&MOTION_SENSOR_I2C_HANDLE) != HAL_I2C_STATE_READY) {
APP_LOG(TS_ON, VLEVEL_L, "\r\n .... MOTION SENSOR I2C Not Ready .... \r\n"); APP_LOG(TS_ON, VLEVEL_M, "\r\n .... MOTION SENSOR I2C Not Ready .... \r\n");
} }

View File

@ -22,26 +22,26 @@ Dialog DLL: TCM.DLL V1.48.0.0
<h2>Project:</h2> <h2>Project:</h2>
D:\ONEDRIVE\GIT\STS_IOT\STS_MM\MDK-ARM\STS_MM.uvprojx D:\ONEDRIVE\GIT\STS_IOT\STS_MM\MDK-ARM\STS_MM.uvprojx
Project File Date: 09/20/2022 Project File Date: 09/26/2022
<h2>Output:</h2> <h2>Output:</h2>
*** Using Compiler 'V6.15', folder: 'D:\Keil_v5\ARM\ARMCLANG\Bin' *** Using Compiler 'V6.15', folder: 'D:\Keil_v5\ARM\ARMCLANG\Bin'
Rebuild target 'STS_MM_WLE5' Rebuild target 'STS_MM_WLE5'
assembling startup_stm32wl55xx_cm4.s... assembling startup_stm32wl55xx_cm4.s...
compiling main.c... compiling main.c...
compiling dma.c...
compiling gpio.c...
compiling sys_app.c...
compiling sys_sensors.c...
compiling adc.c...
compiling stm32_lpm_if.c...
compiling subghz.c...
compiling sys_debug.c... compiling sys_debug.c...
compiling usart.c... compiling dma.c...
compiling stm32wlxx_it.c... compiling stm32_lpm_if.c...
compiling rtc.c... compiling adc.c...
compiling usart_if.c... compiling sys_sensors.c...
compiling adc_if.c... compiling adc_if.c...
compiling rtc.c...
compiling gpio.c...
compiling usart.c...
compiling subghz.c...
compiling sys_app.c...
compiling stm32wlxx_it.c...
compiling usart_if.c...
compiling timer_if.c... compiling timer_if.c...
compiling stm32wlxx_hal_msp.c... compiling stm32wlxx_hal_msp.c...
compiling ssd1306_fonts.c... compiling ssd1306_fonts.c...
@ -49,89 +49,89 @@ compiling app_lorawan.c...
compiling flash_if.c... compiling flash_if.c...
compiling CayenneLpp.c... compiling CayenneLpp.c...
compiling lora_info.c... compiling lora_info.c...
compiling ssd1306.c...
compiling radio_board_if.c... compiling radio_board_if.c...
compiling ssd1306.c...
compiling ssd1306_tests.c... compiling ssd1306_tests.c...
compiling stm32wlxx_ll_adc.c... compiling stm32wlxx_ll_adc.c...
compiling stm32wlxx_nucleo.c...
compiling stm32wlxx_nucleo_radio.c... compiling stm32wlxx_nucleo_radio.c...
compiling stm32wlxx_nucleo.c...
compiling lora_app.c... compiling lora_app.c...
compiling stm32wlxx_hal_adc_ex.c... compiling stm32wlxx_hal_adc_ex.c...
compiling yunhorn_sts_motion_sensor.c... compiling yunhorn_sts_motion_sensor.c...
compiling yunhorn_sts_motion_sensor_adxl345.c... compiling yunhorn_sts_motion_sensor_adxl345.c...
compiling stm32wlxx_hal_flash.c... compiling stm32wlxx_hal_flash.c...
compiling stm32wlxx_hal_gpio.c...
compiling stm32wlxx_hal_adc.c... compiling stm32wlxx_hal_adc.c...
compiling stm32wlxx_hal_dma_ex.c...
compiling stm32wlxx_hal_rcc_ex.c...
compiling stm32wlxx_hal_flash_ex.c... compiling stm32wlxx_hal_flash_ex.c...
compiling stm32wlxx_hal_rcc_ex.c...
compiling stm32wlxx_hal_dma_ex.c...
compiling stm32wlxx_hal_rcc.c... compiling stm32wlxx_hal_rcc.c...
compiling stm32wlxx_hal_gpio.c...
compiling stm32wlxx_hal_pwr.c... compiling stm32wlxx_hal_pwr.c...
compiling stm32wlxx_hal_dma.c... compiling stm32wlxx_hal_dma.c...
compiling stm32wlxx_hal_pwr_ex.c...
compiling stm32wlxx_hal_cortex.c... compiling stm32wlxx_hal_cortex.c...
compiling stm32wlxx_hal.c... compiling stm32wlxx_hal_pwr_ex.c...
compiling stm32wlxx_hal_exti.c... compiling stm32wlxx_hal_exti.c...
compiling stm32wlxx_hal.c...
compiling stm32wlxx_hal_rtc.c... compiling stm32wlxx_hal_rtc.c...
compiling stm32wlxx_hal_subghz.c... compiling stm32wlxx_hal_subghz.c...
compiling stm32wlxx_hal_rtc_ex.c... compiling stm32wlxx_hal_rtc_ex.c...
compiling cmac.c... compiling cmac.c...
compiling stm32wlxx_hal_i2c_ex.c...
compiling system_stm32wlxx.c... compiling system_stm32wlxx.c...
compiling lorawan_aes.c...
compiling stm32wlxx_hal_uart_ex.c... compiling stm32wlxx_hal_uart_ex.c...
compiling stm32wlxx_hal_i2c_ex.c...
compiling lorawan_aes.c...
compiling Region.c... compiling Region.c...
compiling soft-se.c...
compiling stm32wlxx_hal_tim_ex.c... compiling stm32wlxx_hal_tim_ex.c...
compiling LmhpCompliance.c... compiling soft-se.c...
compiling RegionAU915.c... compiling RegionAU915.c...
compiling RegionBaseUS.c... compiling RegionBaseUS.c...
compiling RegionAS923.c...
compiling RegionCN470.c... compiling RegionCN470.c...
compiling LmhpCompliance.c...
compiling RegionAS923.c...
compiling RegionCN470A20.c... compiling RegionCN470A20.c...
compiling RegionCN470A26.c... compiling RegionCN470A26.c...
compiling RegionCN470B26.c...
compiling RegionCN470B20.c... compiling RegionCN470B20.c...
compiling RegionCN470B26.c...
compiling stm32wlxx_hal_uart.c... compiling stm32wlxx_hal_uart.c...
compiling RegionCN779.c... compiling RegionCN779.c...
compiling RegionEU433.c... compiling RegionEU433.c...
compiling RegionEU868.c...
compiling stm32wlxx_hal_tim.c... compiling stm32wlxx_hal_tim.c...
compiling RegionEU868.c...
compiling RegionIN865.c... compiling RegionIN865.c...
compiling RegionKR920.c... compiling RegionKR920.c...
compiling RegionCommon.c... compiling RegionCommon.c...
compiling stm32wlxx_hal_i2c.c...
compiling RegionRU864.c... compiling RegionRU864.c...
compiling RegionUS915.c... compiling RegionUS915.c...
compiling LoRaMacAdr.c... compiling LoRaMacAdr.c...
compiling stm32wlxx_hal_i2c.c...
compiling LoRaMacClassB.c... compiling LoRaMacClassB.c...
compiling LoRaMacConfirmQueue.c...
compiling LoRaMacCommands.c...
compiling LoRaMacParser.c... compiling LoRaMacParser.c...
compiling LoRaMacSerializer.c... compiling LoRaMacSerializer.c...
compiling LoRaMacCommands.c...
compiling LoRaMacConfirmQueue.c...
compiling NvmDataMgmt.c...
compiling LoRaMacCrypto.c... compiling LoRaMacCrypto.c...
compiling NvmDataMgmt.c...
compiling utilities.c... compiling utilities.c...
compiling stm32_mem.c... compiling stm32_mem.c...
compiling stm32_systime.c... compiling stm32_systime.c...
compiling stm32_tiny_sscanf.c...
compiling stm32_adv_trace.c... compiling stm32_adv_trace.c...
compiling stm32_tiny_vsnprintf.c...
compiling radio_fw.c...
compiling LmHandler.c... compiling LmHandler.c...
compiling stm32_tiny_sscanf.c...
compiling radio_fw.c...
compiling stm32_tiny_vsnprintf.c...
compiling stm32_seq.c... compiling stm32_seq.c...
compiling stm32_lpm.c...
compiling stm32_timer.c... compiling stm32_timer.c...
compiling stm32_lpm.c...
compiling BayesFunctions.c... compiling BayesFunctions.c...
compiling radio_driver.c... compiling radio_driver.c...
compiling radio.c...
compiling LoRaMac.c... compiling LoRaMac.c...
compiling radio.c...
compiling ControllerFunctions.c... compiling ControllerFunctions.c...
compiling ComplexMathFunctions.c... compiling ComplexMathFunctions.c...
compiling FastMathFunctions.c...
compiling BasicMathFunctions.c... compiling BasicMathFunctions.c...
compiling SVMFunctions.c...
compiling DistanceFunctions.c... compiling DistanceFunctions.c...
compiling FastMathFunctions.c...
compiling SVMFunctions.c...
compiling StatisticsFunctions.c... compiling StatisticsFunctions.c...
compiling SupportFunctions.c... compiling SupportFunctions.c...
compiling MatrixFunctions.c... compiling MatrixFunctions.c...
@ -139,7 +139,7 @@ compiling CommonTables.c...
compiling TransformFunctions.c... compiling TransformFunctions.c...
compiling FilteringFunctions.c... compiling FilteringFunctions.c...
linking... linking...
Program Size: Code=72172 RO-data=124276 RW-data=292 ZI-data=60740 Program Size: Code=72152 RO-data=124276 RW-data=292 ZI-data=60740
FromELF: creating hex file... FromELF: creating hex file...
"LoRaWAN_End_Node\STS_M7_919_R1.axf" - 0 Error(s), 0 Warning(s). "LoRaWAN_End_Node\STS_M7_919_R1.axf" - 0 Error(s), 0 Warning(s).
@ -169,21 +169,21 @@ Package Vendor: Keil
* Component: ARM::CMSIS:CORE:5.4.0 * Component: ARM::CMSIS:CORE:5.4.0
* Component: ARM::CMSIS:DSP:Source:1.8.0 * Component: ARM::CMSIS:DSP:Source:1.8.0
Source file: CMSIS\DSP\Source\BasicMathFunctions\BasicMathFunctions.c
Include file: CMSIS\DSP\Include\arm_math.h
Source file: CMSIS\DSP\Source\TransformFunctions\TransformFunctions.c
Source file: CMSIS\DSP\Source\FilteringFunctions\FilteringFunctions.c
Source file: CMSIS\DSP\Source\CommonTables\CommonTables.c Source file: CMSIS\DSP\Source\CommonTables\CommonTables.c
Source file: CMSIS\DSP\Source\SVMFunctions\SVMFunctions.c Include file: CMSIS\DSP\Include\arm_math.h
Source file: CMSIS\DSP\Source\BayesFunctions\BayesFunctions.c
Source file: CMSIS\DSP\Source\StatisticsFunctions\StatisticsFunctions.c
Source file: CMSIS\DSP\Source\ControllerFunctions\ControllerFunctions.c
Source file: CMSIS\DSP\Source\SupportFunctions\SupportFunctions.c Source file: CMSIS\DSP\Source\SupportFunctions\SupportFunctions.c
Source file: CMSIS\DSP\Source\DistanceFunctions\DistanceFunctions.c Source file: CMSIS\DSP\Source\BasicMathFunctions\BasicMathFunctions.c
Source file: CMSIS\DSP\Source\ComplexMathFunctions\ComplexMathFunctions.c
Source file: CMSIS\DSP\Source\MatrixFunctions\MatrixFunctions.c
Source file: CMSIS\DSP\Source\FastMathFunctions\FastMathFunctions.c Source file: CMSIS\DSP\Source\FastMathFunctions\FastMathFunctions.c
Build Time Elapsed: 00:00:06 Source file: CMSIS\DSP\Source\ComplexMathFunctions\ComplexMathFunctions.c
Source file: CMSIS\DSP\Source\StatisticsFunctions\StatisticsFunctions.c
Source file: CMSIS\DSP\Source\SVMFunctions\SVMFunctions.c
Source file: CMSIS\DSP\Source\TransformFunctions\TransformFunctions.c
Source file: CMSIS\DSP\Source\ControllerFunctions\ControllerFunctions.c
Source file: CMSIS\DSP\Source\DistanceFunctions\DistanceFunctions.c
Source file: CMSIS\DSP\Source\FilteringFunctions\FilteringFunctions.c
Source file: CMSIS\DSP\Source\MatrixFunctions\MatrixFunctions.c
Source file: CMSIS\DSP\Source\BayesFunctions\BayesFunctions.c
Build Time Elapsed: 00:00:07
</pre> </pre>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
<title>Static Call Graph - [LoRaWAN_End_Node\STS_M7_919_R1.axf]</title></head> <title>Static Call Graph - [LoRaWAN_End_Node\STS_M7_919_R1.axf]</title></head>
<body><HR> <body><HR>
<H1>Static Call Graph for image LoRaWAN_End_Node\STS_M7_919_R1.axf</H1><HR> <H1>Static Call Graph for image LoRaWAN_End_Node\STS_M7_919_R1.axf</H1><HR>
<BR><P>#&#060CALLGRAPH&#062# ARM Linker, 6150002: Last Updated: Fri Sep 23 16:39:42 2022 <BR><P>#&#060CALLGRAPH&#062# ARM Linker, 6150002: Last Updated: Mon Sep 26 17:11:44 2022
<BR><P> <BR><P>
<H3>Maximum Stack Usage = 1000 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3> <H3>Maximum Stack Usage = 1000 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3>
Call chain for Maximum Stack Depth:</H3> Call chain for Maximum Stack Depth:</H3>
@ -1363,7 +1363,7 @@ Global Symbols
<BR>[Called By]<UL><LI><a href="#[22b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_UART_MspDeInit <BR>[Called By]<UL><LI><a href="#[22b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_UART_MspDeInit
</UL> </UL>
<P><STRONG><a name="[170]"></a>HAL_GPIO_EXTI_Callback</STRONG> (Thumb, 184 bytes, Stack size 8 bytes, lora_app.o(.text.HAL_GPIO_EXTI_Callback)) <P><STRONG><a name="[170]"></a>HAL_GPIO_EXTI_Callback</STRONG> (Thumb, 176 bytes, Stack size 8 bytes, lora_app.o(.text.HAL_GPIO_EXTI_Callback))
<BR><BR>[Stack]<UL><LI>Max Depth = 176<LI>Call Chain = HAL_GPIO_EXTI_Callback &rArr; UTIL_ADV_TRACE_COND_FSend &rArr; tiny_vsnprintf_like <BR><BR>[Stack]<UL><LI>Max Depth = 176<LI>Call Chain = HAL_GPIO_EXTI_Callback &rArr; UTIL_ADV_TRACE_COND_FSend &rArr; tiny_vsnprintf_like
</UL> </UL>
<BR>[Calls]<UL><LI><a href="#[91]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_Delay <BR>[Calls]<UL><LI><a href="#[91]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_Delay
@ -1591,7 +1591,7 @@ Global Symbols
<LI><a href="#[4b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;ADXL345_SetRegisterValue <LI><a href="#[4b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;ADXL345_SetRegisterValue
</UL> </UL>
<P><STRONG><a name="[17a]"></a>HAL_I2C_MspInit</STRONG> (Thumb, 204 bytes, Stack size 96 bytes, stm32wlxx_hal_msp.o(.text.HAL_I2C_MspInit)) <P><STRONG><a name="[17a]"></a>HAL_I2C_MspInit</STRONG> (Thumb, 208 bytes, Stack size 96 bytes, stm32wlxx_hal_msp.o(.text.HAL_I2C_MspInit))
<BR><BR>[Stack]<UL><LI>Max Depth = 136<LI>Call Chain = HAL_I2C_MspInit &rArr; HAL_GPIO_Init <BR><BR>[Stack]<UL><LI>Max Depth = 136<LI>Call Chain = HAL_I2C_MspInit &rArr; HAL_GPIO_Init
</UL> </UL>
<BR>[Calls]<UL><LI><a href="#[4c]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_GPIO_Init <BR>[Calls]<UL><LI><a href="#[4c]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_GPIO_Init
@ -3198,7 +3198,7 @@ Global Symbols
<BR>[Called By]<UL><LI><a href="#[ca]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;vcom_Init <BR>[Called By]<UL><LI><a href="#[ca]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;vcom_Init
</UL> </UL>
<P><STRONG><a name="[2cc]"></a>MX_GPIO_Init</STRONG> (Thumb, 212 bytes, Stack size 48 bytes, gpio.o(.text.MX_GPIO_Init)) <P><STRONG><a name="[2cc]"></a>MX_GPIO_Init</STRONG> (Thumb, 196 bytes, Stack size 48 bytes, gpio.o(.text.MX_GPIO_Init))
<BR><BR>[Stack]<UL><LI>Max Depth = 48<LI>Call Chain = MX_GPIO_Init <BR><BR>[Stack]<UL><LI>Max Depth = 48<LI>Call Chain = MX_GPIO_Init
</UL> </UL>
<BR>[Calls]<UL><LI><a href="#[4d]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_GPIO_WritePin <BR>[Calls]<UL><LI><a href="#[4d]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_GPIO_WritePin
@ -3990,7 +3990,7 @@ Global Symbols
<LI><a href="#[76]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;STS_MOTION_SENSOR_WakeUp_Process <LI><a href="#[76]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;STS_MOTION_SENSOR_WakeUp_Process
</UL> </UL>
<P><STRONG><a name="[77]"></a>STS_MOTION_SENSOR_Function_Test_Process</STRONG> (Thumb, 236 bytes, Stack size 32 bytes, yunhorn_sts_motion_sensor.o(.text.STS_MOTION_SENSOR_Function_Test_Process)) <P><STRONG><a name="[77]"></a>STS_MOTION_SENSOR_Function_Test_Process</STRONG> (Thumb, 232 bytes, Stack size 32 bytes, yunhorn_sts_motion_sensor.o(.text.STS_MOTION_SENSOR_Function_Test_Process))
<BR><BR>[Stack]<UL><LI>Max Depth = 668<LI>Call Chain = STS_MOTION_SENSOR_Function_Test_Process &rArr; STS_MOTION_SENSOR_GetValue &rArr; Process_FFT_and_Amplitude &rArr; Do_FFT &rArr; arm_rfft_fast_f32 &rArr; arm_cfft_f32 &rArr; arm_cfft_radix8by2_f32 &rArr; arm_radix8_butterfly_f32 &rArr; __aeabi_fadd &rArr; _float_epilogue <BR><BR>[Stack]<UL><LI>Max Depth = 668<LI>Call Chain = STS_MOTION_SENSOR_Function_Test_Process &rArr; STS_MOTION_SENSOR_GetValue &rArr; Process_FFT_and_Amplitude &rArr; Do_FFT &rArr; arm_rfft_fast_f32 &rArr; arm_cfft_f32 &rArr; arm_cfft_radix8by2_f32 &rArr; arm_radix8_butterfly_f32 &rArr; __aeabi_fadd &rArr; _float_epilogue
</UL> </UL>
<BR>[Calls]<UL><LI><a href="#[3ac]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;SystemClock_Config <BR>[Calls]<UL><LI><a href="#[3ac]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;SystemClock_Config
@ -4016,17 +4016,17 @@ Global Symbols
</UL> </UL>
<BR>[Address Reference Count : 1]<UL><LI> lora_app.o(.text.LoRaWAN_Init) <BR>[Address Reference Count : 1]<UL><LI> lora_app.o(.text.LoRaWAN_Init)
</UL> </UL>
<P><STRONG><a name="[3b0]"></a>STS_MOTION_SENSOR_GetValue</STRONG> (Thumb, 216 bytes, Stack size 24 bytes, yunhorn_sts_motion_sensor.o(.text.STS_MOTION_SENSOR_GetValue)) <P><STRONG><a name="[3b0]"></a>STS_MOTION_SENSOR_GetValue</STRONG> (Thumb, 220 bytes, Stack size 24 bytes, yunhorn_sts_motion_sensor.o(.text.STS_MOTION_SENSOR_GetValue))
<BR><BR>[Stack]<UL><LI>Max Depth = 636<LI>Call Chain = STS_MOTION_SENSOR_GetValue &rArr; Process_FFT_and_Amplitude &rArr; Do_FFT &rArr; arm_rfft_fast_f32 &rArr; arm_cfft_f32 &rArr; arm_cfft_radix8by2_f32 &rArr; arm_radix8_butterfly_f32 &rArr; __aeabi_fadd &rArr; _float_epilogue <BR><BR>[Stack]<UL><LI>Max Depth = 636<LI>Call Chain = STS_MOTION_SENSOR_GetValue &rArr; Process_FFT_and_Amplitude &rArr; Do_FFT &rArr; arm_rfft_fast_f32 &rArr; arm_cfft_f32 &rArr; arm_cfft_radix8by2_f32 &rArr; arm_radix8_butterfly_f32 &rArr; __aeabi_fadd &rArr; _float_epilogue
</UL> </UL>
<BR>[Calls]<UL><LI><a href="#[139]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_f2iz <BR>[Calls]<UL><LI><a href="#[139]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_f2iz
<LI><a href="#[ee]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_fadd <LI><a href="#[ee]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_fadd
<LI><a href="#[6b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;UTIL_ADV_TRACE_COND_FSend
<LI><a href="#[fc]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_ui2f <LI><a href="#[fc]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_ui2f
<LI><a href="#[3b1]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;TestingCaseGenerate <LI><a href="#[3b1]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;TestingCaseGenerate
<LI><a href="#[340]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;Process_FFT_and_Amplitude <LI><a href="#[340]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;Process_FFT_and_Amplitude
<LI><a href="#[3ad]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_I2C_GetState <LI><a href="#[3ad]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_I2C_GetState
<LI><a href="#[118]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;ADXL345_Init_Prepare_Measure <LI><a href="#[118]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;ADXL345_Init_Prepare_Measure
<LI><a href="#[2db]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;OUTLINED_FUNCTION_0
</UL> </UL>
<BR>[Called By]<UL><LI><a href="#[77]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;STS_MOTION_SENSOR_Function_Test_Process <BR>[Called By]<UL><LI><a href="#[77]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;STS_MOTION_SENSOR_Function_Test_Process
<LI><a href="#[76]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;STS_MOTION_SENSOR_WakeUp_Process <LI><a href="#[76]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;STS_MOTION_SENSOR_WakeUp_Process
@ -5073,6 +5073,7 @@ Global Symbols
<LI><a href="#[13f]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;OUTLINED_FUNCTION_4 <LI><a href="#[13f]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;OUTLINED_FUNCTION_4
<LI><a href="#[115]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;OUTLINED_FUNCTION_10 <LI><a href="#[115]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;OUTLINED_FUNCTION_10
<LI><a href="#[3b1]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;TestingCaseGenerate <LI><a href="#[3b1]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;TestingCaseGenerate
<LI><a href="#[3b0]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;STS_MOTION_SENSOR_GetValue
<LI><a href="#[2db]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;OUTLINED_FUNCTION_0 <LI><a href="#[2db]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;OUTLINED_FUNCTION_0
<LI><a href="#[24e]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;LmHandlerConfigure <LI><a href="#[24e]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;LmHandlerConfigure
<LI><a href="#[170]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_GPIO_EXTI_Callback <LI><a href="#[170]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;HAL_GPIO_EXTI_Callback
@ -6136,13 +6137,12 @@ Local Symbols
<BR><BR>[Called By]<UL><LI><a href="#[de]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;OnSystemReset <BR><BR>[Called By]<UL><LI><a href="#[de]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;OnSystemReset
</UL> </UL>
<P><STRONG><a name="[2db]"></a>OUTLINED_FUNCTION_0</STRONG> (Thumb, 8 bytes, Stack size 0 bytes, yunhorn_sts_motion_sensor.o(.text.OUTLINED_FUNCTION_0)) <P><STRONG><a name="[2db]"></a>OUTLINED_FUNCTION_0</STRONG> (Thumb, 10 bytes, Stack size 0 bytes, yunhorn_sts_motion_sensor.o(.text.OUTLINED_FUNCTION_0))
<BR><BR>[Stack]<UL><LI>Max Depth = 168<LI>Call Chain = OUTLINED_FUNCTION_0 &rArr; UTIL_ADV_TRACE_COND_FSend &rArr; tiny_vsnprintf_like <BR><BR>[Stack]<UL><LI>Max Depth = 168<LI>Call Chain = OUTLINED_FUNCTION_0 &rArr; UTIL_ADV_TRACE_COND_FSend &rArr; tiny_vsnprintf_like
</UL> </UL>
<BR>[Calls]<UL><LI><a href="#[6b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;UTIL_ADV_TRACE_COND_FSend <BR>[Calls]<UL><LI><a href="#[6b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;UTIL_ADV_TRACE_COND_FSend
</UL> </UL>
<BR>[Called By]<UL><LI><a href="#[77]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;STS_MOTION_SENSOR_Function_Test_Process <BR>[Called By]<UL><LI><a href="#[77]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;STS_MOTION_SENSOR_Function_Test_Process
<LI><a href="#[3b0]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;STS_MOTION_SENSOR_GetValue
<LI><a href="#[3aa]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;STS_MOTION_SENSOR_After_Wake_Up <LI><a href="#[3aa]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;STS_MOTION_SENSOR_After_Wake_Up
</UL> </UL>

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -26,7 +26,7 @@
<ToolsetNumber>0x4</ToolsetNumber> <ToolsetNumber>0x4</ToolsetNumber>
<ToolsetName>ARM-ADS</ToolsetName> <ToolsetName>ARM-ADS</ToolsetName>
<TargetOption> <TargetOption>
<CLKADS>12000000</CLKADS> <CLKADS>48000000</CLKADS>
<OPTTT> <OPTTT>
<gFlags>1</gFlags> <gFlags>1</gFlags>
<BeepAtEnd>1</BeepAtEnd> <BeepAtEnd>1</BeepAtEnd>
@ -119,13 +119,13 @@
<TargetDriverDllRegistry> <TargetDriverDllRegistry>
<SetRegEntry> <SetRegEntry>
<Number>0</Number> <Number>0</Number>
<Key>ST-LINKIII-KEIL_SWO</Key> <Key>UL2CM3</Key>
<Name>-U0026000E4741500320383733 -O206 -SF4000 -C0 -A0 -I2 -HNlocalhost -HP7184 -P1 -N00("ARM CoreSight SW-DP") -D00(6BA02477) -L00(0) -TO131090 -TC10000000 -TT10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC1000 -FN1 -FF0STM32WLxx_CM4.FLM -FS08000000 -FL040000 -FP0($$Device:STM32WL55JCIx$CMSIS\Flash\STM32WLxx_CM4.FLM)</Name> <Name>UL2CM3(-S0 -C0 -P0 ) -FN1 -FC1000 -FD20000000 -FF0STM32WLxx_CM4 -FL040000 -FS08000000 -FP0($$Device:STM32WLE5CCUx$CMSIS\Flash\STM32WLxx_CM4.FLM)</Name>
</SetRegEntry> </SetRegEntry>
<SetRegEntry> <SetRegEntry>
<Number>0</Number> <Number>0</Number>
<Key>UL2CM3</Key> <Key>ST-LINKIII-KEIL_SWO</Key>
<Name>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32WLxx_CM4 -FS08000000 -FL040000 -FP0($$Device:STM32WL55JCIx$CMSIS\Flash\STM32WLxx_CM4.FLM))</Name> <Name>-U48FF76067567515339490381 -O206 -SF4000 -C0 -A0 -I2 -HNlocalhost -HP7184 -P1 -N00("ARM CoreSight SW-DP") -D00(6BA02477) -L00(0) -TO131090 -TC10000000 -TT10000000 -TP21 -TDS8004 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC1000 -FN1 -FF0STM32WLxx_CM4.FLM -FS08000000 -FL040000 -FP0($$Device:STM32WLE5CCUx$CMSIS\Flash\STM32WLxx_CM4.FLM)</Name>
</SetRegEntry> </SetRegEntry>
</TargetDriverDllRegistry> </TargetDriverDllRegistry>
<Breakpoint> <Breakpoint>
@ -273,7 +273,7 @@
<Group> <Group>
<GroupName>Application/MDK-ARM</GroupName> <GroupName>Application/MDK-ARM</GroupName>
<tvExp>1</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel> <cbSel>0</cbSel>
<RteFlg>0</RteFlg> <RteFlg>0</RteFlg>
@ -989,7 +989,7 @@
<Group> <Group>
<GroupName>Drivers/CMSIS</GroupName> <GroupName>Drivers/CMSIS</GroupName>
<tvExp>1</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel> <cbSel>0</cbSel>
<RteFlg>0</RteFlg> <RteFlg>0</RteFlg>
@ -1401,7 +1401,7 @@
<Group> <Group>
<GroupName>Middlewares/SubGHz_Phy</GroupName> <GroupName>Middlewares/SubGHz_Phy</GroupName>
<tvExp>1</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel> <cbSel>0</cbSel>
<RteFlg>0</RteFlg> <RteFlg>0</RteFlg>

View File

@ -14,16 +14,16 @@
<uAC6>1</uAC6> <uAC6>1</uAC6>
<TargetOption> <TargetOption>
<TargetCommonOption> <TargetCommonOption>
<Device>STM32WL55JCIx:CM4</Device> <Device>STM32WLE5CCUx</Device>
<Vendor>STMicroelectronics</Vendor> <Vendor>STMicroelectronics</Vendor>
<PackID>Keil.STM32WLxx_DFP.1.1.0</PackID> <PackID>Keil.STM32WLxx_DFP.1.1.0</PackID>
<PackURL>http://www.keil.com/pack/</PackURL> <PackURL>http://www.keil.com/pack/</PackURL>
<Cpu>IRAM(0x20000000,0x00008000) IRAM2(0x20008000,0x00008000) IROM(0x08000000,0x00040000) CPUTYPE("Cortex-M4") CLOCK(12000000) ELITTLE</Cpu> <Cpu>IRAM(0x20000000,0x00008000) IRAM2(0x20008000,0x00008000) IROM(0x08000000,0x00040000) CPUTYPE("Cortex-M4") CLOCK(12000000) ELITTLE</Cpu>
<FlashUtilSpec></FlashUtilSpec> <FlashUtilSpec></FlashUtilSpec>
<StartupFile></StartupFile> <StartupFile></StartupFile>
<FlashDriverDll>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32WLxx_CM4 -FS08000000 -FL040000 -FP0($$Device:STM32WL55JCIx$CMSIS\Flash\STM32WLxx_CM4.FLM))</FlashDriverDll> <FlashDriverDll>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32WLxx_CM4 -FS08000000 -FL040000 -FP0($$Device:STM32WLE5CCUx$CMSIS\Flash\STM32WLxx_CM4.FLM))</FlashDriverDll>
<DeviceId>0</DeviceId> <DeviceId>0</DeviceId>
<RegisterFile>$$Device:STM32WL55JCIx$Drivers\CMSIS\Device\ST\STM32WLxx\Include\stm32wlxx.h</RegisterFile> <RegisterFile>$$Device:STM32WLE5CCUx$Drivers\CMSIS\Device\ST\STM32WLxx\Include\stm32wlxx.h</RegisterFile>
<MemoryEnv></MemoryEnv> <MemoryEnv></MemoryEnv>
<Cmp></Cmp> <Cmp></Cmp>
<Asm></Asm> <Asm></Asm>
@ -33,7 +33,7 @@
<SLE66CMisc></SLE66CMisc> <SLE66CMisc></SLE66CMisc>
<SLE66AMisc></SLE66AMisc> <SLE66AMisc></SLE66AMisc>
<SLE66LinkerMisc></SLE66LinkerMisc> <SLE66LinkerMisc></SLE66LinkerMisc>
<SFDFile>$$Device:STM32WL55JCIx$CMSIS\SVD\STM32WL5x_CM4.svd</SFDFile> <SFDFile>$$Device:STM32WLE5CCUx$CMSIS\SVD\STM32WLE5_CM4.svd</SFDFile>
<bCustSvd>0</bCustSvd> <bCustSvd>0</bCustSvd>
<UseEnv>0</UseEnv> <UseEnv>0</UseEnv>
<BinPath></BinPath> <BinPath></BinPath>
@ -138,7 +138,7 @@
</Flash1> </Flash1>
<bUseTDR>1</bUseTDR> <bUseTDR>1</bUseTDR>
<Flash2>BIN\UL2CM3.DLL</Flash2> <Flash2>BIN\UL2CM3.DLL</Flash2>
<Flash3>"" ()</Flash3> <Flash3></Flash3>
<Flash4></Flash4> <Flash4></Flash4>
<pFcarmOut></pFcarmOut> <pFcarmOut></pFcarmOut>
<pFcarmGrp></pFcarmGrp> <pFcarmGrp></pFcarmGrp>

View File

@ -614,9 +614,8 @@ ks\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\Users\lenovo\AppData\Local\Arm\Packs
M\CMSIS\5.7.0\CMSIS\DSP\PrivateInclude -ID:\Users\lenovo\AppData\Local\Arm\Pack M\CMSIS\5.7.0\CMSIS\DSP\PrivateInclude -ID:\Users\lenovo\AppData\Local\Arm\Pack
s\Keil\STM32WLxx_DFP\1.1.0\Drivers\CMSIS\Device\ST\STM32WLxx\Include --predefin s\Keil\STM32WLxx_DFP\1.1.0\Drivers\CMSIS\Device\ST\STM32WLxx\Include --predefin
e="__MICROLIB SETA 1" --predefine="__UVISION_VERSION SETA 533" --predefine="_RT e="__MICROLIB SETA 1" --predefine="__UVISION_VERSION SETA 533" --predefine="_RT
E_ SETA 1" --predefine="CORE_CM4 SETA 1" --predefine="STM32WL55xx SETA 1" --pre E_ SETA 1" --predefine="STM32WLE5xx SETA 1" --predefine="_RTE_ SETA 1" --list=s
define="_RTE_ SETA 1" --list=startup_stm32wl55xx_cm4.lst startup_stm32wl55xx_cm tartup_stm32wl55xx_cm4.lst startup_stm32wl55xx_cm4.s
4.s
@ -1512,4 +1511,4 @@ Symbol: __main
At line 155 in file startup_stm32wl55xx_cm4.s At line 155 in file startup_stm32wl55xx_cm4.s
Comment: __main used once Comment: __main used once
2 symbols 2 symbols
426 symbols in table 425 symbols in table

View File

@ -17,6 +17,36 @@
****************************************************************************** ******************************************************************************
*/ */
============ STM32WL E5 E5 E5 =======================================
BUT1_PIN PA.0
BUT2_PIN PA.1
BUT3_PIN N/A
#define BUT1_Pin GPIO_PIN_0
#define BUT1_GPIO_Port GPIOA
#define BUT1_EXTI_IRQn EXTI0_IRQn
#define BUT2_Pin GPIO_PIN_1 //MEMS-INT1-ACTIVITY-NO-ACTIVITY INT
#define BUT2_GPIO_Port GPIOA
#define BUT2_EXTI_IRQn EXTI1_IRQn
----- I2C1 --------------------------------------
SCL PB.06
SDA PB.07
----- I2C2 --------------------------------------
SCL PA.12
SDA PA.11
EN-3V3 PB.04
============ STM32WL E5 E5 E5 =======================================
============ STM32WL 55 ======================================== ============ STM32WL 55 ========================================
BUT1_PIN PA.0 CN10 Pin nbr 1 [PC.13 CN7 Pin nbr 23] BUT1_PIN PA.0 CN10 Pin nbr 1 [PC.13 CN7 Pin nbr 23]
BUT2_PIN PA.1 CN10 Pin nbr 36 BUT2_PIN PA.1 CN10 Pin nbr 36