GithubHelp home page GithubHelp logo

Comments (3)

ceekdee avatar ceekdee commented on June 10, 2024

The "index out of bounds: the len is 9 but the index is 9" is an indication that the first SPI read operation attempted failed. It is unclear to me why the enable_public_network setting should have an effect on that.

Are you running one of the Embassy examples, and what combination of MCU/LoRa board are you running? The first thing to look at is the setup for SPI.

from lora-phy.

vDorst avatar vDorst commented on June 10, 2024

I found it, SPI frequency is way to high, 64MHz instead of the max 16 Mhz.
64 Mhz is used for the LCD which is also sharing the SPI bus.

Yes, I am using the embassy examples but I combined two of them to have LCD and LORA.
But sharing SPI bus is not so easy, It works I think but it is really ugly because LORA lib don´t accept SpiDevice.
So I had to write a wrapper around SpiBus to make it work.

This is the hardware I use.
Baseboard: https://www.waveshare.com/rp2040-lcd-0.96.htm (Modified: Moved LCD reset line to GP13)
Loraboard: https://www.waveshare.com/wiki/Pico-LoRa-SX1262

from lora-phy.

ceekdee avatar ceekdee commented on June 10, 2024

This is excellent information. lora-phy assumes ownership of the SPI bus because there is at least one MCU/LoRa chip combo that makes doing anything else problematic, if I remember correctly. I am glad to know there is an identified need for lora-phy to share the bus in some cases and have opened an issue for future consideration - unfortunately, I will be unavailable to work on that until the end of October.

Feel free to provide additional guidance in the issue I have opened.

from lora-phy.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.