AnsweredAssumed Answered

Has anyone test STM32F4xxdemos (STM32 embedded target for MATLAB and Simulink)?

Question asked by slimsly on Jul 20, 2013
Latest reply on Jul 3, 2014 by dang.hai
Hello,

I have a problem in running any of the demo code in STM32 embedded target for MATLAB and Simulink (C:\Program Files (x86)\STMicroelectronics\STM32F4xx-MAT\STM32F4xx\STM32F4xxdemos) but I do not know if this is the right forum to seek help (Matlab or ST forum).

When I tried running the demo code in Matlab I get the following error in Matlab Commad Window

"### Real-Time Workshop build procedure for method: 'entry
### Starting build procedure for model: ButtonAndLeds

### Starting Real-Time Workshop build procedure for model: ButtonAndLeds
Warning: ### IAR toolchain not automatically found.
Warning: ### IAR toolchain not automatically found."

and this error
"The call to stm32F4xx_make_rtw_hook, during the entry hook generated the following error:
Please change to the correct build directory. (CodeGeneration)

The build process will terminate as a result.

Caused by:
Please change to the correct build directory. (CodeGeneration)" in Simulink Window.".

I have Matlab 2012b 64bit and Keil MDK installed in my Window 8 64bit Laptop Computer. I did the following in  Matlab Simulink configuration Parameter,

STM32 ToolChain : Keil
ToolPath Installation Directory: C:\Keil\ARM

 and finally I did the following as recommended in STM32-MAT/TARGET.

Demonstration settings (if installed path is not C:\Matlab\STM32F4xx)

The provided STM32F4xxdemos have been saved with C:\Matlab\STM32F4xx installed path.

If installed path is changed, "Configuration Parameters" must be done for the model:

    “Configuration Parameters">"Code Generation">"System target file"
    Click Browse button and select ert.tlc.
    Click Ok and Apply buttons.
    When System target file is ert.tcl click browse button again and select stm32F4xx.tlc file.
    Click Ok and Apply buttons.
    "Configuration Parameters">"Code Generation">"STM32F4xx Options"
    Set toolchain parameters. Installed path has been updated

I am getting " Select IAR directory tool path Prompt " when I click Build Model in Matlab. I do not know while IAR popup even though I select Keil.I will be glad if someone can point me to the right direction in running the code the code successfully.

Thanks

Outcomes