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

Two devices to one SPI on ESP32 S3, program halted #3517

Open
tonbor opened this issue Oct 20, 2024 · 0 comments
Open

Two devices to one SPI on ESP32 S3, program halted #3517

tonbor opened this issue Oct 20, 2024 · 0 comments

Comments

@tonbor
Copy link

tonbor commented Oct 20, 2024

Only raise issues for problems with the library and/or provided examples. Post questions, comments and useful tips etc in the "Discussions" section.

To minimise effort to resolve issues the following should be provided as a minimum:

  1. A Two devices to one SPI on ESP32 S3, program halted. Init TFT ili9488 init radiolib CC1101. Same spi, different cs/ss. TFT starts, get output to screen. cc1101 get input, working ok. Then screenoutput to TFT program halted. Just nothing.
    . description of the problem and the conditions that cause it to occur
  2. IDE (e.g. Arduino or PlatformIO) Arduino 2.3
  3. TFT_eSPI library version latest, the problem may have been resolved!) from the Manage Libraries... menu
  4. Board package version (e.g. 3.0.5) available from the Boards Manager... menu
  5. Procesor, ESP32 S3 etc
  6. TFT driver (e.g. ILI9488), a link to the vendors product web page is useful too.
  7. Interface type (SPI )

Plus further information as appropriate to the problem:

  1. TFT to processor connections used
  2. A zip file containing your setup file
    TFT
    #define ILI9488_DRIVER
    #define USE_HSPI_PORT // HSPI pins 10-13
    // Typical board default pins - change to match your board
    #define TFT_CS 10 // 10 or 34 (FSPI CS0)
    #define TFT_MOSI 11 // 11 or 35 (FSPI D)
    #define TFT_SCLK 12 // 12 or 36 (FSPI CLK)
    #define TFT_MISO -1 // 13 or 37 (FSPI Q)

// Use pins in range 0-31
#define TFT_DC 14
#define TFT_RST 18
//#define TOUCH_CS 16 // Optional for touch screen

Radiolib
defined(ARDUINO_ESP32S3_DEV)

#define PIN_RECEIVER_CS 15

// CC1101: GDO0 / RFM95W/SX127x: G0
#define PIN_RECEIVER_IRQ  17

// CC1101: GDO2 / RFM95W/SX127x: G1
#define PIN_RECEIVER_GPIO 8

// RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
#define PIN_RECEIVER_RST  RADIOLIB_NC

default: ESP32 S3
MOSI 11 // 11
SCLK 12 // 12
MISO 13 // 13
4. A zip file containing a simple and complete example sketch that demonstrates the problem but needs no special hardware sensors or libraries.
5. Screen shot pictures showing the problem (just drag and drop in message window)

The idea is to provide sufficient information so I can setup the exact same (or sufficiently similar) scenario to investigate and resolve the issue without having a tedious ping-pong of Q&A.

DO NOT paste code directly into the issue. To correctly format code put three ticks ( ` character on key next to "1" key) at the start and end of short pasted code segments to avoid format/markup anomolies. See here:

Example output:

  Serial.begin(115200);
  tft.init();

see jgromes/RadioLib#1283

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

1 participant