STM32 Embedded Matlab target complaining about ''quote mismatch'' when building Simulink model
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-06 2:53 AM
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 mismatchand 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-matlabSolved! Go to Solution.
- Labels:
-
STM32-MatTarget
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-09 6:05 AM
Hi
Kauertz.Sebastian
,Could you please try to remove the '\'at the end of the
STM32CubeMx
path, then tel us about the result :-Nesrine-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-08 2:36 AM
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-08 9:13 AM
Hi,
what is your MATLAB 'current folder' when you start build?
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-08 10:30 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-09 12:48 AM
Hi
Kauertz.Sebastian
,Could you please share your .ioc file and
Simulink model for check?
-Nesrine-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-09 2:40 AM
Hello,
thank you for looking into it! Here are the model and the ioc file that I use.
________________ Attachments : Test4.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hywy&d=%2Fa%2F0X0000000bEE%2Fs.3WfrQYF3yS4Q461.2Psu7OGYNATfawxOur6cG8o5I&asPdf=falseTest4.slx.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HytX&d=%2Fa%2F0X0000000bEI%2F2YUA.hbQJdQm0fHlpQzdDwz.bmChp2wLTK6wHiCeXV4&asPdf=false- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-09 6:05 AM
Hi
Kauertz.Sebastian
,Could you please try to remove the '\'at the end of the
STM32CubeMx
path, then tel us about the result :-Nesrine-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-09 6:24 AM
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!
