2024-05-28 07:18 AM
Hello,
We have an issue with the B-WL5M-SUBG1 evaluation board: The idle current consumption is higher than expected: 89 uA (vs. expected: 1-2 uA) after joining (OTAA) successfully.
Do you have an idea what could be the issue?
Thanks!
Solved! Go to Solution.
2024-05-28 10:39 AM
Hi,
To resolve this issue, we pull the UART TX and RX pins high.
Maybe that could help you.
Alexandre
2024-05-28 07:29 AM
Could you please add the details of the configurations that you are doing.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-05-28 07:48 AM
Hi, steps to reproduce the issue:
Thanks!
2024-05-28 10:39 AM
Hi,
To resolve this issue, we pull the UART TX and RX pins high.
Maybe that could help you.
Alexandre
2024-05-29 02:43 AM
Hello Alexandre,
Thank you very much for your hint, you nailed it!
We changed two things:
This way, the idle current consumption went down to 1.9 uA! We are very happy with this.
Details:
Projects/B-WL5M-SUBG1/Applications/LoRaWAN/LoRaWAN_AT_Slave/Core/Src/usart.c: change:
GPIO_InitStruct.Pin = USARTx_RX_Pin|USARTx_TX_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_PULLUP; // <-- changed
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.Alternate = GPIO_AF8_LPUART1;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
Projects/B-WL5M-SUBG1/Applications/LoRaWAN/LoRaWAN_AT_Slave/Core/Src/gpio.c: add in function MX_GPIO_Init():
/* Configure GPIO pin : JTDI */
GPIO_InitStruct.Pin = GPIO_PIN_15;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_PULLDOWN;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
The same changes can be applied to Projects/B-WL5M-SUBG1/Applications/LoRaWAN/LoRaWAN_End_Node as well.
Thanks again!
2024-05-29 05:16 AM
Excellent!
Happy to hear this news!
Alexandre