-
Notifications
You must be signed in to change notification settings - Fork 349
328P 3v3 8mhz not enabling all systems after wakeup period #124
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
Comments
Here is an example just inserting the sleep command in the RadioLib library
and here is a more integrated approach, I have tried many many iterations all ends in the same result so I suspect im missing somehting
|
Not too sure on the RadioLib, but if you are using |
Thank you, Makes sense Ill give that a go, as far as the single line " LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF); " when the 8 seconds have passed, does the system automatically turn all peripherals back on before the code resumes or do I manually need to able these before continuing ? the RadioLib very dependent on the SPI bus so just need to see what needs to be setup after sleep |
They will be in the state is was before. But some small delay would help for the clock to stablized before running any crucial clock dependant process like SPI. |
Interesting, Okay Ill try a small delay, my baud is already 9600 see if it solves it.
|
Still struggling with this, the 100ms delay after wakeup helped getting the system up and running again, but now reagrdless what I do, current does not drop below 500uA is I use lowpower idle. the current is around 1.2mA if i use power down its 500uA im expecting closer to 5uA the only thing connected is a radio in SPI bus and a output on pin 5 to shut off the power to the radio while sleeping. I suspect the library puts the GPIOs in some sort of state during sleep and some leakage current is either going thru the GPIO pin or the SPI pins, |
Hello, I'm trying to use low power library with periodically wakeup in conjuction with Radiolib library for lorawan transmissions but it's not working.
If I use LP library just with blink example I can get it to work as expected. If I use the radio lib library on its own it works.
If I combine them ( and use the led to see if the wakeup happens it ) does not work at all. I'll post the code on following comment but I wanted to clarify the opperation first.
I see serial. Print event almost do not work after wakeup. Do I manually need to enable all system again with UART0_ON; statement or how is it expected to work ?
I tried power down and idle but seem to kill the SPI bus which I need to take to radio. I moved all initial of the radio lib and serial lib to main loop to make sure they get restarted but the serial window just puts out garbage and the led does not flash again.
The text was updated successfully, but these errors were encountered: