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

5 ビュー (過去 30 日間)
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 件のコメント
Birdman
Birdman 2021 年 1 月 25 日
Can you share your model?
Puvaneswaran Balakrishna
Puvaneswaran Balakrishna 2021 年 1 月 25 日
i have attached one of the model which i tried earlier. this model is demo for PIL but i get the same error,

サインインしてコメントする。

採用された回答

Aghamarsh Varanasi
Aghamarsh Varanasi 2021 年 1 月 27 日
編集済み: Aghamarsh Varanasi 2021 年 1 月 27 日
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 件のコメント
Puvaneswaran Balakrishna
Puvaneswaran Balakrishna 2021 年 1 月 27 日
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,

サインインしてコメントする。

その他の回答 (0 件)

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by