Skip to content
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

Sporadic reboots #37

Open
NetForces opened this issue May 17, 2024 · 7 comments
Open

Sporadic reboots #37

NetForces opened this issue May 17, 2024 · 7 comments
Assignees

Comments

@NetForces
Copy link

I have been having sporadic reboots when using this. It might have to do with the fact that my device sleeps, but I am not sure.

When a reboot occurs, I get the following in the console:

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 271414342, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
entry 0x400805e4

I will attempt to provide the minimal code to reproduce this situation in the next couple of days but if anyone had this issue and know a fix it would be appreciated.

@LeonieFierz
Copy link
Member

Hi @NetForces

we are not aware of any issues with reboots when using the arduino-ble-gadget library.
Depending on your setup and the sensor used, it might be that the power supply is not sufficient. Which sensor do you have connected?

Best, Léonie

@LeonieFierz LeonieFierz self-assigned this May 21, 2024
@NetForces
Copy link
Author

It's the SCD-41.

I will revalidate, but if I remove the part of my code that does the light sleep, the sporadic reboots go away. Unfortunately, light sleep is required in my application as it runs off a small battery.

@LeonieFierz
Copy link
Member

As you write that you are running from a small battery, please note that the SCD41 draws up to 200mA during measurement.

Let us know how it goes and we are happy to help if you have further questions regarding the sensor.

@NetForces
Copy link
Author

I doubt that it’s the power draw because without adding the arduino-ble-gadget library it is 100% stable. I know bluetooth will draw a little more current, but not that much. The battery powering my design is a 200mAh, and I'm running the SCD-41 in low power mode.

@LeonieFierz
Copy link
Member

The SCD41 peak power during measurement is 200mA, the low power mode just does the measurement less often and puts the sensor to sleep in between the measurements.

We have not worked with the light sleep mode on Arduino so I do not have any experience with it, but if you wake the board up and do the measurement I could imagine that the battery voltage could drop due to the power draw from startup and measurement. To see what is happening it would make sense to measure the voltage.

@NetForces
Copy link
Author

So I had some more time to spend on this and it is not a power issue.

I am plugged in the USB port (for charging, power and serial output and I removed the SCD-41 and I get the same sporadic reboots just doing mock reading (returning random values).

I will try to provide a minimal firmware code that reproduces this in the next days.

@LeonieFierz
Copy link
Member

Hi @NetForces
did you find time to create the minimal firmware code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants