HANcoder/STM32/Getting Started Installing The Virtual COM port

From OpenMBD
Jump to: navigation, search

To read the variables and change the parameters that are in the model, you can use HANtune. HANtune is a Java program that reads signals (variables) and writes parameters (constants) from/to the Olimexino. By reading these signals, you can see if the software is working correctly and the parameters can be changed to tune the algorithm.
To use HANtune over USB a virtual COM port is used to connect to the STM32 Olimexino. When the Olimexino is connected the device manager will show it as STM32 Virtual COM port. This is not the right driver.
GettingStartedGuideSTM32 VirtualCOMportError.png

Install the correct driver by running VCP_V1.3.1_Setup.exe or VCP_V1.3.1_Setup_x64.exe located in the directory: /Installs/Drivers/VirtualCOMport/
Follow the instructions given by the installer. After the installation Windows should now recognize the Olimexino as STMicroelectronics Virtual COM Port, see below:
GettingStartedGuideSTM32 VirtualCOMportSuccess.png

Please remember the COM port which has been assigned to it, this needs to be entered in HANtune.

Note: When the Olimexino has just started up and is still in bootload mode it will show up in the device manager as WinUSB Bulk Device. After 2 seconds the program will be started and if the ‘XCP over USB’ block is present in the model it will show up as STMicroelectronics Virtual COM Port.

HANtune

The driver needed for using HANtune have been installed, click here to get started with HANtune