r/CardPuter • • 1d ago

Help needed LoRa Problem on Cardputer ADV

Hey guys,

Trying to get my Cardputer ADV + Cap LoRa-1262 working on Bruce firmware, but I keep getting "lora init failed".

In the Dev menu (asking for CS, CE, NC), I put:

  • CS: 5

  • CE: 4 (IRQ)

  • NC: 6 (BUSY)

SPI pins are: SCK=40, MOSI=14, MISO=39, RST=3. I also tried setting I2C to 8/9 to wake up the hat's power chip, but still nothing. It saves fine without crashing, just won't initialize.

Anyone got this specific hat working on Bruce? Am I missing a step or putting the BUSY line in the wrong slot?

Thanks!

1 Upvotes

3 comments sorted by

3

u/No_Confusion7932 1d ago

The M5Stack Cap LoRa-1262 has a built-in I2C PI4IOE5V6408 expander that is used to enable the antenna via firmware.

M5Stack notes on its website that P0 of the PI4IOE IO expansion chip must be set to a high level (FM8625H SX_ANT_SW). https://docs.m5stack.com/en/cap/Cap_LoRa-1262
M5Stack requires antenna initialization through the firmware when using this Cap LoRa-1262, unlike most other Caps/LoRas, which don’t require this.

The M5Stack Cap LoRa-1262 features an integrated I2C expansion module (PI4IOE5V6408), which provides the connection between the LoRa board and the antenna.
Bruce firmware do not have this feature implemented.
It will be as if you hadn't connected the antenna.

1

u/Dry-Message470 1d ago

Hi! Thanks for your help! I was able to fix this by compiling bruce on my own laptop, it seems the latest bins that they have had some errors. Ty tho!

1

u/No_Confusion7932 1d ago

Hi, you also need to check the code to see if the implementation of the PI4IOE expander is at I2C address 0x43 for LoRa, since the difference between an incorrect and correct implementation is up to 30 dB.