JonnyHaystack / HayBox

Modular cross-platform firmware for digital or mixed analog/digital game controllers
GNU General Public License v3.0
166 stars 168 forks source link

Not working for b0xx #22

Closed avahe-kellenberger closed 1 year ago

avahe-kellenberger commented 1 year ago

EDIT: Solution is to hold the A button while plugging in via a Gamecube Controller Adapter

I have a b0xx that I use for smash ultimate, and was told to give HayBox a try in order to fix the SOCD lockout issue.

None of the buttons seem to do anything, I can't leave the switch's home menu.

Any thoughts on debugging, or some step I may have missed?


NOTE: I tried this both on Linux and Windows 10 with the same results, using the most recent commit 9fb52af6f320e61d3055a9fa45070e2efc839885

Logs

Build

 *  Executing task: platformio run --environment b0xx_r2 

Processing b0xx_r2 (board: leonardo; platform: atmelavr; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/leonardo.html
PLATFORM: Atmel AVR (4.0.0) > Arduino Leonardo
HARDWARE: ATMEGA32U4 16MHz, 2.50KB RAM, 28KB Flash
DEBUG: Current (simavr) On-board (simavr)
PACKAGES: 
 - framework-arduino-avr @ 5.1.0 
 - toolchain-atmelavr @ 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain+, Compatibility ~ soft
Found 10 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Nintendo @ 1.4.0
|-- Wire @ 1.0
|-- arduino-nunchuk @ 0.0.0+20220924193459
|   |-- Wire @ 1.0
|-- Joystick @ 2.1.1
|-- Keyboard @ 1.0.4
|   |-- HID @ 1.0
|-- HID @ 1.0
Building in release mode
Compiling .pio/build/b0xx_r2/src/config/b0xx_r2/config.cpp.o
Linking .pio/build/b0xx_r2/firmware.elf
Checking size .pio/build/b0xx_r2/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [===       ]  32.1% (used 823 bytes from 2560 bytes)
Flash: [========  ]  84.4% (used 24204 bytes from 28672 bytes)
Building .pio/build/b0xx_r2/firmware.hex
============================================================================== [SUCCESS] Took 1.07 seconds ==============================================================================

Environment    Status    Duration
-------------  --------  ------------
b0xx_r2        SUCCESS   00:00:01.069
============================================================================== 1 succeeded in 00:00:01.069 ==============================================================================
 *  Terminal will be reused by tasks, press any key to close it. 

Upload

 *  Executing task: platformio run --target upload --environment b0xx_r2 

Processing b0xx_r2 (board: leonardo; platform: atmelavr; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/leonardo.html
PLATFORM: Atmel AVR (4.0.0) > Arduino Leonardo
HARDWARE: ATMEGA32U4 16MHz, 2.50KB RAM, 28KB Flash
DEBUG: Current (simavr) On-board (simavr)
PACKAGES: 
 - framework-arduino-avr @ 5.1.0 
 - tool-avrdude @ 1.60300.200527 (6.3.0) 
 - toolchain-atmelavr @ 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain+, Compatibility ~ soft
Found 10 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Nintendo @ 1.4.0
|-- Wire @ 1.0
|-- arduino-nunchuk @ 0.0.0+20220924193459
|   |-- Wire @ 1.0
|-- Joystick @ 2.1.1
|-- Keyboard @ 1.0.4
|   |-- HID @ 1.0
|-- HID @ 1.0
Building in release mode
Checking size .pio/build/b0xx_r2/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [===       ]  32.1% (used 823 bytes from 2560 bytes)
Flash: [========  ]  84.4% (used 24204 bytes from 28672 bytes)
Configuring upload protocol...
AVAILABLE: avr109
CURRENT: upload_protocol = avr109
Looking for upload port...
Auto-detected: /dev/ttyACM0
Forcing reset using 1200bps open/close on port /dev/ttyACM0
Waiting for the new upload port...
Uploading .pio/build/b0xx_r2/firmware.hex

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
    Device code: 0x44

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9587 (probably m32u4)
avrdude: reading input file ".pio/build/b0xx_r2/firmware.hex"
avrdude: writing flash (24204 bytes):

Writing | ################################################## | 100% 1.83s

avrdude: 24204 bytes of flash written
avrdude: verifying flash memory against .pio/build/b0xx_r2/firmware.hex:
avrdude: load data flash data from input file .pio/build/b0xx_r2/firmware.hex:
avrdude: input file .pio/build/b0xx_r2/firmware.hex contains 24204 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.18s

avrdude: verifying ...
avrdude: 24204 bytes of flash verified

avrdude: safemode: Fuses OK (E:CB, H:D8, L:FF)

avrdude done.  Thank you.

============================================================================== [SUCCESS] Took 4.93 seconds ==============================================================================

Environment    Status    Duration
-------------  --------  ------------
b0xx_r2        SUCCESS   00:00:04.926
============================================================================== 1 succeeded in 00:00:04.926 ==============================================================================
 *  Terminal will be reused by tasks, press any key to close it. 
JonnyHaystack commented 1 year ago

Resolved on Discord