tttapa / Control-Surface

Arduino library for creating MIDI controllers and other MIDI devices.
GNU General Public License v3.0
1.19k stars 134 forks source link

Reseting in loop TTGO EST32 v1.4 MINI32 #646

Open henriquegmatos opened 2 years ago

henriquegmatos commented 2 years ago

Hi Dear,

I hope you can help me.

Im try to create a bidirectional pipe between Serial1 and BLEMIDI but a get autoreset.

I´m using a TTGO ESP32 v1.4 MINI32 Lilygo.

What am I doing wrong?

Best regards.

#include <Control_Surface.h>
#include <MIDI_Interfaces/BluetoothMIDI_Interface.hpp>

BluetoothMIDI_Interface MIDI_BLE;
HardwareSerialMIDI_Interface MIDI_SERIAL = Serial1;

BidirectionalMIDI_Pipe pipes;

void setup() {

  Serial.begin(115200);
  Serial1.begin(31250, SERIAL_8N1,25 ,27);  // TTGO ESP32 v1.4 Wover MINI32

  Serial.println("Starting");

  pinMode(19, OUTPUT);
  digitalWrite(19, HIGH);

  MIDI_BLE | pipes | MIDI_SERIAL; 
  MIDI_Interface::beginAll();

  delay(2000);
}

void loop() {
  MIDI_Interface::updateAll();
}
----------------------------------------Serial Console Output
Starting
Guru Meditation Error: Core  1 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400d4dcc: ffffffff ffffffff ffffffff
Core 1 register dump:
PC      : 0x400d4dd0  PS      : 0x00060b30  A0      : 0x800d4704  A1      : 0x3ffc7ae0  
A2      : 0x3ffbdee0  A3      : 0x0000000a  A4      : 0x3ffbdee0  A5      : 0x00000009  
A6      : 0x0000000a  A7      : 0x00000004  A8      : 0x800d57d1  A9      : 0x3ffc7ac0  
A10     : 0x3ffbdee0  A11     : 0x400d5004  A12     : 0x00000000  A13     : 0x00000000  
A14     : 0x00000000  A15     : 0x3f400304  SAR     : 0x00000016  EXCCAUSE: 0x00000000  
EXCVADDR: 0x00000000  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0xffffffff  

ELF file SHA256: 0000000000000000

Backtrace: 0x400d4dd0:0x3ffc7ae0 0x400d4701:0x3ffc7b20 0x400d1309:0x3ffc7b60 0x400d1316:0x3ffc7b90 0x400d15c5:0x3ffc7bb0 0x400d4cda:0x3ffc7be0 0x4008ffea:0x3ffc7c00

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944
load:0x40080400,len:6388
entry 0x400806b4
tttapa commented 2 years ago

Are you using the latest version, specifically the one with this patch? 399ad2372c844ef0b7866a6c513cd1b80d06e755

Please decode the backtrace using https://github.com/me-no-dev/EspExceptionDecoder.