Simulink Arduino Crash after compile
1 次查看(过去 30 天)
显示 更早的评论
I use r2018a. I have a Simulink model and I try to write a PWM on an Arduino Leonardo.After compiling it crashes and I get this:
-------------------------------------------------------------------------------- std::terminate() detected at Sat Nov 03 08:48:51 2018 +0200 --------------------------------------------------------------------------------
Configuration: Crash Decoding : Disabled - No sandbox or build area path Crash Mode : continue (default) Default Encoding : windows-1252 Deployed : false Graphics Driver : Microsoft Corporation GDI Generic Version 1.1.0 Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA GeForce 920MX Version 25.21.14.1634 (2018-10-10) Graphics card 2 : Intel Corporation ( 0x8086 ) Intel® HD Graphics 520 Version 23.20.16.4973 (2018-2-28) Java Version : Java 1.8.0_144-b01 with Oracle Corporation Java HotSpot™ 64-Bit Server VM mixed mode MATLAB Architecture : win64 MATLAB Entitlement ID : 6257193 MATLAB Root : D:\Program Files MATLAB Version : 9.4.0.813654 (R2018a) OpenGL : software Operating System : Microsoft Windows 10 Education Process ID : 10204 Processor ID : x86 Family 6 Model 78 Stepping 3, GenuineIntel Session Key : 7ed70528-34fa-4a18-88bc-33bf3f4e6789 Window System : Version 10.0 (Build 17134)
Fault Count: 2
Abnormal termination
Register State (from fault): RAX = 000000001c946a00 RBX = 00000000043f4540 RCX = 0001000000180000 RDX = 00000002cc016320 RSP = 00000000043f44c0 RBP = 00000000043f45a0 RSI = 000000001c912760 RDI = 00000000043f45f0
R8 = 00000001f5edd250 R9 = 000000001c9124c8
R10 = fefefefefefefeff R11 = 00000000043f4360
R12 = 00000000212de890 R13 = 0000000000000000
R14 = 0000000015d14870 R15 = 00000000000077b5
RIP = 000000002164749d EFL = 00010202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault): [ 0] 0x000000002164749d bin\win64\pgo\mcos_impl.dll+00291997 [ 1] 0x000000002166ff26 bin\win64\pgo\mcos_impl.dll+00458534 [ 2] 0x000000002168ee9d bin\win64\pgo\mcos_impl.dll+00585373 [ 3] 0x00000000109969c9 bin\win64\pgo\libmx.dll+00158153 matrix::detail::noninlined::mx_array_api::mxCreateOpaqueArray+00002029 [ 4] 0x0000000010996488 bin\win64\pgo\libmx.dll+00156808 matrix::detail::noninlined::mx_array_api::mxCreateOpaqueArray+00000684 [ 5] 0x00000000109960e4 bin\win64\pgo\libmx.dll+00155876 matrix::detail::noninlined::mx_array_api::mxFindClass+00000048 [ 6] 0x000000002168c66e bin\win64\pgo\mcos_impl.dll+00575086 [ 7] 0x000000002168d787 bin\win64\pgo\mcos_impl.dll+00579463 [ 8] 0x00000000164d40bd bin\win64\pgo\m_dispatcher.dll+00016573 mdFindImport+00002569 [ 9] 0x00000000164e5b23 bin\win64\pgo\m_dispatcher.dll+00088867 Mdispatcher::build_singleton+00000135 [ 10] 0x00000000164e3bc2 bin\win64\pgo\m_dispatcher.dll+00080834 Mdispatcher::set_Constructor+00001670 [ 11] 0x00000000164e7532 bin\win64\pgo\m_dispatcher.dll+00095538 Mdispatcher::lookup+00000082 [ 12] 0x0000000017491eed bin\win64\pgo\m_lxe.dll+02105069 mwboost::serialization::singleton<mwboost::archive::detail::pointer_oserializer<mwboost::archive::binary_oarchive,MathWorks::lxe::PreLineExecutionEvent> >::get_instance+00410445 [ 13] 0x0000000017491e65 bin\win64\pgo\m_lxe.dll+02104933 mwboost::serialization::singleton<mwboost::archive::detail::pointer_oserializer<mwboost::archive::binary_oarchive,MathWorks::lxe::PreLineExecutionEvent> >::get_instance+00410309 [ 14] 0x0000000017491dcd bin\win64\pgo\m_lxe.dll+02104781 mwboost::serialization::singleton<mwboost::archive::detail::pointer_oserializer<mwboost::archive::binary_oarchive,MathWorks::lxe::PreLineExecutionEvent> >::get_instance+00410157 [ 15] 0x000000001693af10 bin\win64\pgo\m_parser.dll+00110352 LEXER_T<char>::LEXER_T<char>+00032976 [ 16] 0x000000001693e90f bin\win64\pgo\m_parser.dll+00125199 LEXER_T<char>::LEXER_T<char>+00047823 [ 17] 0x000000001693e39e bin\win64\pgo\m_parser.dll+00123806 LEXER_T<char>::LEXER_T<char>+00046430 [ 18] 0x000000001693be34 bin\win64\pgo\m_parser.dll+00114228 LEXER_T<char>::LEXER_T<char>+00036852 [ 19] 0x00000000169396c5 bin\win64\pgo\m_parser.dll+00104133 LEXER_T<char>::LEXER_T<char>+00026757 [ 20] 0x000000001693783b bin\win64\pgo\m_parser.dll+00096315 LEXER_T<char>::LEXER_T<char>+00018939 [ 21] 0x0000000016937d16 bin\win64\pgo\m_parser.dll+00097558 LEXER_T<char>::LEXER_T<char>+00020182 [ 22] 0x00000000169396c5 bin\win64\pgo\m_parser.dll+00104133 LEXER_T<char>::LEXER_T<char>+00026757 [ 23] 0x0000000016942312 bin\win64\pgo\m_parser.dll+00140050 mps_count_formal_outputs<char>+00001954 [ 24] 0x00000000169370b3 bin\win64\pgo\m_parser.dll+00094387 LEXER_T<char>::LEXER_T<char>+00017011 [ 25] 0x0000000016937d16 bin\win64\pgo\m_parser.dll+00097558 LEXER_T<char>::LEXER_T<char>+00020182 [ 26] 0x00000000169396c5 bin\win64\pgo\m_parser.dll+00104133 LEXER_T<char>::LEXER_T<char>+00026757 [ 27] 0x000000001693783b bin\win64\pgo\m_parser.dll+00096315 LEXER_T<char>::LEXER_T<char>+00018939 [ 28] 0x0000000016937d16 bin\win64\pgo\m_parser.dll+00097558 LEXER_T<char>::LEXER_T<char>+00020182 [ 29] 0x0000000016945d81 bin\win64\pgo\m_parser.dll+00155009 mps_count_formal_outputs<char>+00016913 [ 30] 0x0000000016942b4d bin\win64\pgo\m_parser.dll+00142157 mps_count_formal_outputs<char>+00004061 [ 31] 0x0000000016943629 bin\win64\pgo\m_parser.dll+00144937 mps_count_formal_outputs<char>+00006841 [ 32] 0x000000001694659e bin\win64\pgo\m_parser.dll+00157086 mps_count_formal_outputs<char>+00018990 [ 33] 0x0000000016938273 bin\win64\pgo\m_parser.dll+00098931 LEXER_T<char>::LEXER_T<char>+00021555 [ 34] 0x000000001693502c bin\win64\pgo\m_parser.dll+00086060 LEXER_T<char>::LEXER_T<char>+00008684 [ 35] 0x0000000016932413 bin\win64\pgo\m_parser.dll+00074771 mps_parse_tree_to_IR<char>+00000491 [ 36] 0x0000000016931fdf bin\win64\pgo\m_parser.dll+00073695 in_parse_M_function_for_lxe+00000475 [ 37] 0x00000000173b3030 bin\win64\pgo\m_lxe.dll+01191984 mwboost::serialization::singleton<mwboost::archive::detail::pointer_iserializer<mwboost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00353296 [ 38] 0x00000000173b1f81 bin\win64\pgo\m_lxe.dll+01187713 mwboost::serialization::singleton<mwboost::archive::detail::pointer_iserializer<mwboost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00349025 [ 39] 0x00000000172c3a70 bin\win64\pgo\m_lxe.dll+00211568 [ 40] 0x00000000172c3b36 bin\win64\pgo\m_lxe.dll+00211766 [ 41] 0x00000000172c4328 bin\win64\pgo\m_lxe.dll+00213800 [ 42] 0x00000000164e1fbc bin\win64\pgo\m_dispatcher.dll+00073660 Mlm_file::load_mf+00000100 [ 43] 0x00000000164e1874 bin\win64\pgo\m_dispatcher.dll+00071796 Mlm_MATLAB_fn::try_load+00000048 [ 44] 0x00000000164e1a8f bin\win64\pgo\m_dispatcher.dll+00072335 Mlm_MATLAB_fn::load+00000059 [ 45] 0x00000000216928ad bin\win64\pgo\mcos_impl.dll+00600237 [ 46] 0x00000000216701dd bin\win64\pgo\mcos_impl.dll+00459229 [ 47] 0x0000000021684c35 bin\win64\pgo\mcos_impl.dll+00543797 [ 48] 0x000000002182327a bin\win64\pgo\mcos_impl.dll+02241146 QueryMLFcnTable_mcos_impl+01474378 [ 49] 0x00000001bf5d4e9b bin\win64\scopesutil.dll+00216731 scopesutil::ScopesVisualInit::done+00001979 [ 50] 0x00000000ee5b3e9d bin\win64\performance.dll+00212637 Performance::CooperativeTaskManager::Task::process+00000125 [ 51] 0x00000000ee5b2d16 bin\win64\performance.dll+00208150 Performance::CooperativeTaskManager::OrderedTaskSession::onProcess+00000214 [ 52] 0x00000000ee5b3e9d bin\win64\performance.dll+00212637 Performance::CooperativeTaskManager::Task::process+00000125 [ 53] 0x00000000ee5b3089 bin\win64\performance.dll+00209033 Performance::CooperativeTaskManager::RoundRobinTaskSession::onProcess+00000473 [ 54] 0x00000000ee5b3e9d bin\win64\performance.dll+00212637 Performance::CooperativeTaskManager::Task::process+00000125 [ 55] 0x00000000ee5b469d bin\win64\performance.dll+00214685 Performance::CooperativeTaskManager::shutDown+00000365 [ 56] 0x00000000ee58a46a bin\win64\performance.dll+00042090 [ 57] 0x00000000ee59d86c bin\win64\performance.dll+00120940 Performance::Pauseable::operator=+00002188 [ 58] 0x00000000ee58320f bin\win64\performance.dll+00012815 [ 59] 0x00000000ee58a426 bin\win64\performance.dll+00042022 [ 60] 0x00000000ee584313 bin\win64\performance.dll+00017171 [ 61] 0x00000000ee5a1c56 bin\win64\performance.dll+00138326 Performance::Pauseable::operator=+00019574 [ 62] 0x00000000fd014f67 bin\win64\iqm.dll+00544615 iqm::IqmPlugin<cmddistributor::PackagedTaskIIP>::getIIP+00016215 [ 63] 0x00000000fd01567f bin\win64\iqm.dll+00546431 iqm::PackagedTaskPlugin::execute+00000911 [ 64] 0x00000000fd014fed bin\win64\iqm.dll+00544749 iqm::IqmPlugin<cmddistributor::PackagedTaskIIP>::getIIP+00016349 [ 65] 0x00000000fd0154c3 bin\win64\iqm.dll+00545987 iqm::PackagedTaskPlugin::execute+00000467 [ 66] 0x0000000016214931 bin\win64\mcr.dll+00411953 mcrRegisterExternalFunction+00064417 [ 67] 0x00000000fcfed9ea bin\win64\iqm.dll+00383466 iqm::Iqm::setupIqmFcnPtrs+00071994 [ 68] 0x00000000fcfed84c bin\win64\iqm.dll+00383052 iqm::Iqm::setupIqmFcnPtrs+00071580 [ 69] 0x00000000fcfcdf0b bin\win64\iqm.dll+00253707 iqm::Iqm::deliver+00001659 [ 70] 0x00000000fb5fdd33 bin\win64\libmwbridge.dll+00056627 ioReadLine+00000595 [ 71] 0x00000000fb5fdbc3 bin\win64\libmwbridge.dll+00056259 ioReadLine+00000227 [ 72] 0x00000000fb60b78b bin\win64\libmwbridge.dll+00112523 mnDebugPrompt+00001979 [ 73] 0x00000000fb60b110 bin\win64\libmwbridge.dll+00110864 mnDebugPrompt+00000320 [ 74] 0x00000000fb60baed bin\win64\libmwbridge.dll+00113389 mnParser+00000589 [ 75] 0x00000000161e6564 bin\win64\mcr.dll+00222564 mcr::runtime::setInterpreterThreadSingletonToCurrent+00091332 [ 76] 0x00000000161e97ae bin\win64\mcr.dll+00235438 mcr::runtime::setInterpreterThreadSingletonToCurrent+00104206 [ 77] 0x0000000016206c8a bin\win64\mcr.dll+00355466 mcrRegisterExternalFunction+00007930 [ 78] 0x00000000162089bc bin\win64\mcr.dll+00362940 mcrRegisterExternalFunction+00015404 [ 79] 0x0000000016205bff bin\win64\mcr.dll+00351231 mcrRegisterExternalFunction+00003695 [ 80] 0x0000000016206c46 bin\win64\mcr.dll+00355398 mcrRegisterExternalFunction+00007862 [ 81] 0x0000000016205ce3 bin\win64\mcr.dll+00351459 mcrRegisterExternalFunction+00003923 [ 82] 0x0000000016208ff6 bin\win64\mcr.dll+00364534 mcrRegisterExternalFunction+00016998 [ 83] 0x00000000fd014f67 bin\win64\iqm.dll+00544615 iqm::IqmPlugin<cmddistributor::PackagedTaskIIP>::getIIP+00016215 [ 84] 0x00000000fd01567f bin\win64\iqm.dll+00546431 iqm::PackagedTaskPlugin::execute+00000911 [ 85] 0x00000000fd014fed bin\win64\iqm.dll+00544749 iqm::IqmPlugin<cmddistributor::PackagedTaskIIP>::getIIP+00016349 [ 86] 0x00000000fd0154c3 bin\win64\iqm.dll+00545987 iqm::PackagedTaskPlugin::execute+00000467 [ 87] 0x00000000fcfed9ea bin\win64\iqm.dll+00383466 iqm::Iqm::setupIqmFcnPtrs+00071994 [ 88] 0x00000000fcfed84c bin\win64\iqm.dll+00383052 iqm::Iqm::setupIqmFcnPtrs+00071580 [ 89] 0x00000000fcfce722 bin\win64\iqm.dll+00255778 iqm::Iqm::deliver+00003730 [ 90] 0x00000000fcfcf749 bin\win64\iqm.dll+00259913 iqm::Iqm::deliver+00007865 [ 91] 0x00000001001aa211 bin\win64\libmwservices.dll+01810961 services::system_events::PpeDispatchHook::dispatchOne+00030865 [ 92] 0x00000001001b7ff3 bin\win64\libmwservices.dll+01867763 sysq::addProcessPendingEventsUnitTestHook+00004659 [ 93] 0x00000001001b81e0 bin\win64\libmwservices.dll+01868256 sysq::addProcessPendingEventsUnitTestHook+00005152 [ 94] 0x00000001001b9576 bin\win64\libmwservices.dll+01873270 sysq::getCondition+00003446 [ 95] 0x00000001001bb0e6 bin\win64\libmwservices.dll+01880294 svWS_ProcessPendingEvents+00000230 [ 96] 0x00000000161f0737 bin\win64\mcr.dll+00263991 mcr::runtime::setInterpreterThreadSingletonToCurrent+00132759 [ 97] 0x00000000161f2360 bin\win64\mcr.dll+00271200 mcr::runtime::setInterpreterThreadSingletonToCurrent+00139968 [ 98] 0x00000000161ce9b7 bin\win64\mcr.dll+00125367 mcr_process_events+00001959 [ 99] 0x000000001611fef5 bin\win64\MVMLocal.dll+00327413 mvm_server::inproc::LocalFactory::terminate+00139589 [100] 0x00000000fa9605b9 bin\win64\mvm.dll+01246649 mvm::detail::initLocalMvmHack+00000793 [101] 0x00000000fa960dcb bin\win64\mvm.dll+01248715 mvm::detail::SessionImpl::privateSession+00000555 [102] 0x00000000fa960ff1 bin\win64\mvm.dll+01249265 mvm::detail::SessionImpl::privateSession+00001105 [103] 0x000000014000780d bin\win64\MATLAB.exe+00030733 [104] 0x000000014000862f bin\win64\MATLAB.exe+00034351 [105] 0x00007ffa641b3034 C:\WINDOWS\System32\KERNEL32.DLL+00077876 BaseThreadInitThunk+00000020 [106] 0x00007ffa66c01461 C:\WINDOWS\SYSTEM32\ntdll.dll+00463969 RtlUserThreadStart+00000033
Abnormal termination
Register State (captured): RAX = 00000000fea22ef8 RBX = 0000000000000000 RCX = 00000000043fa490 RDX = 0000000000000000 RSP = 00000000043fa410 RBP = 00000000043fb190 RSI = 00000000fea22ef8 RDI = 00000000fea22ef8
R8 = 0000604e21e081b4 R9 = 00007ffa49fa0000
R10 = 00000000fe95a298 R11 = 00000000fea1658d
R12 = 00000000043faad0 R13 = 00000000fea12e28
R14 = 00000000fea22e78 R15 = 0000000000000000
RIP = 00000000fe81c44a EFL = 00000202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (captured): [ 0] 0x00000000fe816063 bin\win64\libmwfl.dll+00155747 foundation::core::diag::thread_context::unspecified_bool+00000051 [ 1] 0x00000000fe814658 bin\win64\libmwfl.dll+00149080 foundation::core::diag::stacktrace_base::capture+00000024 [ 2] 0x00000000fe817f68 bin\win64\libmwfl.dll+00163688 foundation::core::diag::symbols::getSymbolAddress+00007448 [ 3] 0x00000000fe81b0a7 bin\win64\libmwfl.dll+00176295 foundation::core::diag::is_terminate_message_enabled+00000455 [ 4] 0x0000000016290790 bin\win64\mcr.dll+00919440 QueryMLFcnTable_mcr+00039280 [ 5] 0x00000000162901f1 bin\win64\mcr.dll+00918001 QueryMLFcnTable_mcr+00037841 [ 6] 0x00000000162902c8 bin\win64\mcr.dll+00918216 QueryMLFcnTable_mcr+00038056 [ 7] 0x000000001628d098 bin\win64\mcr.dll+00905368 QueryMLFcnTable_mcr+00025208 [ 8] 0x0000000016291747 bin\win64\mcr.dll+00923463 mnSetSegvServiceUrl+00000231 [ 9] 0x00007ffa49fa4a74 D:\Program Files\bin\win64\VCRUNTIME140.dll+00019060 purecall+00000052 [ 10] 0x00000000173067df bin\win64\pgo\m_lxe.dll+00485343 [ 11] 0x00000000172ce987 bin\win64\pgo\m_lxe.dll+00256391 [ 12] 0x00000000172f8035 bin\win64\pgo\m_lxe.dll+00426037 [ 13] 0x00000000172f70c9 bin\win64\pgo\m_lxe.dll+00422089 [ 14] 0x00000000172cf4ca bin\win64\pgo\m_lxe.dll+00259274 [ 15] 0x0000000018c2ccd0 bin\win64\pgo\m_lxe.dll+26856656 mwboost::archive::detail::pointer_oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::CodeClearEvent>::save_object_ptr+00022676 [ 16] 0x0000000018c91559 bin\win64\pgo\m_lxe.dll+27268441 FeatureTestInplace+00008981 [ 17] 0x00000000fb60b916 bin\win64\libmwbridge.dll+00112918 mnParser+00000118 [ 18] 0x00000000161e6564 bin\win64\mcr.dll+00222564 mcr::runtime::setInterpreterThreadSingletonToCurrent+00091332 [ 19] 0x00000000161e97ae bin\win64\mcr.dll+00235438 mcr::runtime::setInterpreterThreadSingletonToCurrent+00104206 [ 20] 0x0000000016206c8a bin\win64\mcr.dll+00355466 mcrRegisterExternalFunction+00007930 [ 21] 0x00000000162089bc bin\win64\mcr.dll+00362940 mcrRegisterExternalFunction+00015404 [ 22] 0x0000000016205bff bin\win64\mcr.dll+00351231 mcrRegisterExternalFunction+00003695 [ 23] 0x0000000016206c46 bin\win64\mcr.dll+00355398 mcrRegisterExternalFunction+00007862 [ 24] 0x0000000016205ce3 bin\win64\mcr.dll+00351459 mcrRegisterExternalFunction+00003923 [ 25] 0x0000000016208ff6 bin\win64\mcr.dll+00364534 mcrRegisterExternalFunction+00016998 [ 26] 0x00000000fd014f67 bin\win64\iqm.dll+00544615 iqm::IqmPlugin<cmddistributor::PackagedTaskIIP>::getIIP+00016215 [ 27] 0x00000000fd01567f bin\win64\iqm.dll+00546431 iqm::PackagedTaskPlugin::execute+00000911 [ 28] 0x00000000fd014fed bin\win64\iqm.dll+00544749 iqm::IqmPlugin<cmddistributor::PackagedTaskIIP>::getIIP+00016349 [ 29] 0x00000000fd0154c3 bin\win64\iqm.dll+00545987 iqm::PackagedTaskPlugin::execute+00000467 [ 30] 0x00000000fcfed9ea bin\win64\iqm.dll+00383466 iqm::Iqm::setupIqmFcnPtrs+00071994 [ 31] 0x00000000fcfed84c bin\win64\iqm.dll+00383052 iqm::Iqm::setupIqmFcnPtrs+00071580 [ 32] 0x00000000fcfce722 bin\win64\iqm.dll+00255778 iqm::Iqm::deliver+00003730 [ 33] 0x00000000fcfcf749 bin\win64\iqm.dll+00259913 iqm::Iqm::deliver+00007865 [ 34] 0x00000001001aa211 bin\win64\libmwservices.dll+01810961 services::system_events::PpeDispatchHook::dispatchOne+00030865 [ 35] 0x00000001001b7ff3 bin\win64\libmwservices.dll+01867763 sysq::addProcessPendingEventsUnitTestHook+00004659 [ 36] 0x00000001001b81e0 bin\win64\libmwservices.dll+01868256 sysq::addProcessPendingEventsUnitTestHook+00005152 [ 37] 0x00000001001b9576 bin\win64\libmwservices.dll+01873270 sysq::getCondition+00003446 [ 38] 0x00000001001bb0e6 bin\win64\libmwservices.dll+01880294 svWS_ProcessPendingEvents+00000230 [ 39] 0x00000000161f0737 bin\win64\mcr.dll+00263991 mcr::runtime::setInterpreterThreadSingletonToCurrent+00132759 [ 40] 0x00000000161f2360 bin\win64\mcr.dll+00271200 mcr::runtime::setInterpreterThreadSingletonToCurrent+00139968 [ 41] 0x00000000161ce9b7 bin\win64\mcr.dll+00125367 mcr_process_events+00001959 [ 42] 0x000000001611fef5 bin\win64\MVMLocal.dll+00327413 mvm_server::inproc::LocalFactory::terminate+00139589 [ 43] 0x00000000fa9605b9 bin\win64\mvm.dll+01246649 mvm::detail::initLocalMvmHack+00000793 [ 44] 0x00000000fa960dcb bin\win64\mvm.dll+01248715 mvm::detail::SessionImpl::privateSession+00000555 [ 45] 0x00000000fa960ff1 bin\win64\mvm.dll+01249265 mvm::detail::SessionImpl::privateSession+00001105 [ 46] 0x000000014000780d bin\win64\MATLAB.exe+00
The video drive is up to date. I also put the Matlab folder on the whitelist of the antivirus. Did someone here faced this issue and solved it ?
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!