Error Launcher:s​tartApplic​ation(): error with getApplica​tionExecut​able()

19 views (last 30 days)
Santhosh Aralaguppi
Santhosh Aralaguppi on 13 Apr 2020
Answered: tang sx on 18 Nov 2021
Steps followed
1) Selected the right UART & COM port for executing the External mode.
2) used board is NUCLEO-F412
3) I was able to run the filter example in PIL mode.
Checking if target application is running... Unable to detect target application status.
Simulation
5 6 1
Elapsed: 51 sec
The "ARM CMSIS SIN COS" code replacement library includes the standard math library "C89/C90 (ANSI)". To avoid this warning, you can specify the code replacement library as "None" or remove the base CRL specification if applicable, then select the desired math library via the standard math library (TargetLangStandard) parameter.
Component:Simulink | Category:Model warning
### Real-Time Workshop build procedure for method: 'entry' ### Starting Real-Time Workshop build procedure for model: 'ExternalMode_ADC' ### STM32CubeMx version in usage is: 5.200000e+00 ### Windows version: 'win64' *** stm32_make_rtw_hook(): 'RTWVerbose' is: 'on' *** stm32_make_rtw_hook(): 'SimulationMode' is: 'external' ### Model connectivity is: 'external' ### Create verification block: None (External mode) ### External mode parameters: 0,4,115200,10 ### Verbose : 0 ### Port : 4 ### Speed : 115200 ### Data length : 8 ### Parity : none ### Stop bit : 1 ### Flow control : none ### Time out : 10 *** stm32_make_rtw_hook(): Found '.\ExternalMode_ADC.ioc' from Simulink model ### Generating code and artifacts to 'Model specific' folder structure
Code Generation
3 5
Elapsed: 29 sec
### Generating code into build folder: C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32 ----------->SFUNC MODE: SS_SIMMODE_RTWGEN ----------->Model reference Simulink(R) Coder(TM) target is building ----------->SFUNC MODE: SS_SIMMODE_RTWGEN ----------->Model reference Simulink(R) Coder(TM) target is building ----------->SFUNC MODE: SS_SIMMODE_RTWGEN ----------->Model reference Simulink(R) Coder(TM) target is building ----------->SFUNC MODE: SS_SIMMODE_RTWGEN ----------->Model reference Simulink(R) Coder(TM) target is building
Source 'ExternalMode_ADC/ADC_Read' specifies that its sample time (-1) is back-inherited. You should explicitly specify the sample time of sources. You can disable this diagnostic by setting the 'Source block specifies -1 sample time' diagnostic to 'none' in the Sample Time group on the Diagnostics pane of the Configuration Parameters dialog box.
Component:Simulink | Category:Block warning
### Generated code for 'ExternalMode_ADC' is up to date because no structural, parameter or code replacement library changes were found. ### Real-Time Workshop build procedure for method: 'before_tlc' *** stm32_make_rtw_hook(): 'ExternalMode_ADC' has ModelReferenceTargetType set to: 'NONE' *** stm32_make_rtw_hook(): updateTlcCustomizationOfMain(ExternalMode_ADC,1,external) *** stm32_make_rtw_hook(): updateTlcCustomizationOfMain(): -> 'EXT' ### Real-Time Workshop build procedure for method: 'after_tlc' ### Real-Time Workshop build procedure for method: 'before_make' . ### Processing Template Makefile: C:\MATLAB\STM32-MAT\STM32\rtw\stm32.tmf ### C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\ExternalMode_ADC.mk which is generated from C:\MATLAB\STM32-MAT\STM32\rtw\stm32.tmf is up to date ### Building ExternalMode_ADC: .\ExternalMode_ADC.bat C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32>set MATLAB=C:\Program Files\MATLAB\R2019b C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32>"C:\Program Files\MATLAB\R2019b\bin\win64\gmake" -f ExternalMode_ADC.mk GENERATE_ASAP2=0 ISPROTECTINGMODEL=NOTPROTECTING OPTS="-DEXT_MODE -DON_TARGET_WAIT_FOR_START=1" ### BUILD_MODE : real_time ### PRODUCT : ExternalMode_ADC.out ### SHRLIBTARGET : 0 ### MODULES : ExternalMode_ADC_ADC.c ExternalMode_ADC_data.c main.c stm32xxxx_it.c rtiostream_utils.c ### MODELREF_TARGET_TYPE : NONE ### MAKEFILEBUILDER_TGT : 0 ### STANDALONE_SUPPRESS_EXE : 0 ### Source ExternalMode_ADC_ADC.c done ### Source ExternalMode_ADC_data.c done ### Source main.c done ### Source stm32xxxx_it.c done ### Source C:/PROGRA~1/MATLAB/R2019b/toolbox/coder/rtiostream/src/utils/rtiostream_utils.c done ### Source ExternalMode_ADC.c done ### Ending ExternalMode_ADC.out real_time ### Created ExternalMode_ADC.out successfully (or it was already up to date) ### Real-Time Workshop build procedure for method: 'after_make' ### Real-Time Workshop build procedure for method: 'exit' ### Successful completion of Real-Time Workshop build procedure for model: 'ExternalMode_ADC' *** stm32_make_rtw_hook(): working in: C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32 *** stm32_make_rtw_hook(): Found 'C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC.ioc' from Simulink model ### Parse STM32CubeMX ioc configuration file: 'C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC.ioc' ### Parse ioc configuration file: 'C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_extMode.ioc' to select USART for External mode. ### USART found in ioc configuration file: 'C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_extMode.ioc' *** stm32_make_rtw_hook(): Working on 'C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_extMode.ioc' ### Copy generated files into STM32CubeMX working repository. *** stm32_make_rtw_hook(): copyModelFiles2(ExternalMode_ADC,ARM_MATH_CM4,C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32,C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC) *** stm32_make_rtw_hook(): copyModelFiles2(): Loading build informations from: C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\buildInfo.mat
Warning: Directory already exists.
Warning: Directory already exists.
Warning: Directory already exists.
Warning: Directory already exists.
### Preparing C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Inc\STM32SerialRtiostream_Config.h with USART2 *** stm32_make_rtw_hook(): copyModelFiles2(): Trying: C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\.extSettings *** stm32_make_rtw_hook(): copyModelFiles2(): C:\MATLAB\STM32-MAT\STM32\ext\stm32SerialRtiostream\STM32SerialRtiostream.c -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Src\STM32SerialRtiostream.c done *** stm32_make_rtw_hook(): copyModelFiles2(): Skipping rt_main.c *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Program Files\MATLAB\R2019b\rtw\c\src\ext_mode\common\ext_svr.c -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Src\ext_svr.c done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Program Files\MATLAB\R2019b\rtw\c\src\ext_mode\common\ext_work.c -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Src\ext_work.c done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Program Files\MATLAB\R2019b\rtw\c\src\ext_mode\common\updown.c -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Src\updown.c done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Program Files\MATLAB\R2019b\toolbox\coder\rtiostream\src\utils\rtiostream_utils.c -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Src\rtiostream_utils.c done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\ExternalMode_ADC.c -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Src\ExternalMode_ADC.c done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\ExternalMode_ADC_ADC.c -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Src\ExternalMode_ADC_ADC.c done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\ExternalMode_ADC_data.c -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Src\ExternalMode_ADC_data.c done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\main.c -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\Src\main.c done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\stm32xxxx_it.c -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\Src\stm32f4xx_it.c done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\MATLAB\STM32-MAT\STM32\ext\stm32SerialRtiostream\STM32SerialRtiostream.h -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Inc\STM32SerialRtiostream.h done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Program Files\MATLAB\R2019b\toolbox\coder\rtiostream\src\utils\rtiostream_utils.h -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Inc\rtiostream_utils.h done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\ExternalMode_ADC.h -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Inc\ExternalMode_ADC.h done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\ExternalMode_ADC_ADC.h -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Inc\ExternalMode_ADC_ADC.h done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\ExternalMode_ADC_External_Functions.h -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Inc\ExternalMode_ADC_External_Functions.h done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\ExternalMode_ADC_dt.h -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Inc\ExternalMode_ADC_dt.h done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\ExternalMode_ADC_private.h -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Inc\ExternalMode_ADC_private.h done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\ExternalMode_ADC_types.h -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Inc\ExternalMode_ADC_types.h done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\STM32_Config.h -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Inc\STM32_Config.h done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\multiword_types.h -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Inc\multiword_types.h done *** stm32_make_rtw_hook(): copyModelFiles2(): C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_stm32\rtwtypes.h -> C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC\Inc\rtwtypes.h done ### Parse STM32CubeMX ioc configuration file: 'C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_extMode.ioc' *** stm32_make_rtw_hook(): writeScript(C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\.script1,C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_extMode.ioc) *** stm32_make_rtw_hook(): writeScript()< *** stm32_make_rtw_hook(): writeScript(C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\.script3,C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\ExternalMode_ADC_extMode.ioc) ### Open Project popup window will appear. Set openProject preference to 0 if you do not want to see it. *** stm32_make_rtw_hook(): writeScript()< *** stm32_make_rtw_hook(): startStm32CubeMx(): java -jar "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe" -q "C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\.script1" ### Open STM32CubeMX for configuration and project code generation. *** stm32_make_rtw_hook(): startStm32CubeMx(): java -jar "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe" -q "C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC\.script3" ### External mode downloaded command successfully fired.
Build process completed successfully Deploying external mode target application. *** Launcher:computeStm32CubeMxIde(): EWARM V8 ### The toolchain for the target: 'EWARM V8' *** Launcher:startApplication(): working in: C:\Santhosh\Study_Work\MatLab\MATLAB_STM32_1\ExternalMode_ADC
Launcher:startApplication(): error with getApplicationExecutable()

Answers (1)

tang sx
tang sx on 18 Nov 2021
I am also having this problem with keil . Any solution to it?
MATLAB 2020b
CubeMX 6.3
STM32 MAT/TARGET 5.6
keil 5.35

Tags

Products

Community Treasure Hunt

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

Start Hunting!

Translated by