nucleo F103做闪灯实验时,编译出问题
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
### 正在启动 STM32F103_BK 的编译过程
### 正在为 '模型特定' 文件夹结构生成代码和工件
### 正在将代码生成到编译文件夹中: D:\simulink\STM\STM32F103_BK_ert_rtw
### Invoking Target Language Compiler on STM32F103_BK.rtw
### Using System Target File: D:\Program Files\MATLAB\R2023b\rtw\c\ert\ert.tlc
### Loading TLC function libraries
.......
### Initial pass through model to cache user defined code
.
### Caching model source code
..............................
### Writing header file STM32F103_BK_types.h
### Writing header file STM32F103_BK.h
### Writing header file rtwtypes.h
.
### Writing source file STM32F103_BK.c
### Writing header file STM32F103_BK_private.h
### Writing source file STM32F103_BK_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
.
### TLC code generation complete (took 2.081s).
### 正在保存二进制信息缓存。
### 使用工具链: GNU Tools for ARM Embedded Processors
### 'D:\simulink\STM\STM32F103_BK_ert_rtw\STM32F103_BK.mk' 是最新的
### 正在编译 'STM32F103_BK': "D:\Program Files\MATLAB\R2023b\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f STM32F103_BK.mk all
D:\simulink\STM\STM32F103_BK_ert_rtw>call "\\LAPTOP-B5OMHLNA\D$\Program Files\MATLAB\R2023b\bin\win64\checkMATLABRootForDriveMap.exe" "\\LAPTOP-B5OMHLNA\D$\Program Files\MATLAB\R2023b" 1>mlEnv.txt
D:\simulink\STM\STM32F103_BK_ert_rtw>for /F %a in (mlEnv.txt) do set "%a"\n
D:\simulink\STM\STM32F103_BK_ert_rtw>set "MATLAB_ROOT=G:"\n
D:\simulink\STM\STM32F103_BK_ert_rtw>set "ALT_MATLAB_ROOT=G:"\n
D:\simulink\STM\STM32F103_BK_ert_rtw>set "MATLAB_BIN=G:\bin"\n
D:\simulink\STM\STM32F103_BK_ert_rtw>set "ALT_MATLAB_BIN=G:\bin"\n
D:\simulink\STM\STM32F103_BK_ert_rtw>cd .
D:\simulink\STM\STM32F103_BK_ert_rtw>if "all" == "" ("D:\Program Files\MATLAB\R2023b\bin\win64\gmake" MATLAB_ROOT=G: ALT_MATLAB_ROOT=G: MATLAB_BIN=G:\bin ALT_MATLAB_BIN=G:\bin -f STM32F103_BK.mk all ) else ("D:\Program Files\MATLAB\R2023b\bin\win64\gmake" MATLAB_ROOT=G: ALT_MATLAB_ROOT=G: MATLAB_BIN=G:\bin ALT_MATLAB_BIN=G:\bin -f STM32F103_BK.mk all )
"win/bin/arm-none-eabi-g++" -std=gnu++14 -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -Wall -MMD -MP -MF"MW_digitalIO.dep" -MT"MW_digitalIO.o" -c -O0 -mcpu=cortex-m3 -mthumb -fdata-sections -ffunction-sections -fmessage-length=0 -fno-delete-null-pointer-checks -fomit-frame-pointer -funsigned-char -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wvla -include mbed_config.h -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DARM_MATH_CM3 -DCOMPONENT_NSPE=1 -DCOMPONENT_PSA_SRV_EMUL=1 -DCOMPONENT_PSA_SRV_IMPL=1 -DDEVICE_ANALOGIN=1 -DDEVICE_CAN=1 -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_I2CSLAVE=1 -DDEVICE_I2C_ASYNCH=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_PORTIN=1 -DDEVICE_PORTINOUT=1 -DDEVICE_PORTOUT=1 -DDEVICE_PWMOUT=1 -DDEVICE_RTC=1 -DDEVICE_SERIAL=1 -DDEVICE_SERIAL_ASYNCH=1 -DDEVICE_SERIAL_FC=1 -DDEVICE_SLEEP=1 -DDEVICE_SPI=1 -DDEVICE_SPISLAVE=1 -DDEVICE_SPI_ASYNCH=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_USTICKER=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DMBED_RAM_SIZE=0x5000 -DMBED_RAM_START=0x20000000 -DMBED_ROM_SIZE=0x20000 -DMBED_ROM_START=0x8000000 -DMBED_TRAP_ERRORS_ENABLED=1 -DNULL=0 -DSTM32F103xB -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_FAMILY_STM32 -DTARGET_FF_ARDUINO -DTARGET_FF_MORPHO -DTARGET_LIKE_CORTEX_M3 -DTARGET_LIKE_MBED -DTARGET_M3 -DTARGET_NAME=NUCLEO_F103RB -DTARGET_NUCLEO_F103RB -DTARGET_RELEASE -DTARGET_STM32F103RB -DTARGET_STM32F1 -DTARGET_STM -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_object -DTRANSACTION_QUEUE_SIZE_SPI=2 -DXCP_CUSTOM_PLATFORM -D__CORTEX_M3 -D__MBED__=1 -DDEVICE_WATCHDOG=1 -DDEVICE_RESET_REASON=1 -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DSTACK_SIZE=64 -DRT -DMODEL=STM32F103_BK -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 @STM32F103_BK_comp.rsp -o "MW_digitalIO.o" "C:/ProgramData/MATLAB/SupportPackages/R2023b/toolbox/target/supportpackages/mbed/src/MW_digitalIO.cpp"
系统找不到指定的路径。
gmake: *** [MW_digitalIO.o] Error 1
D:\simulink\STM\STM32F103_BK_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
D:\simulink\STM\STM32F103_BK_ert_rtw>exit /B 1
### STM32F103_BK 的编译过程因错误而中止。
0 comentarios
Respuestas (1)
Goutham Varanasi
el 2 de Abr. de 2024
Hi
This is due to the improper installation of support package.
Consider performing the clean - reinstallaiton as mentioned in the following post :
Regards
Goutham
0 comentarios
Ver también
Categorías
Más información sobre STMicroelectronics Discovery Boards en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!