2013-07-20 01:23 PM
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 #stm32f4 #stm32-mat/target-matlab-stm32f4 #stm32-mat/target-matlab2013-10-03 11:31 AM
Examples are working fine now. Thanks again for your help. One more thing, though I haven't tried it out, just tell me, if I use the code generated from simulink with my own code in Keil, then will it work? It should I guess.
2013-10-23 08:03 AM
2013-10-29 08:16 AM
2014-07-03 07:14 AM