wiredopposite / OGX-Wireless-Lite

Bluetooth LE gamepad adapter for multiple game consoles.
Other
14 stars 0 forks source link

Issue with constant resets #2

Open DynaMight1124 opened 2 months ago

DynaMight1124 commented 2 months ago

Hi

I got a generic adaptor (USBC), I flashed via the Adafruit tool, it reported no errors however when I plugged it back into the PC again, I could see it was constantly resetting every few seconds. I double checked the offsets and flashed again but it was correct and the same thing happened again.

I did an erase flash in the Adafruit tool, interestingly this did might some slight changes, it meant I could connect via serial output but it is still rebooting.

Heres the Adafruit log inc the erase: ESP Web Flasher loaded. Connecting... Connected successfully. Try hard reset. Chip type ESP32-S3 Connected to ESP32-S3 MAC Address: 24:58:7C:DA:39:C8 Uploading stub... Running stub... Stub is now running... Detecting Flash Size FlashId: 0x182085 Flash Manufacturer: 85 Flash Device: 2018 Auto-detected Flash size: 16MB Erasing flash memory. Please wait... Finished. Took 26205ms to erase. Image header, Magic=0xE9, FlashMode=0x02, FlashSizeFreq=0x2F Writing data with filesize: 20928 Erase size 20928, blocks 2, block size 0x4000, offset 0x1000, encrypted no Took 434ms to write 20928 bytes Erase size 0, blocks 0, block size 0x4000, offset 0x0000, encrypted no Image header, Magic=0xAA, FlashMode=0x01, FlashSizeFreq=0x02 Writing data with filesize: 3072 Erase size 3072, blocks 1, block size 0x4000, offset 0x8000, encrypted no Took 81ms to write 3072 bytes Erase size 0, blocks 0, block size 0x4000, offset 0x0000, encrypted no Image header, Magic=0xE9, FlashMode=0x02, FlashSizeFreq=0x2F Writing data with filesize: 709168 Erase size 709168, blocks 44, block size 0x4000, offset 0x10000, encrypted no Took 5784ms to write 709168 bytes Erase size 0, blocks 0, block size 0x4000, offset 0x0000, encrypted no To run the new firmware, please reset your device.

Heres the serial output: ESP-ROM:esp32s3-20210327 ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x7 (TG0WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x40043ac8 SPIWP:0xee mode:DIO, clock div:1 load:0x3fcd0108,len:0x15c8 load:0x63616620,len:0x79726f74 Invalid image block, can't boot. ets_main.c 329 invalid header: 0xffffffff <-- this repeats until it resets then continues again in a loop.

Any idea what I'm doing wrong?

I am unable to connect to it via the Web App, when I click on Connect nothing happens, tried Chrome and Edge, tried clearing cache. I assume its meant to bring up a similar com port window as the Adafruit one? (it was disconnected and closed before I tried the web app btw)

Thanks

BSwitchblade88 commented 1 month ago

I had exactly the same problem until I changed the bootloader to 0x0000 instead of 0x1000; I wasn't entirely sure why it's specified in the wrong place but it made sense to me to be the first block of memory.

Once that flashed successfully I could see it to connect to via Chrome and the controller could pair as expected, so I knew that was the cause of my issues.

DynaMight1124 commented 1 month ago

Hi, thanks for that. It does look like it has resolved the issue. Seems obvious now you've mentioned it :)

Strangely Win11 picks up the device as a Unknown device and cant locate any drivers but serial monitor does show its working.

Thanks for you help.