Open DerArtz opened 5 years ago
I haven't seen this before. It could be that an update to the SD library is requiring more RAM free. Try increasing the value that's passed to matrix.begin()
, which tells SmartMatrix Library how much RAM to leave free (in this case for the SD library's mallocs) when it allocating buffers for refreshing the panels.
I have tried that with no luck. Went as high as 64000 with no improvement.
pin 33 is used for generating a PWM signal. It's a feature that's not being used at the moment and can be removed without losing any existing functionality. I think just removing the call to setupTimer()
is enough to disable this and free up that pin. Give it a try.
Still having the same issue. Also then tried to move the CS to pin 23 and got the same result.
I'm stumped... Can you try the same SD card pins as the SmartLED Shield ESP32 prototype uses?
Well I am stumped too. Maybe I need to clean up any confusion with my setup. I do not have the latching circuitry setup as described in the schematic you are referring to.
As described in MatrixHardware_ESP32_V0.h
Name | Pin |
---|---|
R1_PIN | 2 |
G1_PIN | 15 |
B1_PIN | 4 |
R2_PIN | 16 |
G2_PIN | 27 |
B2_PIN | 17 |
A_PIN | 5 |
B_PIN | 18 |
C_PIN | 19 |
D_PIN | 21 |
E_PIN | 12 |
LAT_PIN | 26 |
OE_PIN | 25 |
CLK_PIN | 22 |
As described in SmartLEDShield_ESP32_THT_V0_sch.pdf
SD Card | ESP32S Desc | ESP32S Pin |
---|---|---|
DATA_OUT | MISO | 19 |
DATA_IN | MOSI | 23 |
SCLK | SCK | 18 |
CS | CS | 5 |
The problem from here is the dual use of the pins 18 & 19. Am I wrong in assuming that I do not need the extra circuitry of the the multiplexer/latch? I have no plans on adding the APA102 stuff to the project.
You’ll have to move some pins around, you can’t share the SD pins with the HUB75 pins
Understand that. I have also used the following for the SD card wiring with the same result.
SD Card | ESP32S Desc | ESP32S Pin |
---|---|---|
DATA_OUT | MISO | 33 |
DATA_IN | MOSI | 13 |
SCLK | SCK | 14 |
CS | CS | 23 |
Can you give a suggestion of a viable pinout?
The only pinout I know is working with the SD card is the one used in the SmartLED Shield ESP32 V0, requiring external parts.
You can move the HUB75 pins to any free GPIO that supports output mode. Make sure you're not using the same pins for SD and HUB75. I'm not sure about disabling the PWM pins as we talked about before, I haven't tried disabling them.
I am unable to get this sketch to work due to
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Currently I have the panel connected as outlined in the MatrixHardware_ESP32_V0.h with the SD card connected HSPI gpio pins (12,13,14,33). In order to do this I modified the setup function to initialize SPI on these pins and also modifiedinitSdCard
to take in a SPIClass argument. From the output, it looks like theenumerateGIFFiles
function completes without issue but there is a problem when callingopenGifFilenameByIndex
.Output:
Decoded Backtrace