Qudor-Engineer / DMD32

A library for driving the Freetronics 512 pixel dot matrix LED display "DMD", a 32 x 16 layout using ESP32.
GNU General Public License v3.0
29 stars 19 forks source link

Crash when used alongside BLE libraries #1

Open BodoMinea opened 3 years ago

BodoMinea commented 3 years ago

Hi,

I just wanted to ask if you have tried using this library alongside some Bluetooth (BLE) functionality. The test sketch examples for fine, but after adding the BLE dependencies

#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEServer.h>

and some code that listens for a connection, the ESP32 just boot-loops with an error.

freertos/queue.c:1446 (xQueueGenericReceive)- assert failed! abort() was called at PC 0x4008ddf7 on core 1 Rebooting...

Is there some forceful limitation of clock speed in DMD32 or something that could make the Bluetooth peripheral fail to initialize? The library works fine otherwise, albeit with some quirks (I found that if I try display something on the dot matrix display from Setup or from Loop but without a delay after, the ESP will crash and reboot, just like when adding Bluetooth to an otherwise working code).

Thanks!

Qudor-Engineer commented 3 years ago

Unfortunately I didn't try the library with the built-in ble

Qudor-Engineer commented 3 years ago

The problem with the hardware timer, just change the hardware timer from 0 to 1 or 2

BodoMinea commented 3 years ago

I will try that when I have the panels on hand and come back with feedback. Thanks.

BodoMinea commented 3 years ago

I am not sure if this was what you are suggesting but I changed timer = timerBegin(0, cpuClock, true); to timer = timerBegin(1, cpuClock, true); in my sketch and saw some improvement - now the crash is not on startup and I can display some stuff with dmd while still using bluetooth. However, after some time the code crashes with the same message.

I will also try hardware timer 2 some time later.

Do you know if there is some other hardcoded mention or use of the 0 timer?

microElabDevelop commented 2 years ago

@BodoMinea hi u find any solution about crashing. bcz i am facing same issue . i m using dmd32 with espNow . for wireless display.