User Tools

Site Tools


manual:bootcommander

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manual:bootcommander [2022/02/10 10:56]
voorburg [Building on Windows with Microsoft Visual C++]
manual:bootcommander [2023/12/04 22:48] (current)
voorburg
Line 39: Line 39:
   * **-d=[name]** sets the name of the communication device. For example COM1 or /​dev/​ttyUSB0 (mandatory).   * **-d=[name]** sets the name of the communication device. For example COM1 or /​dev/​ttyUSB0 (mandatory).
   * **-b=[value]** sets the communication speed in bits per second, as a 32-bit value (default = 57600). Supported values are: 9600, 19200, 38400, 57600, 115200.   * **-b=[value]** sets the communication speed in bits per second, as a 32-bit value (default = 57600). Supported values are: 9600, 19200, 38400, 57600, 115200.
 +
 +Additional XCP on Modbus RTU settings (**xcp_mbrtu**):​
 +  * **-d=[name]** sets the name of the communication device. For example COM1 or /​dev/​ttyUSB0 (mandatory).
 +  * **-b=[value]** sets the communication speed in bits per second, as a 32-bit value (default = 57600). Supported values are: 9600, 19200, 38400, 57600, 115200.
 +  * **-pa=[value]** sets the UART parity bit configuration as a 8-bit value (default = 2). Supported values are: 0 (none), 1 (odd), 2 (even).
 +  * **-sb=[value]** sets the UART stopbits configuration as a 8-bit value (default = 1). Supported values are: 1, 2.
 +  * **-da=[value]** sets the destination address, i.e. the node ID of the receiver as a 8-bit value (default = 1). Supported values are: between 1 and 247.
  
 Additional XCP on CAN settings (**xcp_can**):​ Additional XCP on CAN settings (**xcp_can**):​
Line 46: Line 53:
     * **lawicel_canusb** = Lawicel CANUSB.     * **lawicel_canusb** = Lawicel CANUSB.
     * **vector_xldriver** = Vector XL Driver.     * **vector_xldriver** = Vector XL Driver.
 +    * **ixxat_vcidriver** = Ixxat VCI Driver.
   * **-c=[value]** sets the zero based index of the CAN channel if multiple CAN channels are supported for the CAN adapter, as a 32-bit value (default = 0).   * **-c=[value]** sets the zero based index of the CAN channel if multiple CAN channels are supported for the CAN adapter, as a 32-bit value (default = 0).
   * **-b=[value]** sets the communication speed, a.k.a baudrate in bits per second, as a 32-bit value (default = 500000). Supported values: 1000000, 800000, 500000, 250000, 125000, 100000, 50000, 20000, 10000.   * **-b=[value]** sets the communication speed, a.k.a baudrate in bits per second, as a 32-bit value (default = 500000). Supported values: 1000000, 800000, 500000, 250000, 125000, 100000, 50000, 20000, 10000.
Line 72: Line 80:
 <​code>​sudo apt-get install cmake</​code>​ <​code>​sudo apt-get install cmake</​code>​
  
-Note that BootCommander relies on the OpenBLT Host Library (LibOpenBLT) and links this one as a static libraryMake sure you already [[manual:​libopenblt#​building_libopenblt_from_sources|built LibOpenBLT]],​ before you attempt to build BootCommander.+Note that BootCommander relies on the OpenBLT Host Library (LibOpenBLT) and some of the files that were generated when building LibOpenBLTTherefore, make sure you already [[manual:​libopenblt#​building_libopenblt_from_sources|built LibOpenBLT]],​ before you attempt to build BootCommander.
 ==== Building on Linux with GCC ==== ==== Building on Linux with GCC ====
  
Line 95: Line 103:
 Using the Command Prompt in Windows, set the working directory to **.\Host\Source\BootCommander\build** and type the command: Using the Command Prompt in Windows, set the working directory to **.\Host\Source\BootCommander\build** and type the command:
 <​code>​ <​code>​
-cmake -A Win32 ..+cmake ..
 </​code>​ </​code>​
  
Line 110: Line 118:
 ==== Building on Windows with MinGW ==== ==== Building on Windows with MinGW ====
  
-This method assumes that the MinGW compiler toolchain is installed on your PC. The installer can be downloaded from https://​sourceforge.net/​projects/​mingw-w64/.+This method assumes that the MinGW compiler toolchain is installed on your PC. A convenient way to install it, is by downloading the installer ​that bundles the Code::​Blocks IDE together with MinGW. When using OpenBLT version 1.14 or newer, it is recommended to download the [[https://​sourceforge.net/​projects/​codeblocks/​files/​Binaries/​20.03/​Windows/​codeblocks-20.03mingw-setup.exe/​download|64-bit installer version]], because the included **libopenblt.dll** file is 64-bit as well. Otherwise you can download the [[https://​sourceforge.net/​projects/​codeblocks/​files/​Binaries/​20.03/​Windows/​32bit/​codeblocks-20.03-32bit-mingw-32bit-setup.exe/download|32-bit installer version]].
  
 Make sure the **.\bin** directory of the MinGW installation directory is added to your path in Windows. A quick way to verify that this is the case, run the following command from the Command Prompt in Windows and make sure the program could be found: ​ Make sure the **.\bin** directory of the MinGW installation directory is added to your path in Windows. A quick way to verify that this is the case, run the following command from the Command Prompt in Windows and make sure the program could be found: ​
Line 120: Line 128:
  
 <​code>​ <​code>​
-cmake -G "MinGW Makefiles"​ ..+cmake -G "CodeBlocks - MinGW Makefiles"​ ..
 mingw32-make mingw32-make
 </​code>​ </​code>​
manual/bootcommander.1644487004.txt.gz ยท Last modified: 2022/02/10 10:56 by voorburg