-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Higher power usage in deep sleep with v1.4 #12
Comments
Hi woutervhoof, Since Silext newah module exposes GPIO pin from 0 to 17 to outside world, you can assume GPIO 18 to GPIO 31 are not connected to anything and you will need to set correct states for GPIO 0 - 17 depends on how those pins are connected to out side world. Assuming your circuit does not have GPIO 0 to 17 connected to nothing. nrc_ps_set_gpio_direction(0xFFFFFFFF); If there are any GPIO pins used, make adjustment please. Let me know if you have any question. |
Hi @puffie Thanks for your answer! I'm aware of the nrc_ps_set_gpio functions but they don't work for me. I raised this as an issue but haven't got any support on that problem. I tried your code again to check if I didn't make a mistake the previous times . I used following code: If I'm not wrong, this should set GPIO 8 and 9 as input. I inserted this code right before I call the deep sleep function. When I measure the pins on the module, nothing changed. It looks like the set values are always overwritten with output low, except for the UART pins. I tried putting the gpio functions on other places in the code but that had the same result. Do these functions work for you? And do you have working code I can test on my module? Thanks in advance! |
It seems that setting GPIO pin to input and pulling the pin to high isn't quite working as expected. I was getting the voltage of 0.8v instead of system voltage (3.3V) during deep sleep. With below code in sample_ps_standalone.c, GPIO 8 was outputting 3.3v. #if defined(WAKEUP_GPIO_PIN)
#if TIM_DEEPSLEEP I also set "SLEEP_TIME_MS" to 0 to disable periodic wake up. The original code was waking up every 5 sec on top of TIM mode sleep. |
Hi @puffie Thanks for your answer! I tested the code this afternoon and didn't succeed in pulling pin 8 high. I used the sample_ps_standalone.c and your code on the exact same place. I tested it in TIM and non-TIM mode. Weird that the code works for you... :/ Thanks in advance! |
I confirmed that there's an issue in SDK. There will be new SDK release soon. |
Great! Looking forward to that! Another question... What is the current consumption you achieve in deep sleep? Like I mentioned in the first post, i got around 700uA. |
Hi Everyone, Thank you in advance! |
Hi,
I have trouble using the deep sleep function of the nrc7292. I tried the sample_ps_standalone sample from the SDK v1.4 on a silex sx-newah module. It's just the module and some decoupling capacitors, so no other components connected. When I try the sample code, i get about 790uA in deep sleep.
I tried the same sample_ps_standalone sample code but the older version from SDK v1.3.4. With the older version, i measure about 580uA.
It seems that the nrc_ps_deep_sleep function from the newest SDK is worse than the previous one as it uses about 200uA more.
Apart from that, I think the power usage in deep sleep is still extremely high. 600uA for a microcontroller in deep sleep seems a lot to me and not really useful for a battery powered device. Especially when they specify that Wi-Fi Halow supports coin cell battery devices.
What am I doing wrong or is it something that has to be fixed in the future?
Thanks in advance!
The text was updated successfully, but these errors were encountered: