rossumur / esp_8_bit

Atari 8 bit computers, NES and SMS game consoles on your TV with nothing more than a ESP32 and a sense of nostalgia
1.05k stars 152 forks source link

Connecting Bluetooth controllers #60

Open Yan-007 opened 1 year ago

Yan-007 commented 1 year ago

When I enable a remote bluetooth controller near to the device in loops rebooting with following exception:

video_init
98:B6:E9:9A:1A:5D:082500 input device added
frame_time:9537 drawn:121 displayed:119 blit_ticks:2920->3328, isr time:27.99%
frame_time:9561 drawn:241 displayed:239 blit_ticks:2920->3321, isr time:28.13%
frame_time:9541 drawn:361 displayed:359 blit_ticks:2920->3327, isr time:28.12%
s:64 L2CAP_OPENING
ASSERT_ERR(lm_env.local_name), in lm.c at line 72
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0)
Core 0 register dump:
PC      : 0x400882d1  PS      : 0x00060934  A0      : 0x80119ec5  A1      : 0x3ffceca0  
A2      : 0x00000001  A3      : 0x00000001  A4      : 0x00000000  A5      : 0x3ffbdbb4  
A6      : 0x00000048  A7      : 0x00000000  A8      : 0x800882cc  A9      : 0x3ffcec80  
A10     : 0x00000032  A11     : 0x00000032  A12     : 0x00000010  A13     : 0xffffffff  
A14     : 0x00000000  A15     : 0xfffffffd  SAR     : 0x00000004  EXCCAUSE: 0x00000005  
EXCVADDR: 0x00000000  LBEG    : 0x40088275  LEND    : 0x4008827c  LCOUNT  : 0x00000000  

Backtrace: 0x400882d1:0x3ffceca0 0x40119ec2:0x3ffcecc0 0x4002509e:0x3ffcece0 0x40111a51:0x3ffced20 0x4001a637:0x3ffced40 0x40019d11:0x3ffced70 0x40055b4d:0x3ffced90 0x4010e907:0x3ffcedb0 0x4010ee5d:0x3ffcedd0 0x4008dc9d:0x3ffcee00

Core 1 register dump:
PC      : 0x40085b98  PS      : 0x00060134  A0      : 0x80085bea  A1      : 0x3ffca770  
A2      : 0x3ffbd398  A3      : 0xffffffff  A4      : 0x3ffbb7c4  A5      : 0x00000000  
A6      : 0x00000000  A7      : 0x00000000  A8      : 0x00000000  A9      : 0x3ffca730  
A10     : 0x00000000  A11     : 0x00000000  A12     : 0x00000000  A13     : 0x00000001  
A14     : 0x00060d20  A15     : 0x00000000  SAR     : 0x00000004  EXCCAUSE: 0x00000005  
EXCVADDR: 0x00000000  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0x00000000  

Backtrace: 0x40085b98:0x3ffca770 0x40085be7:0x3ffca790 0x400e1bc9:0x3ffca7b0 0x400e24f9:0x3ffca7d0 0x400e335a:0x3ffca800 0x400e33d1:0x3ffca830 0x400e3ecf:0x3ffca850 0x400d29bc:0x3ffca870 0x400e4d09:0x3ffca890 0x4008dc9d:0x3ffca8b0

Rebooting...
ets Jul 29 2019 12:21:46

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:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8

When the controller is disabled the device works fine, but I can't do anything because no input device connected.

RoCorbera commented 8 months ago

What is the ESP32 Arduino Core version you are using to build it?

Try ESP32 Arduino Core 1.0.4

demik commented 3 months ago

Is this a Wii controller ? There is no code for switch controllers

Yan-007 commented 2 months ago

Is this a Wii controller ? There is no code for switch controllers

No, I was trying to connect Xbox controller (actually an alternative, but it shows up and working as Xbox does)

demik commented 1 month ago

No, I was trying to connect Xbox controller (actually an alternative, but it shows up and working as Xbox does)

To my limited knowledge that cannot work. The code only contains a driver for Wii controller