How to use a custom-made branch as platform

Hello !

I want to use this branch https://github.com/espressif/arduino-esp32/tree/stickbreaker-patch-1 and I have no idea how to do that.

platform = https://github.com/espressif/arduino-esp32/tree/stickbreaker-patch-1 doesn’t work, obviously.

Try this:

platform = espressif32
framework = arduino
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32/tree/stickbreaker-patch-1
1 Like

@manuelbl Bumping this thread, I can create a new one if you’d prefer.

The solution proposed does not work for me.

I am attempting to use the branch, https://github.com/adafruit/arduino-esp32/tree/add-tinyusb-arduino

My platformio.ini looks like:

platform = espressif32
platform_packages =
	toolchain-xtensa32s2
        framework-arduinoespressif32 @ https://github.com/adafruit/arduino-esp32/tree/add-tinyusb-arduino
framework = arduino

And returns the error:

Tool Manager: Installing git+https://github.com/adafruit/arduino-esp32/tree/add-tinyusb-arduino
git version 2.21.1 (Apple Git-122.3)
Cloning into '/Users/USER/.platformio/.cache/tmp/pkg-installing-3vle6un3'...
fatal: repository 'https://github.com/adafruit/arduino-esp32/tree/add-tinyusb-arduino/' not found
Error: VCS: Could not process command ['git', 'clone', '--recursive', '--depth', '1', 'https://github.com/adafruit/arduino-esp32/tree/add-tinyusb-arduino', '/Users/USER/.platformio/.cache/tmp/pkg-installing-3vle6un3']
The terminal process "platformio 'run', '--environment', 'MagTag'" terminated with exit code: 1.

This is the wrong URL – if you want to reference a specific branch, you must reference the normal repo URL with #branch, as e.g. seen in here.

https://github.com/adafruit/arduino-esp32.git#add-tinyusb-arduino

would be the right URL to use.

Perfect, thanks for your assistance! I’ll wait until the experimental support for ESP32-S2 is merged into PIO (Board Definition for Adafruit MagTag - #5 by maxgerhardt) before continuing further.