To install Waijung, follow the following steps.
STM32 ST-Link Utility and ST-Link/V2 USB driver is available for download free from http://www.st.com/web/catalog/tools/FM146/CL1984/SC724/SS1677/PF251168.
After download, install both software (STM32 ST-Link Utility and ST-Link/V2 USB driver).
ST-Link Utility is used to download executable files (*.bin or *.hex) to target (STM32)'s flash memory.
Once properly install ST-Link Utility, you should be able to open the ST-Link Utility window as shown below.
FTDI USB driver is available for download free from http://www.ftdichip.com/Drivers/VCP.htm. The download is specific to the Operating System.
Installation guide for FTDI USB driver: http://www.ftdichip.com/Support/Documents/InstallGuides.htm
Connect STM32F4xx board to the host PC and run STM32 ST-Link Utility Program.
You can test connection between STM32 ST-Link Utility (on the host PC) and the target board by pressing the connect to target button.
To pass this test step, ST-Link Utility should show something similar to the picture below.
Depending on your ST-Link hardware, you may need to update the firmware of your ST-Link hardware. Just press the Firmware update menu and follow on the screen instructions.
If the program warns about "the device not in a proper mode", just disconnect and reconnect the power supply and run Firmware update again.
Download Waijung Blockset and STM32F4 Target installation package (waijung_##_##.7z) from http://www.aimagin.com/download/.
2. Extract the downloaded 7z File
After the download is completed. Extract the downloaded installation package to your desired directory. (7-Zip is one good free open-source utility for extracting compressed files.) This will be the root directory for your Waijung Blockset and STM32F4 Target. Although you can extract and run Waijung from any directory in your computer. We recommend extracting to a directory where you have full write access. If you are updating the software, you can replace the content of previous software with the new version and run install_waijung.m as normal.
3. Run "install_waijung.m"
Run "install_waijung.m" from within Matlab.
Matlab must be "Run as Administrator".
5. Check Installation Status
After a successful installation, Matlab Command Window should report status as shown below.
6. Check Installed Blockset
Open the Simulink Library Browser and you should see Waijung Blockset and STM32F4 Target. This completes the installation process.
Waijung Blockset and STM32F4 Target package already contains all tools you need to get started, including:
|2.||STM32F4 Target Blockset.|
|3.||GNU ARM Compiler for compiling the generated source code.|
|4.||GNU Make utilities for controlling the build process.|
|5.||OpenOCD Tools for debugging.|
|6.||Base software libraries for STM32F4 (Standard peripherals etc.)|
|7.||ST-Link Utility (Lastest version available for download from http://www.st.com/web/en/catalog/tools/PF258168)|