chipKIT32 / PIC32-avrdude-bootloader

The 'new' bootloader for MPIDE/chipKIT PIC32 boards
44 stars 62 forks source link

Detecting operation on simulator to bypass delays #37

Open lstandage opened 7 years ago

lstandage commented 7 years ago

When running the bootloader on the PIC32 simulator in MPLAB X, the execution is very slow. The 2 second timeout that is used on UART-based bootloaders takes upwards of 6 minutes to run on the simulator.

If there is a way, the bootloader should detect whether it is running on real hardware or on the simulator (I'm checking with the simulator team to see if this is possible), and then bypass some of the delays in order to speed up execution.