From 1c0545685458be5086952474c21e28c28d8c59f2 Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Wed, 28 Feb 2024 15:57:18 +0800 Subject: [PATCH 1/2] before try standby --- Core/Inc/sys_conf.h | 4 +- Core/Src/main.c | 53 +++++++++++++++++++ LoRaWAN/App/lora_app.c | 2 +- STM32CubeIDE/.settings/language.settings.xml | 4 +- .../Release/Application/User/Core/subdir.mk | 6 +-- .../Application/User/LoRaWAN/App/subdir.mk | 6 +-- .../Application/User/LoRaWAN/Target/subdir.mk | 6 +-- .../Application/User/Startup/subdir.mk | 6 +-- .../Drivers/BSP/STM32WLxx_Nucleo/subdir.mk | 6 +-- STM32CubeIDE/Release/Drivers/CMSIS/subdir.mk | 6 +-- .../Drivers/STM32WLxx_HAL_Driver/subdir.mk | 6 +-- .../Release/Middlewares/LoRaWAN/subdir.mk | 6 +-- .../Release/Middlewares/SubGHz_Phy/subdir.mk | 6 +-- STM32CubeIDE/Release/Utilities/subdir.mk | 6 +-- STM32CubeIDE/Release/makefile | 20 +++---- STM32CubeIDE/Release/objects.mk | 2 +- STM32CubeIDE/Release/sources.mk | 4 +- 17 files changed, 101 insertions(+), 48 deletions(-) diff --git a/Core/Inc/sys_conf.h b/Core/Inc/sys_conf.h index a0af10a..16d0145 100644 --- a/Core/Inc/sys_conf.h +++ b/Core/Inc/sys_conf.h @@ -47,12 +47,12 @@ extern "C" { /** * @brief Verbose level for all trace logs */ -#define VERBOSE_LEVEL VLEVEL_H +#define VERBOSE_LEVEL VLEVEL_OFF /** * @brief Enable trace logs */ -#define APP_LOG_ENABLED 1 +#define APP_LOG_ENABLED 0 /** * @brief Activate monitoring (probes) of some internal RF signals for debug purpose diff --git a/Core/Src/main.c b/Core/Src/main.c index 54e48cd..8df1391 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -85,6 +85,59 @@ int main(void) /* Initialize all configured peripherals */ MX_GPIO_Init(); + + // ############################################ + // HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_RESET); /* LED_BLUE */ + // HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_RESET); /* LED_GREEN */ + // HAL_GPIO_WritePin(LED3_GPIO_Port, LED3_Pin, GPIO_PIN_RESET); /* LED_RED */ + // HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_SET); /* LED_BLUE */ + // HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_SET); /* LED_GREEN */ + // HAL_GPIO_WritePin(LED3_GPIO_Port, LED3_Pin, GPIO_PIN_SET); /* LED_RED */ + // HAL_GPIO_TogglePin(LED3_GPIO_Port, LED3_Pin); /* LED_RED */ + // HAL_GPIO_TogglePin(LED2_GPIO_Port, LED2_Pin); /* LED_GREEN */ + // HAL_GPIO_TogglePin(LED1_GPIO_Port, LED1_Pin); /* LED_BLUE */ + + /* Check and handle if the system was resumed from StandBy mode */ + if(__HAL_PWR_GET_FLAG(PWR_FLAG_SB) == RESET) + { + HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_RESET); /* LED_BLUE */ + HAL_GPIO_TogglePin(LED1_GPIO_Port, LED1_Pin); /* LED_BLUE */ + HAL_Delay(300); + HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_RESET); /* LED_BLUE */ + + } + else + { + /* Clear Standby flag */ + + //__HAL_PWR_CLEAR_FLAG(PWR_FLAG_SB); + + /* Enable access to RTC domain for following wake-up source configuration */ + //HAL_PWR_EnableBkUpAccess(); + //__HAL_RCC_RTCAPB_CLK_ENABLE(); + HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_RESET); /* LED_GREEN */ + HAL_GPIO_TogglePin(LED2_GPIO_Port, LED2_Pin); /* LED_GREEN */ + HAL_Delay(300); + HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_RESET); /* LED_GREEN */ + +// HAL_GPIO_TogglePin(LED1_GPIO_Port, LED1_Pin); /* LED_BLUE */ +// HAL_Delay(300); +// HAL_GPIO_TogglePin(LED1_GPIO_Port, LED1_Pin); /* LED_BLUE */ +// HAL_GPIO_TogglePin(LED3_GPIO_Port, LED3_Pin); /* LED_RED */ +// HAL_Delay(400); +// HAL_GPIO_TogglePin(LED3_GPIO_Port, LED3_Pin); /* LED_RED */ + + + } + //__HAL_PWR_CLEAR_FLAG(PWR_FLAG_SB); + + //HAL_RTCEx_DeactivateWakeUpTimer(&hrtc); +// __HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU); + + //HAL_RTCEx_SetWakeUpTimer_IT(&hrtc, 0xFFFF, RTC_WAKEUPCLOCK_RTCCLK_DIV16, 0); + //HAL_PWR_EnterSTANDBYMode(); + // ############################################# + MX_LoRaWAN_Init(); /* USER CODE BEGIN 2 */ diff --git a/LoRaWAN/App/lora_app.c b/LoRaWAN/App/lora_app.c index 7a8c159..0b86739 100644 --- a/LoRaWAN/App/lora_app.c +++ b/LoRaWAN/App/lora_app.c @@ -290,7 +290,7 @@ static LmHandlerParams_t LmHandlerParams = /** * @brief Type of Event to generate application Tx */ -static TxEventType_t EventType = TX_ON_TIMER; +static TxEventType_t EventType = TX_ON_EVENT; /** * @brief Timer to handle the application Tx diff --git a/STM32CubeIDE/.settings/language.settings.xml b/STM32CubeIDE/.settings/language.settings.xml index d5e860d..48ffafe 100644 --- a/STM32CubeIDE/.settings/language.settings.xml +++ b/STM32CubeIDE/.settings/language.settings.xml @@ -5,7 +5,7 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/STM32CubeIDE/Release/Application/User/Core/subdir.mk b/STM32CubeIDE/Release/Application/User/Core/subdir.mk index 3056678..a0337d3 100644 --- a/STM32CubeIDE/Release/Application/User/Core/subdir.mk +++ b/STM32CubeIDE/Release/Application/User/Core/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# 自动生成的文件。不要编辑! +# Automatically-generated file. Do not edit! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# 将这些工具调用的输入和输出添加到构建变量 +# Add inputs and outputs from these tool invocations to the build variables C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/Core/Src/adc.c \ D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/Core/Src/adc_if.c \ @@ -68,7 +68,7 @@ C_DEPS += \ ./Application/User/Core/usart_if.d -# 每个子目录必须为构建它所贡献的源提供规则 +# Each subdirectory must supply rules for building sources it contributes Application/User/Core/adc.o: D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/Core/Src/adc.c Application/User/Core/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" Application/User/Core/adc_if.o: D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/Core/Src/adc_if.c Application/User/Core/subdir.mk diff --git a/STM32CubeIDE/Release/Application/User/LoRaWAN/App/subdir.mk b/STM32CubeIDE/Release/Application/User/LoRaWAN/App/subdir.mk index 9d7233c..5fe2317 100644 --- a/STM32CubeIDE/Release/Application/User/LoRaWAN/App/subdir.mk +++ b/STM32CubeIDE/Release/Application/User/LoRaWAN/App/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# 自动生成的文件。不要编辑! +# Automatically-generated file. Do not edit! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# 将这些工具调用的输入和输出添加到构建变量 +# Add inputs and outputs from these tool invocations to the build variables C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/LoRaWAN/App/CayenneLpp.c \ D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/LoRaWAN/App/app_lorawan.c \ @@ -23,7 +23,7 @@ C_DEPS += \ ./Application/User/LoRaWAN/App/lora_info.d -# 每个子目录必须为构建它所贡献的源提供规则 +# Each subdirectory must supply rules for building sources it contributes Application/User/LoRaWAN/App/CayenneLpp.o: D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/LoRaWAN/App/CayenneLpp.c Application/User/LoRaWAN/App/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" Application/User/LoRaWAN/App/app_lorawan.o: D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/LoRaWAN/App/app_lorawan.c Application/User/LoRaWAN/App/subdir.mk diff --git a/STM32CubeIDE/Release/Application/User/LoRaWAN/Target/subdir.mk b/STM32CubeIDE/Release/Application/User/LoRaWAN/Target/subdir.mk index b79cf04..4775563 100644 --- a/STM32CubeIDE/Release/Application/User/LoRaWAN/Target/subdir.mk +++ b/STM32CubeIDE/Release/Application/User/LoRaWAN/Target/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# 自动生成的文件。不要编辑! +# Automatically-generated file. Do not edit! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# 将这些工具调用的输入和输出添加到构建变量 +# Add inputs and outputs from these tool invocations to the build variables C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/LoRaWAN/Target/radio_board_if.c @@ -14,7 +14,7 @@ C_DEPS += \ ./Application/User/LoRaWAN/Target/radio_board_if.d -# 每个子目录必须为构建它所贡献的源提供规则 +# Each subdirectory must supply rules for building sources it contributes Application/User/LoRaWAN/Target/radio_board_if.o: D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/LoRaWAN/Target/radio_board_if.c Application/User/LoRaWAN/Target/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" diff --git a/STM32CubeIDE/Release/Application/User/Startup/subdir.mk b/STM32CubeIDE/Release/Application/User/Startup/subdir.mk index c339efc..643975c 100644 --- a/STM32CubeIDE/Release/Application/User/Startup/subdir.mk +++ b/STM32CubeIDE/Release/Application/User/Startup/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# 自动生成的文件。不要编辑! +# Automatically-generated file. Do not edit! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# 将这些工具调用的输入和输出添加到构建变量 +# Add inputs and outputs from these tool invocations to the build variables S_SRCS += \ ../Application/User/Startup/startup_stm32wl55jcix.s @@ -14,7 +14,7 @@ S_DEPS += \ ./Application/User/Startup/startup_stm32wl55jcix.d -# 每个子目录必须为构建它所贡献的源提供规则 +# Each subdirectory must supply rules for building sources it contributes Application/User/Startup/%.o: ../Application/User/Startup/%.s Application/User/Startup/subdir.mk arm-none-eabi-gcc -mcpu=cortex-m4 -c -x assembler-with-cpp -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" "$<" diff --git a/STM32CubeIDE/Release/Drivers/BSP/STM32WLxx_Nucleo/subdir.mk b/STM32CubeIDE/Release/Drivers/BSP/STM32WLxx_Nucleo/subdir.mk index b2d6e9d..7d8cf1c 100644 --- a/STM32CubeIDE/Release/Drivers/BSP/STM32WLxx_Nucleo/subdir.mk +++ b/STM32CubeIDE/Release/Drivers/BSP/STM32WLxx_Nucleo/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# 自动生成的文件。不要编辑! +# Automatically-generated file. Do not edit! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# 将这些工具调用的输入和输出添加到构建变量 +# Add inputs and outputs from these tool invocations to the build variables C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo.c \ D:/ONEDRIVE/STM32WLV13/Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo_radio.c @@ -17,7 +17,7 @@ C_DEPS += \ ./Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo_radio.d -# 每个子目录必须为构建它所贡献的源提供规则 +# Each subdirectory must supply rules for building sources it contributes Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo.o: D:/ONEDRIVE/STM32WLV13/Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo.c Drivers/BSP/STM32WLxx_Nucleo/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo_radio.o: D:/ONEDRIVE/STM32WLV13/Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo_radio.c Drivers/BSP/STM32WLxx_Nucleo/subdir.mk diff --git a/STM32CubeIDE/Release/Drivers/CMSIS/subdir.mk b/STM32CubeIDE/Release/Drivers/CMSIS/subdir.mk index 93279a7..bd3c416 100644 --- a/STM32CubeIDE/Release/Drivers/CMSIS/subdir.mk +++ b/STM32CubeIDE/Release/Drivers/CMSIS/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# 自动生成的文件。不要编辑! +# Automatically-generated file. Do not edit! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# 将这些工具调用的输入和输出添加到构建变量 +# Add inputs and outputs from these tool invocations to the build variables C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/Core/Src/system_stm32wlxx.c @@ -14,7 +14,7 @@ C_DEPS += \ ./Drivers/CMSIS/system_stm32wlxx.d -# 每个子目录必须为构建它所贡献的源提供规则 +# Each subdirectory must supply rules for building sources it contributes Drivers/CMSIS/system_stm32wlxx.o: D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/Core/Src/system_stm32wlxx.c Drivers/CMSIS/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" diff --git a/STM32CubeIDE/Release/Drivers/STM32WLxx_HAL_Driver/subdir.mk b/STM32CubeIDE/Release/Drivers/STM32WLxx_HAL_Driver/subdir.mk index 6f17688..caad873 100644 --- a/STM32CubeIDE/Release/Drivers/STM32WLxx_HAL_Driver/subdir.mk +++ b/STM32CubeIDE/Release/Drivers/STM32WLxx_HAL_Driver/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# 自动生成的文件。不要编辑! +# Automatically-generated file. Do not edit! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# 将这些工具调用的输入和输出添加到构建变量 +# Add inputs and outputs from these tool invocations to the build variables C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Drivers/STM32WLxx_HAL_Driver/Src/stm32wlxx_hal.c \ D:/ONEDRIVE/STM32WLV13/Drivers/STM32WLxx_HAL_Driver/Src/stm32wlxx_hal_adc.c \ @@ -77,7 +77,7 @@ C_DEPS += \ ./Drivers/STM32WLxx_HAL_Driver/stm32wlxx_ll_adc.d -# 每个子目录必须为构建它所贡献的源提供规则 +# Each subdirectory must supply rules for building sources it contributes Drivers/STM32WLxx_HAL_Driver/stm32wlxx_hal.o: D:/ONEDRIVE/STM32WLV13/Drivers/STM32WLxx_HAL_Driver/Src/stm32wlxx_hal.c Drivers/STM32WLxx_HAL_Driver/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" Drivers/STM32WLxx_HAL_Driver/stm32wlxx_hal_adc.o: D:/ONEDRIVE/STM32WLV13/Drivers/STM32WLxx_HAL_Driver/Src/stm32wlxx_hal_adc.c Drivers/STM32WLxx_HAL_Driver/subdir.mk diff --git a/STM32CubeIDE/Release/Middlewares/LoRaWAN/subdir.mk b/STM32CubeIDE/Release/Middlewares/LoRaWAN/subdir.mk index 3b38fe4..25355dc 100644 --- a/STM32CubeIDE/Release/Middlewares/LoRaWAN/subdir.mk +++ b/STM32CubeIDE/Release/Middlewares/LoRaWAN/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# 自动生成的文件。不要编辑! +# Automatically-generated file. Do not edit! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# 将这些工具调用的输入和输出添加到构建变量 +# Add inputs and outputs from these tool invocations to the build variables C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/LoRaWAN/LmHandler/LmHandler.c \ D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/LoRaWAN/LmHandler/Packages/LmhpCompliance.c \ @@ -110,7 +110,7 @@ C_DEPS += \ ./Middlewares/LoRaWAN/utilities.d -# 每个子目录必须为构建它所贡献的源提供规则 +# Each subdirectory must supply rules for building sources it contributes Middlewares/LoRaWAN/LmHandler.o: D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/LoRaWAN/LmHandler/LmHandler.c Middlewares/LoRaWAN/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" Middlewares/LoRaWAN/LmhpCompliance.o: D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/LoRaWAN/LmHandler/Packages/LmhpCompliance.c Middlewares/LoRaWAN/subdir.mk diff --git a/STM32CubeIDE/Release/Middlewares/SubGHz_Phy/subdir.mk b/STM32CubeIDE/Release/Middlewares/SubGHz_Phy/subdir.mk index b3c4a41..697318b 100644 --- a/STM32CubeIDE/Release/Middlewares/SubGHz_Phy/subdir.mk +++ b/STM32CubeIDE/Release/Middlewares/SubGHz_Phy/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# 自动生成的文件。不要编辑! +# Automatically-generated file. Do not edit! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# 将这些工具调用的输入和输出添加到构建变量 +# Add inputs and outputs from these tool invocations to the build variables C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio.c \ D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio_driver.c \ @@ -20,7 +20,7 @@ C_DEPS += \ ./Middlewares/SubGHz_Phy/radio_fw.d -# 每个子目录必须为构建它所贡献的源提供规则 +# Each subdirectory must supply rules for building sources it contributes Middlewares/SubGHz_Phy/radio.o: D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio.c Middlewares/SubGHz_Phy/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" Middlewares/SubGHz_Phy/radio_driver.o: D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio_driver.c Middlewares/SubGHz_Phy/subdir.mk diff --git a/STM32CubeIDE/Release/Utilities/subdir.mk b/STM32CubeIDE/Release/Utilities/subdir.mk index bc468f3..936ac2b 100644 --- a/STM32CubeIDE/Release/Utilities/subdir.mk +++ b/STM32CubeIDE/Release/Utilities/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# 自动生成的文件。不要编辑! +# Automatically-generated file. Do not edit! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# 将这些工具调用的输入和输出添加到构建变量 +# Add inputs and outputs from these tool invocations to the build variables C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Utilities/trace/adv_trace/stm32_adv_trace.c \ D:/ONEDRIVE/STM32WLV13/Utilities/lpm/tiny_lpm/stm32_lpm.c \ @@ -35,7 +35,7 @@ C_DEPS += \ ./Utilities/stm32_tiny_vsnprintf.d -# 每个子目录必须为构建它所贡献的源提供规则 +# Each subdirectory must supply rules for building sources it contributes Utilities/stm32_adv_trace.o: D:/ONEDRIVE/STM32WLV13/Utilities/trace/adv_trace/stm32_adv_trace.c Utilities/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" Utilities/stm32_lpm.o: D:/ONEDRIVE/STM32WLV13/Utilities/lpm/tiny_lpm/stm32_lpm.c Utilities/subdir.mk diff --git a/STM32CubeIDE/Release/makefile b/STM32CubeIDE/Release/makefile index 9f7817a..86ed0b5 100644 --- a/STM32CubeIDE/Release/makefile +++ b/STM32CubeIDE/Release/makefile @@ -1,5 +1,5 @@ ################################################################################ -# 自动生成的文件。不要编辑! +# Automatically-generated file. Do not edit! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ @@ -7,7 +7,7 @@ RM := rm -rf -# 此处定义了参与生成的所有源 +# All of the sources participating in the build are defined here -include sources.mk -include Utilities/subdir.mk -include Middlewares/SubGHz_Phy/subdir.mk @@ -46,7 +46,7 @@ BUILD_ARTIFACT_EXTENSION := elf BUILD_ARTIFACT_PREFIX := BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),) -# 将这些工具调用的输入和输出添加到构建变量 +# Add inputs and outputs from these tool invocations to the build variables EXECUTABLES += \ STS_AS923_Core.elf \ @@ -60,29 +60,29 @@ OBJDUMP_LIST += \ STS_AS923_Core.list \ -# 所有目标 +# All Target all: main-build -# 主构建目标 +# Main-build Target main-build: STS_AS923_Core.elf secondary-outputs -# 工具调用 +# Tool invocations STS_AS923_Core.elf STS_AS923_Core.map: $(OBJS) $(USER_OBJS) D:\ONEDRIVE\STM32WLV13\Projects\STS_AS923_Core\STM32CubeIDE\STM32WL55JCIX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS) arm-none-eabi-gcc -o "STS_AS923_Core.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m4 -T"D:\ONEDRIVE\STM32WLV13\Projects\STS_AS923_Core\STM32CubeIDE\STM32WL55JCIX_FLASH.ld" --specs=nosys.specs -Wl,-Map="STS_AS923_Core.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group - @echo '已结束构建目标: $@' + @echo 'Finished building target: $@' @echo ' ' default.size.stdout: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS) arm-none-eabi-size $(EXECUTABLES) - @echo '已结束构建: $@' + @echo 'Finished building: $@' @echo ' ' STS_AS923_Core.list: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS) arm-none-eabi-objdump -h -S $(EXECUTABLES) > "STS_AS923_Core.list" - @echo '已结束构建: $@' + @echo 'Finished building: $@' @echo ' ' -# 其他目标 +# Other Targets clean: -$(RM) STS_AS923_Core.elf STS_AS923_Core.list STS_AS923_Core.map default.size.stdout -@echo ' ' diff --git a/STM32CubeIDE/Release/objects.mk b/STM32CubeIDE/Release/objects.mk index 6e18ad0..820854b 100644 --- a/STM32CubeIDE/Release/objects.mk +++ b/STM32CubeIDE/Release/objects.mk @@ -1,5 +1,5 @@ ################################################################################ -# 自动生成的文件。不要编辑! +# Automatically-generated file. Do not edit! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ diff --git a/STM32CubeIDE/Release/sources.mk b/STM32CubeIDE/Release/sources.mk index 8b1bfb5..37301ce 100644 --- a/STM32CubeIDE/Release/sources.mk +++ b/STM32CubeIDE/Release/sources.mk @@ -1,5 +1,5 @@ ################################################################################ -# 自动生成的文件。不要编辑! +# Automatically-generated file. Do not edit! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ @@ -20,7 +20,7 @@ S_DEPS := S_UPPER_DEPS := C_DEPS := -# 此处必须描述包含源文件的每个子目录 +# Every subdirectory with source files must be described here SUBDIRS := \ Application/User/Core \ Application/User/LoRaWAN/App \ From d3236171ee61ecb0ce0b54f0163e59e120ae92cc Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Wed, 6 Mar 2024 18:00:15 +0800 Subject: [PATCH 2/2] rebase to origin version --- Core/Src/main.c | 57 +++---------------- Core/Src/stm32_lpm_if.c | 17 +++++- Core/Src/sys_app.c | 3 +- LoRaWAN/App/lora_app.c | 2 +- .../Release/Application/User/Core/subdir.mk | 6 +- .../Application/User/LoRaWAN/App/subdir.mk | 6 +- .../Application/User/LoRaWAN/Target/subdir.mk | 6 +- .../Application/User/Startup/subdir.mk | 6 +- .../Drivers/BSP/STM32WLxx_Nucleo/subdir.mk | 6 +- STM32CubeIDE/Release/Drivers/CMSIS/subdir.mk | 6 +- .../Drivers/STM32WLxx_HAL_Driver/subdir.mk | 6 +- .../Release/Middlewares/LoRaWAN/subdir.mk | 6 +- .../Release/Middlewares/SubGHz_Phy/subdir.mk | 6 +- STM32CubeIDE/Release/Utilities/subdir.mk | 6 +- STM32CubeIDE/Release/makefile | 20 +++---- STM32CubeIDE/Release/objects.mk | 2 +- STM32CubeIDE/Release/sources.mk | 4 +- 17 files changed, 68 insertions(+), 97 deletions(-) diff --git a/Core/Src/main.c b/Core/Src/main.c index 8df1391..4307186 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -85,64 +85,23 @@ int main(void) /* Initialize all configured peripherals */ MX_GPIO_Init(); - - // ############################################ - // HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_RESET); /* LED_BLUE */ - // HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_RESET); /* LED_GREEN */ - // HAL_GPIO_WritePin(LED3_GPIO_Port, LED3_Pin, GPIO_PIN_RESET); /* LED_RED */ - // HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_SET); /* LED_BLUE */ - // HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_SET); /* LED_GREEN */ - // HAL_GPIO_WritePin(LED3_GPIO_Port, LED3_Pin, GPIO_PIN_SET); /* LED_RED */ - // HAL_GPIO_TogglePin(LED3_GPIO_Port, LED3_Pin); /* LED_RED */ - // HAL_GPIO_TogglePin(LED2_GPIO_Port, LED2_Pin); /* LED_GREEN */ - // HAL_GPIO_TogglePin(LED1_GPIO_Port, LED1_Pin); /* LED_BLUE */ - - /* Check and handle if the system was resumed from StandBy mode */ - if(__HAL_PWR_GET_FLAG(PWR_FLAG_SB) == RESET) - { - HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_RESET); /* LED_BLUE */ - HAL_GPIO_TogglePin(LED1_GPIO_Port, LED1_Pin); /* LED_BLUE */ - HAL_Delay(300); - HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_RESET); /* LED_BLUE */ - - } - else +#if 1 + if (__HAL_PWR_GET_FLAG(PWR_FLAG_SB) != RESET) { /* Clear Standby flag */ + __HAL_PWR_CLEAR_FLAG(PWR_FLAG_SB); - //__HAL_PWR_CLEAR_FLAG(PWR_FLAG_SB); - - /* Enable access to RTC domain for following wake-up source configuration */ - //HAL_PWR_EnableBkUpAccess(); - //__HAL_RCC_RTCAPB_CLK_ENABLE(); - HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_RESET); /* LED_GREEN */ - HAL_GPIO_TogglePin(LED2_GPIO_Port, LED2_Pin); /* LED_GREEN */ - HAL_Delay(300); - HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_RESET); /* LED_GREEN */ - -// HAL_GPIO_TogglePin(LED1_GPIO_Port, LED1_Pin); /* LED_BLUE */ -// HAL_Delay(300); -// HAL_GPIO_TogglePin(LED1_GPIO_Port, LED1_Pin); /* LED_BLUE */ -// HAL_GPIO_TogglePin(LED3_GPIO_Port, LED3_Pin); /* LED_RED */ -// HAL_Delay(400); -// HAL_GPIO_TogglePin(LED3_GPIO_Port, LED3_Pin); /* LED_RED */ + HAL_GPIO_TogglePin(LED3_GPIO_Port, LED3_Pin); /* LED_BLUE */ + } else { + MX_LoRaWAN_Init(); } - //__HAL_PWR_CLEAR_FLAG(PWR_FLAG_SB); - - //HAL_RTCEx_DeactivateWakeUpTimer(&hrtc); -// __HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU); - - //HAL_RTCEx_SetWakeUpTimer_IT(&hrtc, 0xFFFF, RTC_WAKEUPCLOCK_RTCCLK_DIV16, 0); - //HAL_PWR_EnterSTANDBYMode(); - // ############################################# - - MX_LoRaWAN_Init(); +#endif /* USER CODE BEGIN 2 */ /* USER CODE END 2 */ - + MX_LoRaWAN_Init(); /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) diff --git a/Core/Src/stm32_lpm_if.c b/Core/Src/stm32_lpm_if.c index 8b623ee..213b006 100644 --- a/Core/Src/stm32_lpm_if.c +++ b/Core/Src/stm32_lpm_if.c @@ -77,15 +77,26 @@ const struct UTIL_LPM_Driver_s UTIL_PowerDriver = void PWR_EnterOffMode(void) { - /* USER CODE BEGIN EnterOffMode_1 */ + /* USER CODE BEGIN EnterOffMode_1 */ - /* USER CODE END EnterOffMode_1 */ + /* USER CODE END EnterOffMode_1 */ + //HAL_PWREx_EnableGPIOPullUp(PWR_GPIO_A, PWR_GPIO_BIT_0); + //HAL_PWREx_EnablePullUpPullDownConfig(); + /* USER CODE BEGIN EnterOffMode_2 */ + + /* USER CODE END EnterOffMode_2 */ + + /* USER CODE BEGIN EnterOffMode_3 */ + //HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1_LOW); + //__HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU); + //HAL_PWR_EnterSTANDBYMode(); + /* USER CODE END EnterOffMode_3 */ } void PWR_ExitOffMode(void) { /* USER CODE BEGIN ExitOffMode_1 */ - + //__HAL_PWR_CLEAR_FLAG(PWR_FLAG_SB); /* USER CODE END ExitOffMode_1 */ } diff --git a/Core/Src/sys_app.c b/Core/Src/sys_app.c index 70a570e..f070666 100644 --- a/Core/Src/sys_app.c +++ b/Core/Src/sys_app.c @@ -121,7 +121,8 @@ void SystemApp_Init(void) /*Init low power manager*/ UTIL_LPM_Init(); /* Disable Stand-by mode */ - UTIL_LPM_SetOffMode((1 << CFG_LPM_APPLI_Id), UTIL_LPM_ENABLE); + UTIL_LPM_SetOffMode((1 << CFG_LPM_APPLI_Id), UTIL_LPM_DISABLE); + //UTIL_LPM_SetOffMode((1 << CFG_LPM_APPLI_Id), UTIL_LPM_ENABLE); #if defined (LOW_POWER_DISABLE) && (LOW_POWER_DISABLE == 1) /* Disable Stop Mode */ diff --git a/LoRaWAN/App/lora_app.c b/LoRaWAN/App/lora_app.c index 0b86739..394be65 100644 --- a/LoRaWAN/App/lora_app.c +++ b/LoRaWAN/App/lora_app.c @@ -290,7 +290,7 @@ static LmHandlerParams_t LmHandlerParams = /** * @brief Type of Event to generate application Tx */ -static TxEventType_t EventType = TX_ON_EVENT; +static TxEventType_t EventType = TX_ON_TIMER;//TX_ON_EVENT; /** * @brief Timer to handle the application Tx diff --git a/STM32CubeIDE/Release/Application/User/Core/subdir.mk b/STM32CubeIDE/Release/Application/User/Core/subdir.mk index a0337d3..3056678 100644 --- a/STM32CubeIDE/Release/Application/User/Core/subdir.mk +++ b/STM32CubeIDE/Release/Application/User/Core/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# Automatically-generated file. Do not edit! +# 自动生成的文件。不要编辑! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# Add inputs and outputs from these tool invocations to the build variables +# 将这些工具调用的输入和输出添加到构建变量 C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/Core/Src/adc.c \ D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/Core/Src/adc_if.c \ @@ -68,7 +68,7 @@ C_DEPS += \ ./Application/User/Core/usart_if.d -# Each subdirectory must supply rules for building sources it contributes +# 每个子目录必须为构建它所贡献的源提供规则 Application/User/Core/adc.o: D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/Core/Src/adc.c Application/User/Core/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" Application/User/Core/adc_if.o: D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/Core/Src/adc_if.c Application/User/Core/subdir.mk diff --git a/STM32CubeIDE/Release/Application/User/LoRaWAN/App/subdir.mk b/STM32CubeIDE/Release/Application/User/LoRaWAN/App/subdir.mk index 5fe2317..9d7233c 100644 --- a/STM32CubeIDE/Release/Application/User/LoRaWAN/App/subdir.mk +++ b/STM32CubeIDE/Release/Application/User/LoRaWAN/App/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# Automatically-generated file. Do not edit! +# 自动生成的文件。不要编辑! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# Add inputs and outputs from these tool invocations to the build variables +# 将这些工具调用的输入和输出添加到构建变量 C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/LoRaWAN/App/CayenneLpp.c \ D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/LoRaWAN/App/app_lorawan.c \ @@ -23,7 +23,7 @@ C_DEPS += \ ./Application/User/LoRaWAN/App/lora_info.d -# Each subdirectory must supply rules for building sources it contributes +# 每个子目录必须为构建它所贡献的源提供规则 Application/User/LoRaWAN/App/CayenneLpp.o: D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/LoRaWAN/App/CayenneLpp.c Application/User/LoRaWAN/App/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" Application/User/LoRaWAN/App/app_lorawan.o: D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/LoRaWAN/App/app_lorawan.c Application/User/LoRaWAN/App/subdir.mk diff --git a/STM32CubeIDE/Release/Application/User/LoRaWAN/Target/subdir.mk b/STM32CubeIDE/Release/Application/User/LoRaWAN/Target/subdir.mk index 4775563..b79cf04 100644 --- a/STM32CubeIDE/Release/Application/User/LoRaWAN/Target/subdir.mk +++ b/STM32CubeIDE/Release/Application/User/LoRaWAN/Target/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# Automatically-generated file. Do not edit! +# 自动生成的文件。不要编辑! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# Add inputs and outputs from these tool invocations to the build variables +# 将这些工具调用的输入和输出添加到构建变量 C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/LoRaWAN/Target/radio_board_if.c @@ -14,7 +14,7 @@ C_DEPS += \ ./Application/User/LoRaWAN/Target/radio_board_if.d -# Each subdirectory must supply rules for building sources it contributes +# 每个子目录必须为构建它所贡献的源提供规则 Application/User/LoRaWAN/Target/radio_board_if.o: D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/LoRaWAN/Target/radio_board_if.c Application/User/LoRaWAN/Target/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" diff --git a/STM32CubeIDE/Release/Application/User/Startup/subdir.mk b/STM32CubeIDE/Release/Application/User/Startup/subdir.mk index 643975c..c339efc 100644 --- a/STM32CubeIDE/Release/Application/User/Startup/subdir.mk +++ b/STM32CubeIDE/Release/Application/User/Startup/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# Automatically-generated file. Do not edit! +# 自动生成的文件。不要编辑! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# Add inputs and outputs from these tool invocations to the build variables +# 将这些工具调用的输入和输出添加到构建变量 S_SRCS += \ ../Application/User/Startup/startup_stm32wl55jcix.s @@ -14,7 +14,7 @@ S_DEPS += \ ./Application/User/Startup/startup_stm32wl55jcix.d -# Each subdirectory must supply rules for building sources it contributes +# 每个子目录必须为构建它所贡献的源提供规则 Application/User/Startup/%.o: ../Application/User/Startup/%.s Application/User/Startup/subdir.mk arm-none-eabi-gcc -mcpu=cortex-m4 -c -x assembler-with-cpp -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" "$<" diff --git a/STM32CubeIDE/Release/Drivers/BSP/STM32WLxx_Nucleo/subdir.mk b/STM32CubeIDE/Release/Drivers/BSP/STM32WLxx_Nucleo/subdir.mk index 7d8cf1c..b2d6e9d 100644 --- a/STM32CubeIDE/Release/Drivers/BSP/STM32WLxx_Nucleo/subdir.mk +++ b/STM32CubeIDE/Release/Drivers/BSP/STM32WLxx_Nucleo/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# Automatically-generated file. Do not edit! +# 自动生成的文件。不要编辑! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# Add inputs and outputs from these tool invocations to the build variables +# 将这些工具调用的输入和输出添加到构建变量 C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo.c \ D:/ONEDRIVE/STM32WLV13/Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo_radio.c @@ -17,7 +17,7 @@ C_DEPS += \ ./Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo_radio.d -# Each subdirectory must supply rules for building sources it contributes +# 每个子目录必须为构建它所贡献的源提供规则 Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo.o: D:/ONEDRIVE/STM32WLV13/Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo.c Drivers/BSP/STM32WLxx_Nucleo/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo_radio.o: D:/ONEDRIVE/STM32WLV13/Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo_radio.c Drivers/BSP/STM32WLxx_Nucleo/subdir.mk diff --git a/STM32CubeIDE/Release/Drivers/CMSIS/subdir.mk b/STM32CubeIDE/Release/Drivers/CMSIS/subdir.mk index bd3c416..93279a7 100644 --- a/STM32CubeIDE/Release/Drivers/CMSIS/subdir.mk +++ b/STM32CubeIDE/Release/Drivers/CMSIS/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# Automatically-generated file. Do not edit! +# 自动生成的文件。不要编辑! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# Add inputs and outputs from these tool invocations to the build variables +# 将这些工具调用的输入和输出添加到构建变量 C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/Core/Src/system_stm32wlxx.c @@ -14,7 +14,7 @@ C_DEPS += \ ./Drivers/CMSIS/system_stm32wlxx.d -# Each subdirectory must supply rules for building sources it contributes +# 每个子目录必须为构建它所贡献的源提供规则 Drivers/CMSIS/system_stm32wlxx.o: D:/ONEDRIVE/STM32WLV13/Projects/STS_AS923_Core/Core/Src/system_stm32wlxx.c Drivers/CMSIS/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" diff --git a/STM32CubeIDE/Release/Drivers/STM32WLxx_HAL_Driver/subdir.mk b/STM32CubeIDE/Release/Drivers/STM32WLxx_HAL_Driver/subdir.mk index caad873..6f17688 100644 --- a/STM32CubeIDE/Release/Drivers/STM32WLxx_HAL_Driver/subdir.mk +++ b/STM32CubeIDE/Release/Drivers/STM32WLxx_HAL_Driver/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# Automatically-generated file. Do not edit! +# 自动生成的文件。不要编辑! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# Add inputs and outputs from these tool invocations to the build variables +# 将这些工具调用的输入和输出添加到构建变量 C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Drivers/STM32WLxx_HAL_Driver/Src/stm32wlxx_hal.c \ D:/ONEDRIVE/STM32WLV13/Drivers/STM32WLxx_HAL_Driver/Src/stm32wlxx_hal_adc.c \ @@ -77,7 +77,7 @@ C_DEPS += \ ./Drivers/STM32WLxx_HAL_Driver/stm32wlxx_ll_adc.d -# Each subdirectory must supply rules for building sources it contributes +# 每个子目录必须为构建它所贡献的源提供规则 Drivers/STM32WLxx_HAL_Driver/stm32wlxx_hal.o: D:/ONEDRIVE/STM32WLV13/Drivers/STM32WLxx_HAL_Driver/Src/stm32wlxx_hal.c Drivers/STM32WLxx_HAL_Driver/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" Drivers/STM32WLxx_HAL_Driver/stm32wlxx_hal_adc.o: D:/ONEDRIVE/STM32WLV13/Drivers/STM32WLxx_HAL_Driver/Src/stm32wlxx_hal_adc.c Drivers/STM32WLxx_HAL_Driver/subdir.mk diff --git a/STM32CubeIDE/Release/Middlewares/LoRaWAN/subdir.mk b/STM32CubeIDE/Release/Middlewares/LoRaWAN/subdir.mk index 25355dc..3b38fe4 100644 --- a/STM32CubeIDE/Release/Middlewares/LoRaWAN/subdir.mk +++ b/STM32CubeIDE/Release/Middlewares/LoRaWAN/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# Automatically-generated file. Do not edit! +# 自动生成的文件。不要编辑! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# Add inputs and outputs from these tool invocations to the build variables +# 将这些工具调用的输入和输出添加到构建变量 C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/LoRaWAN/LmHandler/LmHandler.c \ D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/LoRaWAN/LmHandler/Packages/LmhpCompliance.c \ @@ -110,7 +110,7 @@ C_DEPS += \ ./Middlewares/LoRaWAN/utilities.d -# Each subdirectory must supply rules for building sources it contributes +# 每个子目录必须为构建它所贡献的源提供规则 Middlewares/LoRaWAN/LmHandler.o: D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/LoRaWAN/LmHandler/LmHandler.c Middlewares/LoRaWAN/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" Middlewares/LoRaWAN/LmhpCompliance.o: D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/LoRaWAN/LmHandler/Packages/LmhpCompliance.c Middlewares/LoRaWAN/subdir.mk diff --git a/STM32CubeIDE/Release/Middlewares/SubGHz_Phy/subdir.mk b/STM32CubeIDE/Release/Middlewares/SubGHz_Phy/subdir.mk index 697318b..b3c4a41 100644 --- a/STM32CubeIDE/Release/Middlewares/SubGHz_Phy/subdir.mk +++ b/STM32CubeIDE/Release/Middlewares/SubGHz_Phy/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# Automatically-generated file. Do not edit! +# 自动生成的文件。不要编辑! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# Add inputs and outputs from these tool invocations to the build variables +# 将这些工具调用的输入和输出添加到构建变量 C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio.c \ D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio_driver.c \ @@ -20,7 +20,7 @@ C_DEPS += \ ./Middlewares/SubGHz_Phy/radio_fw.d -# Each subdirectory must supply rules for building sources it contributes +# 每个子目录必须为构建它所贡献的源提供规则 Middlewares/SubGHz_Phy/radio.o: D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio.c Middlewares/SubGHz_Phy/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" Middlewares/SubGHz_Phy/radio_driver.o: D:/ONEDRIVE/STM32WLV13/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio_driver.c Middlewares/SubGHz_Phy/subdir.mk diff --git a/STM32CubeIDE/Release/Utilities/subdir.mk b/STM32CubeIDE/Release/Utilities/subdir.mk index 936ac2b..bc468f3 100644 --- a/STM32CubeIDE/Release/Utilities/subdir.mk +++ b/STM32CubeIDE/Release/Utilities/subdir.mk @@ -1,9 +1,9 @@ ################################################################################ -# Automatically-generated file. Do not edit! +# 自动生成的文件。不要编辑! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ -# Add inputs and outputs from these tool invocations to the build variables +# 将这些工具调用的输入和输出添加到构建变量 C_SRCS += \ D:/ONEDRIVE/STM32WLV13/Utilities/trace/adv_trace/stm32_adv_trace.c \ D:/ONEDRIVE/STM32WLV13/Utilities/lpm/tiny_lpm/stm32_lpm.c \ @@ -35,7 +35,7 @@ C_DEPS += \ ./Utilities/stm32_tiny_vsnprintf.d -# Each subdirectory must supply rules for building sources it contributes +# 每个子目录必须为构建它所贡献的源提供规则 Utilities/stm32_adv_trace.o: D:/ONEDRIVE/STM32WLV13/Utilities/trace/adv_trace/stm32_adv_trace.c Utilities/subdir.mk arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -DCORE_CM4 -DYUNHORN_STS_RANDOM -DUSE_HAL_DRIVER -DSTM32WL55xx -c -I../../Core/Inc -I../../LoRaWAN/App -I../../LoRaWAN/Target -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc -I../../../../Drivers/STM32WLxx_HAL_Driver/Inc/Legacy -I../../../../Utilities/trace/adv_trace -I../../../../Utilities/misc -I../../../../Utilities/sequencer -I../../../../Utilities/timer -I../../../../Utilities/lpm/tiny_lpm -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler/Packages -I../../../../Drivers/CMSIS/Device/ST/STM32WLxx/Include -I../../../../Middlewares/Third_Party/LoRaWAN/Crypto -I../../../../Middlewares/Third_Party/LoRaWAN/Mac/Region -I../../../../Middlewares/Third_Party/LoRaWAN/Mac -I../../../../Middlewares/Third_Party/LoRaWAN/LmHandler -I../../../../Middlewares/Third_Party/LoRaWAN/Utilities -I../../../../Middlewares/Third_Party/SubGHz_Phy -I../../../../Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver -I../../../../Drivers/CMSIS/Include -I../../../../Drivers/BSP/STM32WLxx_Nucleo -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" Utilities/stm32_lpm.o: D:/ONEDRIVE/STM32WLV13/Utilities/lpm/tiny_lpm/stm32_lpm.c Utilities/subdir.mk diff --git a/STM32CubeIDE/Release/makefile b/STM32CubeIDE/Release/makefile index 86ed0b5..9f7817a 100644 --- a/STM32CubeIDE/Release/makefile +++ b/STM32CubeIDE/Release/makefile @@ -1,5 +1,5 @@ ################################################################################ -# Automatically-generated file. Do not edit! +# 自动生成的文件。不要编辑! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ @@ -7,7 +7,7 @@ RM := rm -rf -# All of the sources participating in the build are defined here +# 此处定义了参与生成的所有源 -include sources.mk -include Utilities/subdir.mk -include Middlewares/SubGHz_Phy/subdir.mk @@ -46,7 +46,7 @@ BUILD_ARTIFACT_EXTENSION := elf BUILD_ARTIFACT_PREFIX := BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),) -# Add inputs and outputs from these tool invocations to the build variables +# 将这些工具调用的输入和输出添加到构建变量 EXECUTABLES += \ STS_AS923_Core.elf \ @@ -60,29 +60,29 @@ OBJDUMP_LIST += \ STS_AS923_Core.list \ -# All Target +# 所有目标 all: main-build -# Main-build Target +# 主构建目标 main-build: STS_AS923_Core.elf secondary-outputs -# Tool invocations +# 工具调用 STS_AS923_Core.elf STS_AS923_Core.map: $(OBJS) $(USER_OBJS) D:\ONEDRIVE\STM32WLV13\Projects\STS_AS923_Core\STM32CubeIDE\STM32WL55JCIX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS) arm-none-eabi-gcc -o "STS_AS923_Core.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m4 -T"D:\ONEDRIVE\STM32WLV13\Projects\STS_AS923_Core\STM32CubeIDE\STM32WL55JCIX_FLASH.ld" --specs=nosys.specs -Wl,-Map="STS_AS923_Core.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group - @echo 'Finished building target: $@' + @echo '已结束构建目标: $@' @echo ' ' default.size.stdout: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS) arm-none-eabi-size $(EXECUTABLES) - @echo 'Finished building: $@' + @echo '已结束构建: $@' @echo ' ' STS_AS923_Core.list: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS) arm-none-eabi-objdump -h -S $(EXECUTABLES) > "STS_AS923_Core.list" - @echo 'Finished building: $@' + @echo '已结束构建: $@' @echo ' ' -# Other Targets +# 其他目标 clean: -$(RM) STS_AS923_Core.elf STS_AS923_Core.list STS_AS923_Core.map default.size.stdout -@echo ' ' diff --git a/STM32CubeIDE/Release/objects.mk b/STM32CubeIDE/Release/objects.mk index 820854b..6e18ad0 100644 --- a/STM32CubeIDE/Release/objects.mk +++ b/STM32CubeIDE/Release/objects.mk @@ -1,5 +1,5 @@ ################################################################################ -# Automatically-generated file. Do not edit! +# 自动生成的文件。不要编辑! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ diff --git a/STM32CubeIDE/Release/sources.mk b/STM32CubeIDE/Release/sources.mk index 37301ce..8b1bfb5 100644 --- a/STM32CubeIDE/Release/sources.mk +++ b/STM32CubeIDE/Release/sources.mk @@ -1,5 +1,5 @@ ################################################################################ -# Automatically-generated file. Do not edit! +# 自动生成的文件。不要编辑! # Toolchain: GNU Tools for STM32 (11.3.rel1) ################################################################################ @@ -20,7 +20,7 @@ S_DEPS := S_UPPER_DEPS := C_DEPS := -# Every subdirectory with source files must be described here +# 此处必须描述包含源文件的每个子目录 SUBDIRS := \ Application/User/Core \ Application/User/LoRaWAN/App \