Try to make the communication between arduino and simulink to turn on a led and matlab stopped. How can I solve it?

1 次查看(过去 30 天)
MATLAB Log File: C:\Users\Admin\AppData\Local\Temp\matlab_crash_dump.12112-1
------------------------------------------------
MATLAB Log File
------------------------------------------------
--------------------------------------------------------------------------------
Access violation detected at 2022-03-17 01:28:43 -0600
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : windows-1252
Deployed : false
Graphics Driver : Intel Intel(R) HD Graphics 620 Version 4.5.0 - Build 27.20.100.8681
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 620 Version 27.20.100.8681 (2020-9-5)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 6817218
MATLAB Root : C:\Program Files\MATLAB\R2021a
MATLAB Version : 9.10.0.1602886 (R2021a)
OpenGL : hardware
Operating System : Microsoft Windows 10 Pro
Process ID : 12112
Processor ID : x86 Family 6 Model 142 Stepping 9, GenuineIntel
Session Key : 945e2103-e067-4e51-8abb-2b579c78841c
Window System : Version 10.0 (Build 19044)
Fault Count: 1
Abnormal termination:
Access violation
Current Thread: 'MCR 0 interpreter thread' id 12460
Register State (from fault):
RAX = 0000000000000000 RBX = 0000000000000000
RCX = 0000000000000000 RDX = 0000021328010000
RSP = 000000b493cebed0 RBP = 000000b493cec090
RSI = 000000b493cec440 RDI = 000000b493ceca80
R8 = 0000021327f71f80 R9 = 0000000000000001
R10 = 0000000000008000 R11 = 000000b493cebec0
R12 = 0000000000000000 R13 = 0000000000000001
R14 = 00000213170cfb10 R15 = 00000213e7710cc0
RIP = 00007ffb3d57567c EFL = 00010202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007ffb3d57567c C:\Program Files\MATLAB\R2021a\bin\win64\sl_graphical_classes.dll+06510204 BDConfigSetInfo::getRTWComponent+00000012
[ 1] 0x00007ffb3d02cacf C:\Program Files\MATLAB\R2021a\bin\win64\sl_graphical_classes.dll+00969423 SLRootBDAPI::getRTWSystemTargetFile+00000063
[ 2] 0x00007ffb0ee1e5b5 C:\ProgramData\MATLAB\SupportPackages\R2021a\bin\win64\simulink_plugins\hardwaresupportpkgs\targets\targetHiddenBlkInsert\libmwtargetHiddenBlkInsert.dll+00124341 sl_hmi::DashboardBlock::useLatestValueForValueParam+00032757
[ 3] 0x00007ffb3cbe0f36 C:\Program Files\MATLAB\R2021a\bin\win64\sl_engine_classes.dll+04198198 slplugin::addCompBdSignal+00019302
[ 4] 0x00007ffb3c8ba7f7 C:\Program Files\MATLAB\R2021a\bin\win64\sl_engine_classes.dll+00894967 bdPostEngineEvent_nothrow+00001847
[ 5] 0x00007ffb3c8a69b0 C:\Program Files\MATLAB\R2021a\bin\win64\sl_engine_classes.dll+00813488 ssSetGrBlkMaxFreqHz+00004336
[ 6] 0x00007ffb3c8b60c9 C:\Program Files\MATLAB\R2021a\bin\win64\sl_engine_classes.dll+00876745 slplugin::MasterCompEvent::~MasterCompEvent+00004329
[ 7] 0x00007ffb3c8aad6d C:\Program Files\MATLAB\R2021a\bin\win64\sl_engine_classes.dll+00830829 ssSetGrBlkMaxFreqHz+00021677
[ 8] 0x00007ffb3c8b7760 C:\Program Files\MATLAB\R2021a\bin\win64\sl_engine_classes.dll+00882528 slplugin::ProcessEngineEvent+00000336
[ 9] 0x00007ffb3c8ba041 C:\Program Files\MATLAB\R2021a\bin\win64\sl_engine_classes.dll+00892993 bdPostEngineEvent+00000209
[ 10] 0x00007ffb3293f280 C:\Program Files\MATLAB\R2021a\bin\win64\sl_compile.dll+03469952 SLOutportWithFcnCallInitPassThru::throwErrorOnInvalidICSrc+00002720
[ 11] 0x00007ffb32983dcb C:\Program Files\MATLAB\R2021a\bin\win64\sl_compile.dll+03751371 VarHiddenConnectionInfo::setNIForRemoval+00010315
[ 12] 0x00007ffb32983f88 C:\Program Files\MATLAB\R2021a\bin\win64\sl_compile.dll+03751816 VarHiddenConnectionInfo::setNIForRemoval+00010760
[ 13] 0x00007ffb3292722a C:\Program Files\MATLAB\R2021a\bin\win64\sl_compile.dll+03371562 SLCompDiagramImpl+00040618
[ 14] 0x00007ffb3291d68a C:\Program Files\MATLAB\R2021a\bin\win64\sl_compile.dll+03331722 SLCompDiagramImpl+00000778
[ 15] 0x00007ffb468dd146 C:\Program Files\MATLAB\R2021a\bin\win64\sl_link_bd.dll+01102150 slink::CreateSlModelForLink+00000758
[ 16] 0x00007ffb468dce73 C:\Program Files\MATLAB\R2021a\bin\win64\sl_link_bd.dll+01101427 slink::CreateSlModelForLink+00000035
[ 17] 0x00007ffb3e5c3bc0 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+10042304 RTWCG::RTWContextImpl::PopulateVarGroupIF::useRootOutportBuffer+00126416
[ 18] 0x00007ffb3e5d19a9 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+10099113 RTWCG::RTWContextImpl::PopulateVarGroupIF::useRootOutportBuffer+00183225
[ 19] 0x00007ffb3e3366bf C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+07366335 slFullRTWGen+00000495
[ 20] 0x00007ffb8b408bea C:\Program Files\MATLAB\R2021a\bin\win64\builtin.dll+00101354 MathWorks::builtin::BuiltinFcn::invoke+00001130
[ 21] 0x00007ffb7ad44b1c bin\win64\pgo\m_dispatcher.dll+00150300 Mfh_MATLAB_fn_impl::dispatch_mf_with_reuse+00000136
[ 22] 0x00007ffb7ad33588 bin\win64\pgo\m_dispatcher.dll+00079240 Mfh_MATLAB_fn_impl::dispatch+00000712
[ 23] 0x00007ffb7ad332ed bin\win64\pgo\m_dispatcher.dll+00078573 Mfh_MATLAB_fn_impl::dispatch+00000045
[ 24] 0x00007ffb77fc92cd bin\win64\pgo\m_lxe.dll+00365261
[ 25] 0x00007ffb77fc8b6f bin\win64\pgo\m_lxe.dll+00363375
[ 26] 0x00007ffb77fc84a1 bin\win64\pgo\m_lxe.dll+00361633
[ 27] 0x00007ffb77fe4bd7 bin\win64\pgo\m_lxe.dll+00478167 MathWorks::lxe::initializeFcn+00106151
[ 28] 0x00007ffb77fe3a71 bin\win64\pgo\m_lxe.dll+00473713 MathWorks::lxe::initializeFcn+00101697
[ 29] 0x00007ffb77fe3482 bin\win64\pgo\m_lxe.dll+00472194 MathWorks::lxe::initializeFcn+00100178
[ 30] 0x00007ffb77fe7c03 bin\win64\pgo\m_lxe.dll+00490499 MathWorks::lxe::initializeFcn+00118483
[ 31] 0x00007ffb77fe78af bin\win64\pgo\m_lxe.dll+00489647 MathWorks::lxe::initializeFcn+00117631
[ 32] 0x00007ffb77fcfac0 bin\win64\pgo\m_lxe.dll+00391872 MathWorks::lxe::initializeFcn+00019856
[ 33] 0x00007ffb77fce8eb bin\win64\pgo\m_lxe.dll+00387307 MathWorks::lxe::initializeFcn+00015291
[ 34] 0x00007ffb77fcd936 bin\win64\pgo\m_lxe.dll+00383286 MathWorks::lxe::initializeFcn+00011270
[ 35] 0x00007ffb7804c196 bin\win64\pgo\m_lxe.dll+00901526 MathWorks::lxe::initializeFcn+00529510
[ 36] 0x00007ffb7804bf0a bin\win64\pgo\m_lxe.dll+00900874 MathWorks::lxe::initializeFcn+00528858
[ 37] 0x00007ffb77fc6436 bin\win64\pgo\m_lxe.dll+00353334
[ 38] 0x00007ffb77fc638f bin\win64\pgo\m_lxe.dll+00353167
[ 39] 0x00007ffb7ab0b749 bin\win64\pgo\m_interpreter.dll+00046921 inFullFevalFcn+00000361
[ 40] 0x00007ffb8b408bea C:\Program Files\MATLAB\R2021a\bin\win64\builtin.dll+00101354 MathWorks::builtin::BuiltinFcn::invoke+00001130
[ 41] 0x00007ffb7ad44b1c bin\win64\pgo\m_dispatcher.dll+00150300 Mfh_MATLAB_fn_impl::dispatch_mf_with_reuse+00000136
[ 42] 0x00007ffb7ad33588 bin\win64\pgo\m_dispatcher.dll+00079240 Mfh_MATLAB_fn_impl::dispatch+00000712
[ 43] 0x00007ffb7ad332ed bin\win64\pgo\m_dispatcher.dll+00078573 Mfh_MATLAB_fn_impl::dispatch+00000045
[ 44] 0x00007ffb77fc9915 bin\win64\pgo\m_lxe.dll+00366869
[ 45] 0x00007ffb78111619 bin\win64\pgo\m_lxe.dll+01709593 MathWorks::lxe::ShutdownLxeEngine+00518949
[ 46] 0x00007ffb7811147b bin\win64\pgo\m_lxe.dll+01709179 MathWorks::lxe::ShutdownLxeEngine+00518535
[ 47] 0x00007ffb77fc8b6f bin\win64\pgo\m_lxe.dll+00363375
[ 48] 0x00007ffb7812f015 bin\win64\pgo\m_lxe.dll+01830933 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>+00022513
[ 49] 0x00007ffb77fe4bd7 bin\win64\pgo\m_lxe.dll+00478167 MathWorks::lxe::initializeFcn+00106151
[ 50] 0x00007ffb77fe3a71 bin\win64\pgo\m_lxe.dll+00473713 MathWorks::lxe::initializeFcn+00101697
[ 51] 0x00007ffb77fe3482 bin\win64\pgo\m_lxe.dll+00472194 MathWorks::lxe::initializeFcn+00100178
[ 52] 0x00007ffb77fe7c03 bin\win64\pgo\m_lxe.dll+00490499 MathWorks::lxe::initializeFcn+00118483
[ 53] 0x00007ffb77fe78af bin\win64\pgo\m_lxe.dll+00489647 MathWorks::lxe::initializeFcn+00117631
[ 54] 0x00007ffb77fcfac0 bin\win64\pgo\m_lxe.dll+00391872 MathWorks::lxe::initializeFcn+00019856
[ 55] 0x00007ffb77fce8eb bin\win64\pgo\m_lxe.dll+00387307 MathWorks::lxe::initializeFcn+00015291
[ 56] 0x00007ffb77fcaa62 bin\win64\pgo\m_lxe.dll+00371298
[ 57] 0x00007ffb77fca440 bin\win64\pgo\m_lxe.dll+00369728
[ 58] 0x00007ffb7ad33c0d bin\win64\pgo\m_dispatcher.dll+00080909 AutoPushingExecutionFrame::~AutoPushingExecutionFrame+00000765
[ 59] 0x00007ffb7ad338bd bin\win64\pgo\m_dispatcher.dll+00080061 Mfh_file::dispatch_with_reuse+00000045
[ 60] 0x00007ffb79c8b384 bin\win64\pgo\m_lxe.dll+30520196 mwboost::archive::detail::pointer_oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree>::save_object_ptr+00540664
[ 61] 0x00007ffb77fc6436 bin\win64\pgo\m_lxe.dll+00353334
[ 62] 0x00007ffb77fc638f bin\win64\pgo\m_lxe.dll+00353167
[ 63] 0x00007ffb7ab0b749 bin\win64\pgo\m_interpreter.dll+00046921 inFullFevalFcn+00000361
[ 64] 0x00007ffb8b408bea C:\Program Files\MATLAB\R2021a\bin\win64\builtin.dll+00101354 MathWorks::builtin::BuiltinFcn::invoke+00001130
[ 65] 0x00007ffb7ad44b1c bin\win64\pgo\m_dispatcher.dll+00150300 Mfh_MATLAB_fn_impl::dispatch_mf_with_reuse+00000136
[ 66] 0x00007ffb7ad33588 bin\win64\pgo\m_dispatcher.dll+00079240 Mfh_MATLAB_fn_impl::dispatch+00000712
[ 67] 0x00007ffb7ad332ed bin\win64\pgo\m_dispatcher.dll+00078573 Mfh_MATLAB_fn_impl::dispatch+00000045
[ 68] 0x00007ffb77fc9915 bin\win64\pgo\m_lxe.dll+00366869
[ 69] 0x00007ffb78111619 bin\win64\pgo\m_lxe.dll+01709593 MathWorks::lxe::ShutdownLxeEngine+00518949
[ 70] 0x00007ffb7811147b bin\win64\pgo\m_lxe.dll+01709179 MathWorks::lxe::ShutdownLxeEngine+00518535
[ 71] 0x00007ffb77fc8b6f bin\win64\pgo\m_lxe.dll+00363375
[ 72] 0x00007ffb7812f015 bin\win64\pgo\m_lxe.dll+01830933 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>+00022513
[ 73] 0x00007ffb77fd0c13 bin\win64\pgo\m_lxe.dll+00396307 MathWorks::lxe::initializeFcn+00024291
[ 74] 0x00007ffb77fcf125 bin\win64\pgo\m_lxe.dll+00389413 MathWorks::lxe::initializeFcn+00017397
[ 75] 0x00007ffb77fce8eb bin\win64\pgo\m_lxe.dll+00387307 MathWorks::lxe::initializeFcn+00015291
[ 76] 0x00007ffb77fcaa62 bin\win64\pgo\m_lxe.dll+00371298
[ 77] 0x00007ffb77fca440 bin\win64\pgo\m_lxe.dll+00369728
[ 78] 0x00007ffb7ad33c0d bin\win64\pgo\m_dispatcher.dll+00080909 AutoPushingExecutionFrame::~AutoPushingExecutionFrame+00000765
[ 79] 0x00007ffb7ad338bd bin\win64\pgo\m_dispatcher.dll+00080061 Mfh_file::dispatch_with_reuse+00000045
[ 80] 0x00007ffb77fca62e bin\win64\pgo\m_lxe.dll+00370222
[ 81] 0x00007ffb77fc6436 bin\win64\pgo\m_lxe.dll+00353334
[ 82] 0x00007ffb77fc638f bin\win64\pgo\m_lxe.dll+00353167
[ 83] 0x00007ffb7ab0d550 bin\win64\pgo\m_interpreter.dll+00054608 inCallFcn+00000084
[ 84] 0x00007ffb6389705b C:\Program Files\MATLAB\R2021a\bin\win64\libmwsl_services.dll+02388059 slsv::mxw::WarningHandler::operator=+00005083
[ 85] 0x00007ffb638ab598 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsl_services.dll+02471320 CMatlabCommand::execute+00000152
[ 86] 0x00007ffb638baf44 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsl_services.dll+02535236 slsvFEVAL_NoThrow+00000276
[ 87] 0x00007ffb638bafe0 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsl_services.dll+02535392 slsvFEVAL_NoThrow+00000064
[ 88] 0x00007ffb3e4eb023 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+09154595 SetupToQueryCompiledInfo+00044979
[ 89] 0x00007ffb3e4e24ce C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+09118926 SetupToQueryCompiledInfo+00009310
[ 90] 0x00007ffb3df6ffb1 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+03407793 SLGlue::Listener::safeToGroupTransactions+00008641
[ 91] 0x00007ffb3df81419 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+03478553 ExitPauseInDebuggerMenuSim+00002361
[ 92] 0x00007ffb3ec3329e C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+16790174 SLResolverSupport::string2handle+00006382
[ 93] 0x00007ffb3e8b6b71 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+13134705 gbd_RTWContext+00022049
[ 94] 0x00007ffb3e2d9494 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+06984852 slPreCreateSystem+00074132
[ 95] 0x00007ffb3e8bad57 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+13151575 gbd_RTWContext+00038919
[ 96] 0x00007ffb3e8bb075 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+13152373 gbd_RTWContext+00039717
[ 97] 0x00007ffb3e827745 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+12547909 MaskInterface::valueChangedCB+00023125
[ 98] 0x00007ffb3e2ec38a C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+07062410 SlGraphDomainTypeReg::operator=+00020714
[ 99] 0x00007ffb3e2edcc6 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+07068870 SlGraphDomainTypeReg::operator=+00027174
[100] 0x00007ffb3e2ea423 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+07054371 SlGraphDomainTypeReg::operator=+00012675
[101] 0x00007ffb3e2ebce8 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+07060712 SlGraphDomainTypeReg::operator=+00019016
[102] 0x00007ffb3e33701d C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+07368733 slFullSetParam+00000493
[103] 0x00007ffb47fecfba C:\Program Files\MATLAB\R2021a\bin\win64\sl_proxy_interface.dll+00053178 wrapper_matl_set_param+00000074
[104] 0x00007ffb8b408bea C:\Program Files\MATLAB\R2021a\bin\win64\builtin.dll+00101354 MathWorks::builtin::BuiltinFcn::invoke+00001130
[105] 0x00007ffb7ad44b1c bin\win64\pgo\m_dispatcher.dll+00150300 Mfh_MATLAB_fn_impl::dispatch_mf_with_reuse+00000136
[106] 0x00007ffb7ad33588 bin\win64\pgo\m_dispatcher.dll+00079240 Mfh_MATLAB_fn_impl::dispatch+00000712
[107] 0x00007ffb7ad332ed bin\win64\pgo\m_dispatcher.dll+00078573 Mfh_MATLAB_fn_impl::dispatch+00000045
[108] 0x00007ffb77fc9915 bin\win64\pgo\m_lxe.dll+00366869
[109] 0x00007ffb7803ca9e bin\win64\pgo\m_lxe.dll+00838302 MathWorks::lxe::initializeFcn+00466286
[110] 0x00007ffb77fc8b6f bin\win64\pgo\m_lxe.dll+00363375
[111] 0x00007ffb77fc6c39 bin\win64\pgo\m_lxe.dll+00355385
[112] 0x00007ffb77fe4bd7 bin\win64\pgo\m_lxe.dll+00478167 MathWorks::lxe::initializeFcn+00106151
[113] 0x00007ffb77fe3a71 bin\win64\pgo\m_lxe.dll+00473713 MathWorks::lxe::initializeFcn+00101697
[114] 0x00007ffb77fe3482 bin\win64\pgo\m_lxe.dll+00472194 MathWorks::lxe::initializeFcn+00100178
[115] 0x00007ffb77fe7c03 bin\win64\pgo\m_lxe.dll+00490499 MathWorks::lxe::initializeFcn+00118483
[116] 0x00007ffb77fe78af bin\win64\pgo\m_lxe.dll+00489647 MathWorks::lxe::initializeFcn+00117631
[117] 0x00007ffb77fcfac0 bin\win64\pgo\m_lxe.dll+00391872 MathWorks::lxe::initializeFcn+00019856
[118] 0x00007ffb77fce8eb bin\win64\pgo\m_lxe.dll+00387307 MathWorks::lxe::initializeFcn+00015291
[119] 0x00007ffb77fcd936 bin\win64\pgo\m_lxe.dll+00383286 MathWorks::lxe::initializeFcn+00011270
[120] 0x00007ffb7808e5e7 bin\win64\pgo\m_lxe.dll+01172967 mwboost::serialization::singleton<mwboost::serialization::extended_type_info_typeid<std::basic_string<char16_t,std::char_traits<char16_t>,std::allocator<char16_t> > > >::singleton<mwboost::serialization::extended_type_info_typeid<std::basic_string<char16_t,std::char_traits<char16_t>,std::allocator<char16_t> > > >+00205751
[121] 0x00007ffb77fcabfa bin\win64\pgo\m_lxe.dll+00371706
[122] 0x00007ffb78134b09 bin\win64\pgo\m_lxe.dll+01854217 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>+00045797
[123] 0x00007ffb7ad349f8 bin\win64\pgo\m_dispatcher.dll+00084472 Mfh_MATLAB_fn_impl::need_FunctionExecutionFrame+00000568
[124] 0x00007ffb7ad35f1d bin\win64\pgo\m_dispatcher.dll+00089885 Mfh_file::dispatch+00000045
[125] 0x00007ffb6f563304 bin\win64\pgo\mcos_impl.dll+00406276 mdIsA+00012968
[126] 0x00007ffb6f5469df bin\win64\pgo\mcos_impl.dll+00289247
[127] 0x00007ffb6f55cc06 bin\win64\pgo\mcos_impl.dll+00379910
Program State:
Most Recent Simulink Activity:
extModeHardwareBoardAction : OK in editor 1 at Thu Mar 17 01:28:33 2022
openModelConfigParamAction : OK in editor 1 at Thu Mar 17 01:27:56 2022

回答(1 个)

Pratik
Pratik 2024-1-5
编辑:Pratik 2024-1-7
Hi Raymundo,
As per my understanding, you are facing a crash when trying to make a connection between an Arduino and Simulink to turn on a LED.
From the Stack Trace provided, it can be inferred that the issue is because of “libmwtargetHiddenBlkInsert.dll” file. This issue arises because of a mismatch in the versions of the MATLAB release and the DLL file used in the hardware support packages.
As a workaround, you can do the following after the crash:
  1. Make sure the MATLAB process is killed.
  2. Go to the path mentioned in the stack trace: “C:\ProgramData\MATLAB\SupportPackages\R2021a\bin\win64\simulink_plugins\hardwaresupportpkgs\targets\targetHiddenBlkInsert\libmwtargetHiddenBlkInsert.dll”
  3. Move the “libmwtargetHiddenBlkInsert.dll” file to a different location.
  4. Restart MATLAB.
Please refer to this question on MATLAB Answers for more information:
I Hope this helps.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by