Why do i receive an error when building code for STM32 application in MATLAB 2019B?

4 views (last 30 days)
I tried an example from STM32 -MAT/Target and when building code for the application STM 32F302R8 the following error is returned; i have tried all the examples related to STM32 application and same error is returned. Please guide me.
Adding source and include directories to make process.
STM32 package install path: C:\Users\PBALAK~1\ONEDRI~1\DOCUME~1\MATLAB\STM32-~1\STM32
- additional source directories:
C:\Users\PBALAK~1\ONEDRI~1\DOCUME~1\MATLAB\STM32-~1\STM32\addSrc\src
- additional include directories:
C:\Users\PBALAK~1\ONEDRI~1\DOCUME~1\MATLAB\STM32-~1\STM32\addSrc\inc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
### Real-Time Workshop build procedure for method: 'before_make
### modelName: 'stm32_external_mode
### gcs: 'stm32_external_mode
### bdroot: 'stm32_external_mode
### Real-Time Workshop build procedure for method: 'error
### modelName: 'stm32_external_mode
### gcs: 'stm32_external_mode
### bdroot: 'stm32_external_mode
### Real-Time Workshop build procedure for model: 'stm32_external_mode' aborted due to an error.
The call to stm32_make_rtw_hook, during the before_make hook generated the following error:
Reference to non-existent field 'codeFormat'.
The build process will terminate as a result.
Caused by:
Reference to non-existent field 'codeFormat'.
  4 Comments
Puvaneswaran Balakrishna
Puvaneswaran Balakrishna on 25 Jan 2021
i have attached one of the model which i tried earlier. this model is demo for PIL but i get the same error,

Sign in to comment.

Accepted Answer

Aghamarsh Varanasi
Aghamarsh Varanasi on 27 Jan 2021
Edited: Aghamarsh Varanasi on 27 Jan 2021
Hi,
As the Simulink Model uses a custom 'tlc' and a custom template make file (tmf), code generation is not possible at our end. I suggest you to contact MathWorks support to resolve this issue.
  1 Comment
Puvaneswaran Balakrishna
Puvaneswaran Balakrishna on 27 Jan 2021
I seek answer from ST community, apparently the STM32 Target support which uses STM32.tlc is not compatible in Matlab 2019b. Thank you for the feedback,

Sign in to comment.

More Answers (0)

Tags

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!