diff --git a/Host/Source/MicroBoot/interfaces/uart/XcpSettings.dfm b/Host/Source/MicroBoot/interfaces/uart/XcpSettings.dfm index 6dbb16c1..5afe5dc3 100644 Binary files a/Host/Source/MicroBoot/interfaces/uart/XcpSettings.dfm and b/Host/Source/MicroBoot/interfaces/uart/XcpSettings.dfm differ diff --git a/Host/Source/MicroBoot/interfaces/uart/XcpTransport.pas b/Host/Source/MicroBoot/interfaces/uart/XcpTransport.pas index 78650c39..b8250539 100644 --- a/Host/Source/MicroBoot/interfaces/uart/XcpTransport.pas +++ b/Host/Source/MicroBoot/interfaces/uart/XcpTransport.pas @@ -154,7 +154,12 @@ begin // configure port configIndex := settingsIni.ReadInteger('sci', 'port', 0); - sciDriver.Port := pnCOM1; // init to default value + //sciDriver.Port := pnCOM1; // init to default value + + sciDriver.Port := pnCustom; + sciDriver.PortName := Format( '\\.\COM%d', [ord(configIndex + 1)] ); + + { case configIndex of 0 : sciDriver.Port := pnCOM1; 1 : sciDriver.Port := pnCOM2; @@ -165,6 +170,7 @@ begin 6 : sciDriver.Port := pnCOM7; 7 : sciDriver.Port := pnCOM8; end; + } // release ini file object settingsIni.Free; diff --git a/Host/Source/MicroBoot/interfaces/uart/openblt_uart.dpr b/Host/Source/MicroBoot/interfaces/uart/openblt_uart.dpr index 6efe0a0e..1b11c659 100644 --- a/Host/Source/MicroBoot/interfaces/uart/openblt_uart.dpr +++ b/Host/Source/MicroBoot/interfaces/uart/openblt_uart.dpr @@ -569,7 +569,7 @@ end; //*** end of MbiDescription *** //*************************************************************************************** function MbiVersion : Longword; stdcall; begin - Result := 10001; // v1.00.01 + Result := 10002; // v1.00.02 end; //*** end of MbiVersion *** diff --git a/Host/openblt_uart.dll b/Host/openblt_uart.dll index c59d16b8..2d46a816 100644 Binary files a/Host/openblt_uart.dll and b/Host/openblt_uart.dll differ diff --git a/Target/Source/backdoor.c b/Target/Source/backdoor.c index 0086f9c2..bf3c5152 100644 --- a/Target/Source/backdoor.c +++ b/Target/Source/backdoor.c @@ -48,16 +48,16 @@ * connect command response. This is the last entry on XCP Timeouts tab. By * default the connect command response is configured as 20ms by Microboot, * except for TCP/IP where it is 300ms due to accomodate for worldwide - * network latency. For CAN this was also adjusted to 500ms so that Microboot - * can wait for the bootloader to initialize. Otherwise errorframes can be - * generated on the CAN bus. + * network latency. The default value was chosen safely for compatibility + * reasons with all supported communication interfaces. It could be made + * shorter your bootloader. To change this value, simply add the macro + * BACKDOOR_ENTRY_TIMEOUT_MS to blt_conf.h with your desired backdoor open time + * in milliseconds. */ #if (BOOT_COM_NET_ENABLE == 1) #define BACKDOOR_ENTRY_TIMEOUT_MS (750) - #elif (BOOT_COM_CAN_ENABLE == 1) - #define BACKDOOR_ENTRY_TIMEOUT_MS (500) #else - #define BACKDOOR_ENTRY_TIMEOUT_MS (50) + #define BACKDOOR_ENTRY_TIMEOUT_MS (500) #endif #endif #endif