# Compiled firmware from main branch bricks device?

**URL:** <https://minichord.discourse.group/t/compiled-firmware-from-main-branch-bricks-device/33>\
**Category:** Troubleshooting\
**Created:** [March 7, 2026, 6:50am UTC](https://minichord.discourse.group/t/compiled-firmware-from-main-branch-bricks-device/33 "2026-03-07T06:50:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![poofjunior](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@poofjunior](https://minichord.discourse.group/u/poofjunior)\
**Post date:** [March 7, 2026, 6:50am UTC](https://minichord.discourse.group/t/compiled-firmware-from-main-branch-bricks-device/33/1 "2026-03-07T06:50:30Z")

</div>

Hi folks,

I followed the instructions to compile the firmware in PlatformIO with no changes to the source code, but the resulting binary causes the device to lock up. After upload, it doesn’t show up as a USB device, and neither the LED nor any of the buttons do anything. Uploading the default pre-compiled firmware.hex from the project src folder restores functionality.

Is the code on the main branch missing something that would cause it to freeze?

Here’s the resulting PlatformIO output when compiling:

```auto
 * Executing task: platformio debug 

Processing teensy40 (platform: teensy; board: teensy40; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/teensy/teensy40.html
PLATFORM: Teensy (5.0.0) > Teensy 4.0
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 1.94MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES: 
 - framework-arduinoteensy @ 1.159.0 (1.59) 
 - tool-teensy @ 1.159.0 (1.59) 
 - toolchain-gccarmnoneeabi-teensy @ 1.110301.0 (11.3.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 100 compatible libraries
Scanning dependencies...
Dependency Graph
|-- AT42QT @ 0.6.0
|-- Audio @ 1.3
|-- LittleFS @ 1.0.0
|-- SPI @ 1.0
|-- Wire @ 1.0
|-- button_matrix
|-- debouncer
|-- harp
|-- potentiometer
|-- Hx_plateReverb
|-- SD @ 2.0.0
|-- SerialFlash
Building in debug mode
Compiling .pio/build/teensy40/src/main.cpp.o
Linking .pio/build/teensy40/firmware.elf
Checking size .pio/build/teensy40/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
Calculating size .pio/build/teensy40/firmware.elf
Building .pio/build/teensy40/firmware.hex
teensy_size: Memory Usage on Teensy 4.0:
teensy_size: FLASH: code:173260, data:33964, headers:8836 free for files:1815556
teensy_size: RAM1: variables:88000, code:167644, padding:28964 free for local variables:239680
teensy_size: RAM2: variables:462176 free for malloc/new:62112
=========================================================================================== [SUCCESS] Took 2.02 seconds ===========================================================================================
 * Terminal will be reused by tasks, press any key to close it.

```

Cheers–and loving the device btw! Really fabulous job.

---

<div class="post-metadata">

**Author:** ![Benjamin](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@Benjamin](https://minichord.discourse.group/u/Benjamin)\
**Post date:** [March 9, 2026, 9:13am UTC](https://minichord.discourse.group/t/compiled-firmware-from-main-branch-bricks-device/33/2 "2026-03-09T09:13:14Z")

</div>

Hi there!  
If there was anything missing, I’m sure it would not compile.

Two things that strike me:

- It says building in debug mode. Maybe you should be in release mode for it to work?
- Your package versions are different than mine. If that’s the cause of the break, I would need to indicate it in the platformio.ini. It does not seem likely that there would be breaking change in minor versions like that.
  - PACKAGES:
    - framework-arduinoteensy @ 1.156.0 (1.56)
    - tool-teensy @ 1.155.0 (1.55)
    - toolchain-gccarmnoneeabi @ 1.50401.190816 (5.4.1)

---

<div class="post-metadata">

**Author:** ![poofjunior](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@poofjunior](https://minichord.discourse.group/u/poofjunior)\
**Post date:** [March 15, 2026, 4:56am UTC](https://minichord.discourse.group/t/compiled-firmware-from-main-branch-bricks-device/33/3 "2026-03-15T04:56:41Z")

</div>

Whoop–it looks like I just don’t know how to compile code in VSCode. Everything works as expected now that I’m clicking the right button (checkmark at the bottom, not the “play” button at the top). Thanks for tipping me in the right direction!

---

<div class="post-metadata">

**Author:** ![Benjamin](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@Benjamin](https://minichord.discourse.group/u/Benjamin)\
**Post date:** [April 8, 2026, 7:21am UTC](https://minichord.discourse.group/t/compiled-firmware-from-main-branch-bricks-device/33/4 "2026-04-08T07:21:11Z")

</div>

Great to hear 🙂 Hope you’ll have fun with customising the code!
