I keep coming back to this as I have not been consistently able to put the nRF9151 Feather in deep sleep mode. Let me explain….
1) I tested with the ‘deep_sleep’ sample code and module enters deep sleep mode as expected.
2) I took the same baseline code and added my code to it - module enters deep sleep mode. However, it cannot open: littlefs() - ‘issue #1’
[00:00:00.252,716] <inf> spi_nor: w25q128jv@0: SFDP v 1.5 AP ff with 1 PH
[00:00:00.252,746] <inf> spi_nor: PH0: ff00 rev 1.5: 16 DW @ 80
[00:00:00.252,929] <inf> spi_nor: w25q128jv@0: 16 MiBy flash
[00:00:00.259,185] <inf> lis2dh: lis2dh@19: int1 on gpio@842500.19
[00:00:00.259,246] <inf> lis2dh: lis2dh@19: int2 on gpio@842500.12
[00:00:00.260,986] <inf> lis2dh: fs=2, odr=0x4 lp_en=0x0 scale=9576
[00:00:00.270,355] <inf> littlefs: littlefs partition at /lfs
[00:00:00.270,385] <inf> littlefs: LittleFS version 2.9, disk version 2.1
[00:00:00.270,416] <err> littlefs: can't open flash area 0
[00:00:00.270,416] <err> fs: fs mount error (-19)
[00:00:00.270,477] <err> littlefs: Automount /lfs failed: -19
*** Booting nRF Connect SDK v3.0.1-9eb5615da66b ***
*** Using Zephyr OS v4.0.99-77f865b8f8d0 ***
3) My original code is based off of the ‘Blinky’ sample code. Everything works well except I get an error when the following code is executed:
ret = mfd_npm1300_reg_read(pmic, NPM1300_BUCK_BASE, NPM1300_BUCK_BUCKCTRL0,
®);
with the error: Failed to set VBUSINLIM. Err: -5
.
of-course, the same line of code works well when using the deep_sleep sample code baseline.
NOTE: my I2C connected peripherals: accelerometer, TOF sensors work just fine and the LEDs blink as expected.
QQ: Besides making sure all “CONFIG_….” values are set correctly in prj.conf and circuitdojo_feather_nrf9151_ns.conf, are there any other files I need to touch to make this work?
I am at a loss as to why one baseline code works and device enters deep_sleep mode as expected but file-system can’t be loaded while other baseline code works and doesn’t enter deep_sleep mode but file-system works just fine.
HELP!