jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.82k stars 720 forks source link

Use ESP-Link to upload program to Teensy4.1? #544

Open JackBlair87 opened 2 years ago

JackBlair87 commented 2 years ago

Hello everyone!

Does anyone think it is possible to run esp-link on an ESP32 connected over serial to a Teensy4.1, that can upload a program to the teensy? I know this library works for Arduino and other boards, but I understand that Teensy uses a different flashing system and is harder to program. Currently I have a .bin file to upload the Teensy/ESP connection set up over serial.

Thanks for all your help.

uzi18 commented 2 years ago

@JackBlair87 This teensy uses USB as a programming interface and esp-link is a serial bridge. We need to ask @PaulStoffregen if serial programming is possible and how to proceed. The esp-link project does not support ESP32 currently.

PaulStoffregen commented 2 years ago

Teensy does not support hardware serial programming. Only USB (HID protocol, not USB serial) is supported.

uzi18 commented 2 years ago

@PaulStoffregen thanks for the clarification. So as an alternative option is to mimic USB host device with https://github.com/PaulStoffregen/teensy_loader_cli

PaulStoffregen commented 2 years ago

Yes, that program can be run on any PC or Linux SBC. Or the USB host on Teensy 3.6 or 4.1 can be used with this: https://github.com/PaulStoffregen/USB_Tester