Hello everyone,
A while back I created an nRF52832 + E22 SX1262 board with on-board solar charging called the LiFePO4wered/LoRa:
The battery and charging system all works, that’s my special sauce and I’m more of a hardware guy. But when I tried to get any LoRaWAN software to run on it, I hit a brick wall. Many brick walls called Zephyr, Arduino, SX127x, RFM95, enough that I gave up on it. I can’t produce hardware without some known software support. And seriously, since I didn’t succeed in getting a single LoRa packet out of it, I can’t be certain it works at all.
I didn’t know about Meshtastic at the time, so I was happy to find this. Existing support for both nRF52 and the E22 SX1262 module!
Alas, no cigar. Just another brick wall. Using the RAK815 as a base and following the guides I found, I ported the software to this hardware. But just as with every other attempt to make any LoRa software run on this hardware, it does absolutely nothing.
You would think at this point the hardware is faulty, but that’s not the case. There is a single way I can get software to run on this and that is with Sandeep Mistry’s Arduino core: GitHub - sandeepmistry/arduino-nRF5: Arduino Core for Nordic Semiconductor nRF5 based boards
If I use that to first flash a soft device from the Arduino menu, I can then run a simple blinky that also prints stuff to a serial port. I haven’t tried more since the point was just to prove that the hardware is not faulty and it can run code. Literally anything else I’ve tried to flash to this board does nothing at all. No indication that any code runs at all.
What is really bizarre is that say I have some code running using Sandeep Mistry’s Arduino. Then I go to either Adafruit’s Arduino or Meshtastic (I guess they are the same under the hood, but for one I use the Arduino IDE and for the other PIO), compile some code and flash it. My J-Link will flash the code, verify it (and it’s correct), but when the board resets, it is still running the Sandeep Mistry Arduino code! How is that even possible?
I’m at my wits end. I do have plenty of embedded software experience as well (though I much prefer hardware), but I’m ready to throw the towel. It seems I made a big mistake when I designed this around the nRF52832. What is a person to do if the chip doesn’t even run the code programmed? Can anyone help me with this or have any idea what might be going on? Many thanks in advance.
Patrick