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

QSPI branch - E (1006) spi_master: spi_master_init_driver(236): invalid core id #609

Open
Westcott1 opened this issue Aug 29, 2024 · 5 comments
Labels
pinned exempt from stale bot

Comments

@Westcott1
Copy link

Many thanks to Tobozo for setting up this new panel for me.
Running the code below gives this error in tft.init(); -
E (1006) spi_master: spi_master_init_driver(236): invalid core id
Using instead the SPI bus type (in this branch) runs without this error - but of course no graphics!
Assigning a negative number to cfg.pin_io2 in the QSPI _bus_instance also runs without this error - but gives others.

Environment ( 実行環境 )

  • Board: ESP32-S3
  • Panel Driver IC: Panel_NV3041A
  • Bus type: QSPI
  • LovyanGFX 1.1.16
  • FrameWork version: esp32 v3.1.0
  • Build Environment: ArduinoIDE
  • Operating System: Windows

Problem Description ( 問題の内容 )

Running the code below gives the error -
E (1006) spi_master: spi_master_init_driver(236): invalid core id

Expected Behaviour ( 期待される動作 )

Display to display something.

Actual Behaviour ( 実際の動作 )

Running the code below gives the error -
E (1006) spi_master: spi_master_init_driver(236): invalid core id

Steps to reproduce ( 再現のための前提条件 )

  1. Run the code below

Code to reproduce this issue ( 再現させるためのコード )

Please submit complete source code that can reproduce your problem.
あなたの問題を再現できる完全なソースコードを提示してください。

#include <LovyanGFX.hpp>
#include <lgfx_user/LGFX_JC4827W543_4.3inch_ESP32S3.hpp>

LGFX tft;

void setup()
{
  tft.init();
}

void loop()
{
  tft.clear();
  tft.println("Hello World!");
  delay(1000);
}

@tobozo
Copy link
Collaborator

tobozo commented Aug 30, 2024

E (1006) spi_master: spi_master_init_driver(236): invalid core id

the error message is directly related to isr_cpu_id so I guess you can try to play with cfg.isr_cpu_id value in bus config:

    auto cfg = _bus_instance.config();
    cfg.isr_cpu_id = 1; // or 0

@Westcott1
Copy link
Author

Hi Tobozo,

Compilation error: 'struct lgfx::v1::Bus_QSPI::config_t' has no member named 'isr_cpu_id'
So I added it to Bus_QSPI.hpp, and tried values of both 0 and 1.
No luck, it still hangs in init()
I also get this -
pragma message "Quad SPI.begin() postponed to core 3.1.0, see ...
I'm using core 3.1.0-RC1

@tobozo
Copy link
Collaborator

tobozo commented Sep 6, 2024

Hi Hamish,

the message ""Quad SPI.begin() postponed to core 3.1.0" is related to this issue, which will stay open until the SPI library implements QSPI. Unfortunately 3.1.0-RC1 does not implement it yet.

is this product page featuring the same model?

aliexpress claims it can be delivered in two weeks so I can eventually order a unit

@Westcott1
Copy link
Author

Hi Tobozo,

Thanks for all your help!
I'll wait patiently for your implementation of QSPI.
In the meantime I'll carry on using Arduino_GFX for this board to get the LVGL bit working..
Mine is the capacitive touch version - AliExpress

Copy link

github-actions bot commented Oct 6, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Inactive issues label Oct 6, 2024
@tobozo tobozo added pinned exempt from stale bot and removed stale Inactive issues labels Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pinned exempt from stale bot
Projects
None yet
Development

No branches or pull requests

2 participants