Getting Ready

From RapidSTM32
Jump to: navigation, search


Minimum requirements

Important!!! Independent of the Operating System (32-bits/64-bits), a 32-bits Matlab version must be installed to work with RapidSTM32 Blockset.

RapidSTM32 Blockset has been tested to work with Windows XP, Windows Vista (both 32/64-bits), Windows 7 (both 32/64-bits).

  1. RapidSTM32 Blockset version or later
  2. Matlab 32-bits between R2009a and R2011b. RapidSTM32 Blockset does NOT work with R2012 or later. If you need to work with R2012 or later use Waijung and STM32F4 Target.
  3. Simulink
  4. Real-Time Workshop
  5. Real-Time Workshop Embedded Coder
  6. RealView MDK for ARM version 4.13a or later (See here if you install MDK-ARM version 4.60 or later)
  7. Microsoft Windows XP SP2 or later (Currently, RapidSTM32 Blockset does NOT work for OSX or Linux.)
  8. Microsoft .Net Framework version 3.5 or later

Install required software

1. Install Matlab , Simulilnk, Real-Time Workshop and Real-Time Workshop Embedded Coder.

  • Matlab and Simulink are used to create a graphical model of a dynamic system.
  • Real-Time Workshop and Real-Time Workshop Embedded Coder are used to automatically generate C code from Simulink models.
  • Other Simulink Blocksets such as Stateflow (also require Stateflow coder), Simulink Fixed Point, Signal Processing Blockset may be used together with RapidSTM32 Blockset to generate code for STM32.

2. Download (free evaluation version) and install RealView Microcontroller Development Kit for ARM (MDK-ARM) version 4.13a or later.

  • MDK-ARM is used to compile and debug the generated C code.
  • Although the free evaluation version has 32K file size limit, this is more than enough for most applications.

3. Download and install Microsoft .NET Framework 3.5 from MS Download Center or from direct download (both free).

4. Download (free) RapidSTM32 blockset.

  • You will need to unzip the installation package using such program as 7zip, which can be downloaded free from here.

How to Install RapidSTM32 Blockset

Watch the following video on how to install RapidSTM32 Blockset.

Required Hardware

FiO Evaluation boardwhich can be purchased online from Aimagin Store.

Testing FiO board connection

Connect the target to host PC

Connect USB cable of the board to one of USB ports on your computer.

Connect the board to the computer

Set FiO Std in USB IAP Mode

In this mode, FiO board can be programmed via USB.

Set FiO Std in UAB In Application Programming (IAP) Mode by set Switch SW1 and jumper J1 J3 and J9 as shown in the picture.

It is not necessary to change J4 or remove the jumper for LED2 at all. Jumpers for LED1 and LED3 just allow those LEDs (1 & 3) to flash showing active TX/RX communication between the host PC and the target.

Do not forget to press the RESET button after configuring all the jumpers and switches.

Setting the board to USB IAP Mode

Start Matlab

Test connection

Test if the FiO board is connected by typing request_productinfo('usb','name')

  • If the board is connected and detected, the answer is FiO Std

No FiO board is detected

  • If the board is not detected, the folowing error will show.

No FiO board is not detected

Watch the video

Watch the following video for testing FiO board connection.

Personal tools

Main Menu