cancel
Showing results for 
Search instead for 
Did you mean: 

MATLAB/Simulink, PIL, .script

Martin Dvoracek
Associate II
Posted on May 03, 2018 at 17:29

I am trying PIL in simulink with Nucleo board with stm32. But everytime there is error with crating some file. Does somebody has similar issues? What can be wrong? Simulink model I used is attached. 

### Copy algorithms_test.ioc to X:\tmp\matlab_test\PIL_nucleo\Subsystem_PIL\Subsystem.ioc configuration file for PIL communication. ### Modify ioc configuration file for PIL communication. ### Open STM32CubeMX for configuration and project code generation.

Can not create file : Subsystem_PIL/.script

2 REPLIES 2
Posted on June 27, 2018 at 10:39

Hi,

You don't create .ioc file by yourself. The STM32-MAT/TARGET generate it automatically so you don't need MCU config block.

0690X0000060PFVQA2.jpg

Before build your project, please check Configuration Parameters setting of System and Subsystem as show in below picture.

  • Recheck STM32CubeMx Path update.
  • Click Update installed path.
  • Let's Model configuration(ioc) Full Path as empty.

0690X0000060PGcQAM.jpg

0690X0000060PHbQAM.jpg

I used EWARM toolchain and USART2 for communication.

0690X0000060PHcQAM.jpg

And this is the result.

0690X0000060PGdQAM.jpg

Please check example in Hands on instruction again for more information.

Best regards,

Posted on June 27, 2018 at 12:37

Thanks for the description you prepared, next week I will have time to test it. Thanks again!