I had bought a RAK3172 module and working fine with with AT command . I had config the modulework to AS923 , OTTA and sucess connect to thingsnetwork .
The module is just with a switch connect to PA0, and 2 wires from LUART2 +GND connect to USB type (UART-RS232) adaptor to PC. However the the current consumption is terrible even I unplug the UART port connect to PC.
I following the instruction on web use the low level development methodby copying the end node examples from ST and make the change accordingly, however the average during TX-RX is more than 30mA, that doesan;t matter , however the idle current is around 1mA instead of few uA , I had try many method, including GND all the RX pin of UART ports, it did not have any impove.
I try to use the command “HAL_PWREx_EnterSTOP2Mode(PWR_STOPENTRY_WFI);” put the main(0 while loop , the results is the same. I disable the MX_LoRaWAN_Init() in the main.c, it drop to less than 10uA.
is there anyone know what happen ?