cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Embedded Matlab target complaining about ''quote mismatch'' when building Simulink model

Sebastian K.
Associate II
Posted on February 06, 2017 at 11:53

Hello,

I am having a problem getting the STM32 Embebbed Matlab/Simulink Target to run. I am following the example in the STM32_MAT-TARGET_HandsOn.pdf document for the third example (everything on STM32) step by step, but whenever I try to build the model from Simulink I get the error:

=== Build (Elapsed: 0.840 sec) ===

    ♯♯♯ Real-Time Workshop build procedure for method: 'entry

    ♯♯♯ modelName: 'Test3

    ♯♯♯ gcs: 'Test3

    ♯♯♯ bdroot: 'Test3

   

    ♯♯♯ Starting Real-Time Workshop build procedure for model: Test3

    ♯♯♯ Windows version:win64

    ♯♯♯ Model connectivity is: normal

    ♯♯♯ Create verification block: None

    ♯♯♯ Real-Time Workshop build procedure for method: 'error

    ♯♯♯ modelName: 'Test3

    ♯♯♯ gcs: 'Test3

    ♯♯♯ bdroot: 'Test3

    ♯♯♯ Real-Time Workshop build procedure for model: 'Test3' aborted due to an error.

    Error: Syntax error while setting code generation options string: quote mismatch

and no code is generated. I have played around with most of the STM-specific options, but it makes no difference. I am using Matlab R2015b, Win7, Nucleo-F767ZI board and Matlab Target v4.4.1.

Did anyone else encounter that error, or has an idea what could cause it?

#simulink #stm32-mat/target-matlab
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on February 09, 2017 at 14:05

Hi

Kauertz.Sebastian

,

Could you please try to remove the '\'at the end of the

STM32CubeMx

path, then tel us about the result :

0690X00000606HHQAY.png

-Nesrine-

View solution in original post

7 REPLIES 7
Sebastian K.
Associate II
Posted on February 08, 2017 at 11:36

Nobody? I'd ask in the Mathworks forums as well, but there was one guy who had the exact same issue already with an F4 Discovery board two years ago, and he never got an answer...

Posted on February 08, 2017 at 18:13

Hi,

what is your MATLAB 'current folder' when you start build?

Best regards

Posted on February 08, 2017 at 18:30

Hello,

the current folder is the one that contains the Simulink model, as well as the ioc file created by CubeMX. Both the model and ioc file have the same name as the folder.

Nesrine M_O
Lead II
Posted on February 09, 2017 at 09:48

Hi

Kauertz.Sebastian

,

Could you please share your .ioc file and

Simulink model for check?

-Nesrine-

Posted on February 09, 2017 at 14:05

Hi

Kauertz.Sebastian

,

Could you please try to remove the '\'at the end of the

STM32CubeMx

path, then tel us about the result :

0690X00000606HHQAY.png

-Nesrine-

Posted on February 09, 2017 at 14:24

Yes, that works better - now the code generation works. I would never have thought that's the problem, although I tried to change the installation paths, making them shorter and avoiding spaces. But I thought that path was only used to launch CubeMX from Matlab to generate a configuration file.

Thanks a lot, that was really helpful!