simple program/script to reset teensy 2.0 in bootloader mode

Status
Not open for further replies.

xload

Active member
Hello,

I need a simple program/script (in C,python,shellscript) to reset a connected teensy 2.0 in bootloader mode.

Best regards and thanks in advance.
 
I decided to start with teeny cli loader, because I only need restart in bootloader mode I replaced the main() code with:

Code:
	printf("Teensy reboot\n");
	if (soft_reboot()) {
		printf("Soft reboot performed\n");
	}
	else {
		printf("Soft reboot _NOT_ performed\n");
	}[

I obtain this answer:
Teensy reboot
entering soft_reboot
Soft reboot performed

I'm compiling with Teensy core for an Arduino Leonardo and custom boards.txt , it uploads fine at first time, but for next times y need to enter in bootloader mode with reset button.
 
Status
Not open for further replies.
Back
Top