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 个评论

请先登录,再进行评论。

采纳的回答

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
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 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by