SO,
Hold the sauce on that info… C’mon man!(espn) Steve
Blaming PlatformIO when you let Claude AI take the wheel on brand-new, bleeding-edge silicon? That’s like blaming the wrench because the apprentice tried using it upside down!
The nRF54L architecture doesn’t have an official, packaged board manifest in PlatformIO’s central registry yet. When you ask an LLM to cook up a custom platformio.ini for pre-release hardware, it’s just going to hallucinate generic nRF52/Zephyr directives, toolchain paths, and upload flags, which is why it wouldn’t flash or boot cleanly.
The phantom wakeups were just early bugs in the underlying core library, which is why pulling the official v1.0.17 update in the Arduino Board Manager smoothed everything right out.
Glad you got the sleep cycle, GRTC, and TX power dialed in, though—that 50s sleep / 0.5s wake profile is where the LM20A really starts pulling away from the C6.
In my rough experiment, under conditions where the LM20A advertised BME280 weather data five times at a transmission power of 8 dBm over a 0.5-second period and then slept for 59.5 seconds in the nPM1300’s hibernate mode, the average current over 60 seconds was 35 µA. It looks like it could run for over a month even on a 100 mAh battery.
For reference
Claude (who I like to think is named after the famous lion tamer, Claude Bottom ) actually found the officially recommended Seeed toolchain with a download from a Seeed website, so it was a fairly reasonable choice. Admittedly, some of his other choices have not been so great. He sometimes fantasises complex reasons for relatively simple bugs. He’s great for productivity but you do have to check everything and don’t let him code until you get him to feed back his understanding of requirements and proposed plan before giving a final go ahead. In that respect, he is exactly like some of the junior programmers who worked for me years ago. Maybe having had that experience helps?
I have to confess that I’m not using the battery monitor as there wasn’t room for battery status in the advertisement payload. My website will tell me after an hour when the battery has run out and it’s simple to recharge the device, so I decided that a major restructuring of the payload wasn’t worth the effort.
I’m reviving this thread after a long while because I’ve hit a bit of an enigma.
I built my device, discovered that using the nPM1300 is NOT optional if you want to run off battery power, have everything working perfectly on USB power, but the device still consumes battery power like there is no tomorrow: 2-3mA continuously.
I thought it would help diagnose and fix this problem, so I built a second device that is identical to the first. I charged, it switched to battery power and…IT WORKS PERFECTLY!!!
So, I returned to the first device and, one-by-one, I swapped out the components in it (PCB, BME280, battery). It still drains at 2-3mA while my other device is ~100uA average. This now points to the LM20A itself as the culprit. OK, there is also the possibility that it is the Grove connector cable but this is just 4 wires and I checked that there are no shorts in it.
Anyway, I’ve either damaged the LM20A by running for two minutes with the wrong battery polarity, or it is defective. I know the batteries that I buy need a quick fix to rewire the connector plug but I accidentally did this twice for one battery. I quickly spotted the mistake and fixed it and the LM20A was actually on USB power at the time. So, I’m leaning towards the theory that the LM20A is somehow defective. This might be fixable as I know there is a “factory reset” script available for the nRF54L15. Is there a similar script for the LM20A? My own searches haven’t uncovered one but its existence may not be widely known.
So , I can feel the puzzlement I can say it is defective. Once connected backwards they are not happy true, not damaged , but then add the USB while it’s reversed and all bets are OFF i.e. “Cooked” the device goes bad.
No, there is NO way to undo it. I believe the Charge “Sense” circuit is damaged.
This is also the case with the nRF52840 sense also.
HTH
GL PJ
FYI, I notice the batteries also come reversed in the connector (+) , (-) so attention and care is required to connect the Xiao.