end of round 1 test

This commit is contained in:
Yunhorn 2024-03-13 10:30:36 +08:00
parent 4e907a9d42
commit a880cf6d9c
8 changed files with 17110 additions and 17068 deletions

View File

@ -84,6 +84,9 @@ void Error_Handler(void);
#define USARTx_TX_Pin GPIO_PIN_2
#define USARTx_TX_GPIO_Port GPIOA
#define STS_PME_Pin GPIO_PIN_4
#define STS_PME_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */

View File

@ -90,6 +90,14 @@ void MX_GPIO_Init(void)
GPIO_InitStruct.Pull = GPIO_PULLUP;
HAL_GPIO_Init(BUT3_GPIO_Port, &GPIO_InitStruct);
#endif
__HAL_RCC_GPIOB_CLK_ENABLE();
GPIO_InitStruct.Pin = STS_PME_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_PULLDOWN;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init(STS_PME_GPIO_Port, &GPIO_InitStruct);
//__HAL_RCC_GPIOB_CLK_DISABLE();
/* EXTI interrupt init*/
#if 0
HAL_NVIC_SetPriority(EXTI0_IRQn, 0, 0);

View File

@ -49,7 +49,7 @@
/* Private function prototypes -----------------------------------------------*/
void SystemClock_Config(void);
/* USER CODE BEGIN PFP */
extern UART_HandleTypeDef huart2;
/* USER CODE END PFP */
/* Private user code ---------------------------------------------------------*/
@ -85,6 +85,8 @@ int main(void)
/* Initialize all configured peripherals */
MX_GPIO_Init();
HAL_UART_DeInit(&huart2);
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_4, GPIO_PIN_RESET); /* PME OFF */
MX_LoRaWAN_Init();
/* USER CODE BEGIN 2 */

View File

@ -78,6 +78,7 @@ const struct UTIL_LPM_Driver_s UTIL_PowerDriver =
void PWR_EnterOffMode(void)
{
/* USER CODE BEGIN EnterOffMode_1 */
//HAL_GPIO_WritePin(GPIOB, GPIO_PIN_2, GPIO_PIN_RESET); /* LED OFF */
HAL_SuspendTick();
LL_PWR_ClearFlag_WU();
HAL_PWR_EnterSTANDBYMode();
@ -88,6 +89,7 @@ void PWR_ExitOffMode(void)
{
/* USER CODE BEGIN ExitOffMode_1 */
HAL_ResumeTick();
//HAL_GPIO_WritePin(GPIOB, GPIO_PIN_2, GPIO_PIN_SET); /* LED ON */
return;
/* USER CODE END ExitOffMode_1 */
}
@ -123,7 +125,7 @@ void PWR_ExitStopMode(void)
SRAM ctrls, DMAx, DMAMux, AES, RNG, HSEM */
/* Resume not retained USARTx and DMA */
vcom_Resume();
//vcom_Resume();
/* USER CODE BEGIN ExitStopMode_2 */
/* USER CODE END ExitStopMode_2 */

View File

@ -1,3 +1,3 @@
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/main.c:109:6:SystemClock_Config 3
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/main.c:111:6:SystemClock_Config 3
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/main.c:64:5:main 1
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/main.c:161:6:Error_Handler 1
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/main.c:163:6:Error_Handler 1

View File

@ -1,6 +1,6 @@
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/stm32_lpm_if.c:78:6:PWR_EnterOffMode 1
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/stm32_lpm_if.c:87:6:PWR_ExitOffMode 1
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/stm32_lpm_if.c:95:6:PWR_EnterStopMode 1
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/stm32_lpm_if.c:113:6:PWR_ExitStopMode 1
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/stm32_lpm_if.c:132:6:PWR_EnterSleepMode 1
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/stm32_lpm_if.c:148:6:PWR_ExitSleepMode 1
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/stm32_lpm_if.c:88:6:PWR_ExitOffMode 1
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/stm32_lpm_if.c:97:6:PWR_EnterStopMode 1
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/stm32_lpm_if.c:134:6:PWR_EnterSleepMode 1
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/stm32_lpm_if.c:150:6:PWR_ExitSleepMode 1
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node_E5CC/Core/Src/stm32_lpm_if.c:115:6:PWR_ExitStopMode 1

File diff suppressed because it is too large Load Diff