SMT32 Embedded target and error executing the PostApplyCallBack of the target

9 visualizaciones (últimos 30 días)
Hi,
I installed the STM32 Embedded Target, and I am trying to build a model in Simulink.
By following the instructions in the manual provided by ST, I have added the relevant path for STM32 in Matlab and, in Similink, I go to " Configuration Parameters --> Code Generation " and select "System target file" stm32.tlc from the list. So far so good.
But, when I press "OK", I get the following error:
"Error executing the PostApplyCallback of the target "stm32.tlc": Path not found ===> SMT32CubeMx not installed or modify "STM32CubeMx installation path" field."
I have the SMT32CubeMx installed. How can I modify the installation path field?
Best
Maria
  1 comentario
Maria
Maria el 10 de Ag. de 2021
In the Command Window, there is more described
>> pathtool
Warning: An error occurred while evaluating "loc_register_device" in
"C:\MATLAB\STM32-MAT\STM32\script\sl_customization.p": Support for the RTW.HWDeviceRegistry
class has been removed. For information about upgrading data definitions for your hardware, see
Upgrade Data Definitions for Hardware Devices.
This custom registration is not loaded.
> In coder.targetreg.internal.TargetRegistry/refresh
In coder.targetreg.internal/TargetRegistry/refreshToolchain
In coder.make.internal.getToolchainInfos (line 8)
In coder.make.internal.getToolchainList (line 6)
In configset.internal.customwidget.ToolchainValues
In configset.internal.customwidget.ToolchainValues
In configset.internal.custom.getToolchainApproach
In configset.internal.custom.noToolchainApproach
In configset.htmlview.custom_functions.get_Simulink_RTWCC_data
In configset.dialog.HTMLView/getCurrentComponentJSON>locAddMetaData
In configset.dialog.HTMLView/getCurrentComponentJSON
In configset.dialog.HTMLView/getComponentJSON
In configset.dialog.HTMLView/getComponentJSON
In configset.dialog.HTMLView/prepareData
In configset.dialog.HTMLView/createPage
In configset.dialog.HTMLView/actionDispatcher
In configset.dialog.HTMLView.init>@(varargin)obj.actionDispatcher(varargin{:})
In configset.dialog.Connector/callback
In configset.dialog.Connector>@(varargin)obj.callback(varargin{:})
In message.internal.executeCallback
In configset.dialog.HTMLView/view
In configset.internal.util.launchWebWindow
In SLStudio.ToolBars
In SLStudio.ToolBars
Warning: Error executing the PostApplyCallback of the target "stm32.tlc":
Path not found ===> STM32CubeMx not installed or modify "STM32CubeMx installation path"
field.
> In stfTargetApplyCB
In rtwprivate (line 16)
In configset.internal.util.postApply
In configset.dialog.HTMLView/apply
Warning: Error executing the PostApplyCallback of the target "stm32.tlc":
Path not found ===> STM32CubeMx not installed or modify "STM32CubeMx installation path"
field.
> In stfTargetApplyCB
In rtwprivate (line 16)
In configset.internal.util.postApply
In configset.dialog.HTMLView/apply

Iniciar sesión para comentar.

Respuesta aceptada

Maria
Maria el 10 de Ag. de 2021
I found that I need to go to "Configuration Parameters" and select "STM32 Options" in the Code Generation. There, I ticked "STM32CubeMx Path update". Now it works.

Más respuestas (0)

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by