-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Description
- type: bug
Bug
Target
NRF52840
Files
serial_api
mbed-os
5.12.0
Issue
The total power consumption of our board is about 20 µA in low power mode without a serial interface. When we try to use rawSerial to communicate to a chip on our board the total power consumption jumps to 620 µA. the current consumption is also this high even without communicating. When we make a new rawSerial object and later destruct it, the power consuption stays 620 µA no matter which pins we configure.
When we make our own UART via the nrf_uart.h lib, it is possible to communicatie via UART and then disable it again and the power consumption drops to 20µA again.
With the rawSerial we have already tried stop the UART and disable it but this didnt help.
It seems like the chip is going into deep sleep mode and we have already tried to stop the hfxo but this doesnt seem to be the problem. We have also checked al the pins i use to see if one is configured wrong but this also doesn't seem to be the problem. We can't find annything strange in the init function of the serial_api so we hope someone over here knows whats going on.
Question
Does annyone know why constructing a rawSerial use so much extra current ?