marinabolognese
Member
do you guys think its possible/feasible to build a custom hex file loader for teensy4?
static int teensy_reboot(ty_board_interface *iface)
{
static const unsigned int serial_magic = 134;
static const unsigned char seremu_magic[] = {0, 0xA9, 0x45, 0xC2, 0x6B};
understood, thanks paul.Confirm, the USB types with Serial respond to setting baud rate to 134, and the non-Serial types respond to a HID feature request.
Please understand this response is not from the bootloader. It depends on code you previously wrote still running properly and listening for USB communication. If the previously loaded program shuts off USB, or goes into deep sleep modes without USB wakeup, or lingers inside an interrupt too long, or "crashes" in a variety of ways where it no longer responds to USB, this won't work. Every Teensy is made with a Program pushbutton to give a way to recover from loading such programs.
If you create a special application which uses this sort of USB communication, please understand it depends on the code you previously loaded still running properly (or at least well enough to respond to USB). If you create custom hardware without access to the Program button and you load a bad program, you can be left without the ability to recover from such bad code.
Hi, is there any chance you'd consider open sourcing the GUI loader? We are looking to create an "updater" utility for a synthesizer that integrates a Teensy. The utility will be even simpler than theLoader, needing only a single button.Maybe start by looking at the open source command line loader?
![]()
GitHub - PaulStoffregen/teensy_loader_cli: Command line Teensy Loader
Command line Teensy Loader. Contribute to PaulStoffregen/teensy_loader_cli development by creating an account on GitHub.github.com
You can see the source code is pretty simple, even if USB stuff needs to be done separately for each operating system.
Of course things can get complicated pretty quickly when you build a GUI, especially one that's cross platform...