RFsoc blockset example build error!
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
When I built the example "xilinxsoc/RangeDopplerRADARUsingXilinxRFSoCDeviceExample", I met the error! It seems miss the "soc_range_doppler_proc.c". The matlab messages are "### 启动串行模型引用代码生成编译。
### 检查 'soc_range_doppler_top_sw' 中使用的模型 'soc_range_doppler_proc' 的模型引用代码生成目标的状态。
### 模型 soc_range_doppler_proc 的模型引用代码生成目标(soc_range_doppler_proc.c)已过期,因为二进制信息缓存不存在。包含二进制信息缓存的 slprj 文件夹可能已删除。
### 正在启动 soc_range_doppler_proc 的编译过程
### 正在为 '模型特定' 文件夹结构生成代码和工件
### 正在将代码生成到编译文件夹中: C:\Users\fang\Documents\MATLAB\Examples\R2023b\xilinxsoc\RangeDopplerRADARUsingXilinxRFSoCDeviceExample\slprj\ert\soc_range_doppler_proc
警告: Model reference Accelerator, SIL, or PIL modes do not support logging data with a Scope block configured to
save data to the workspace. Logging with a To Workspace block in model reference Accelerator mode is only supported
for Timeseries format, and is not supported for model reference SIL or PIL mode. Model 'soc_range_doppler_proc'
contains an unsupported logging combination of model reference simulation mode and Scope block or To Workspace
block configuration. Data is not being logged to the workspace. To avoid this message, set the 'Configuration
Parameters > Diagnostics > Model Referencing > Unsupported data logging' parameter to 'none'.
警告: 模型 'soc_range_doppler_proc' 的标识符被截断以满足最大标识符长度设置。标识符长度不能超过 31 个字符。
标识符 类型 格式
=================================================
soc_range_doppler__PeriodicIndX 全局变量 $R$N$M
RT_MODEL_soc_range_doppler_pr_T 全局变量 $R$N$M
soc_range_doppler_pro_XAbsTol_c 全局变量 $R$N$M
ExtUSize_soc_range_doppler_pr_T 全局类型 $N$R$M_T
ConstB_soc_range_doppler_pr_h_T 全局类型 $N$R$M_T
self_DopplerProcessing_soc_ra_T 全局类型 $N$R$M_T
建议的操作:
• 不再显示此消息。 - 修复
• 增大最大标识符长度(可能会影响被引用模型或引用模型)。 - 打开
• 更改标识符格式。 - 打开
### Invoking Target Language Compiler on soc_range_doppler_proc.rtw
### Using System Target File: C:\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 soc_range_doppler_proc_types.h
.
### Writing header file soc_range_doppler_proc.h
### Writing source file soc_range_doppler_proc.c
### Writing header file soc_range_doppler_proc_private.h
### TLC code generation complete (took 1.325s).
..### 正在保存二进制信息缓存。
### 使用工具链: Linaro AArch64 Linux v6.3.1
### 正在创建 'C:\Users\fang\Documents\MATLAB\Examples\R2023b\xilinxsoc\RangeDopplerRADARUsingXilinxRFSoCDeviceExample\slprj\ert\soc_range_doppler_proc\soc_range_doppler_proc.mk'...
### 正在编译 'soc_range_doppler_proc_rtwlib': "C:\PROGRA~1\MATLAB\R2023b\bin\win64\gmake" -f soc_range_doppler_proc.mk all
C:\Users\fang\Documents\MATLAB\Examples\R2023b\xilinxsoc\RangeDopplerRADARUsingXilinxRFSoCDeviceExample\slprj\ert\soc_range_doppler_proc>cd .
C:\Users\fang\Documents\MATLAB\Examples\R2023b\xilinxsoc\RangeDopplerRADARUsingXilinxRFSoCDeviceExample\slprj\ert\soc_range_doppler_proc>if "all" == "" ("C:\PROGRA~1\MATLAB\R2023b\bin\win64\gmake" -f soc_range_doppler_proc.mk all ) else ("C:\PROGRA~1\MATLAB\R2023b\bin\win64\gmake" -f soc_range_doppler_proc.mk all )
C:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/3P778C~1.INS/LINARO~1.INS/bin/aarch64-linux-gnu-gcc -c -MMD -MP -MF"mw_axi_register.c.dep" -MT"mw_axi_register.c.o" -O0 -std=c99 -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=1 -D_GNU_SOURCE -DTID01EQ=0 -DARM_PROJECT -DMW_EXTMODE_RECV_TIMEOUT_USEC=10 -DSTACK_SIZE=64 -DRT -DMODEL=soc_range_doppler_proc -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/fang/Documents/MATLAB/Examples/R2023b/xilinxsoc/RangeDopplerRADARUsingXilinxRFSoCDeviceExample -IC:/PROGRA~1/MATLAB/R2023b/toolbox/shared/soc/processor/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/target/shared/ioplayback/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/shared/libiio/base/include -IC:/Users/fang/Documents/MATLAB/Examples/R2023b/xilinxsoc/RangeDopplerRADARUsingXilinxRFSoCDeviceExample/slprj/ert/soc_range_doppler_proc -IC:/PROGRA~1/MATLAB/R2023b/extern/include -IC:/PROGRA~1/MATLAB/R2023b/simulink/include -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/ert -IC:/Users/fang/Documents/MATLAB/Examples/R2023b/xilinxsoc/RangeDopplerRADARUsingXilinxRFSoCDeviceExample/slprj/ert/_sharedutils -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/zynq/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/zynq/include -Icodertarget.arm_cortex_a.internal.getSpPkgRootDir/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/target/codertarget/rtos/inc -o mw_axi_register.c.o C:/PROGRA~1/MATLAB/R2023b/toolbox/shared/soc/processor/src/mw_axi_register.c
C:/PROGRA~1/MATLAB/R2023b/toolbox/shared/soc/processor/src/mw_axi_register.c: In function 'MW_AXI_Register_Read':
C:/PROGRA~1/MATLAB/R2023b/toolbox/shared/soc/processor/src/mw_axi_register.c:300:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if(!(((uint32_t)src) & 0x3) && !(dataLength & 0x3))
^
C:/PROGRA~1/MATLAB/R2023b/toolbox/shared/soc/processor/src/mw_axi_register.c:310:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
else if(!(((uint32_t)src) & 0x1) && !(dataLength & 0x1))
^
C:/PROGRA~1/MATLAB/R2023b/toolbox/shared/soc/processor/src/mw_axi_register.c: In function 'MW_AXI_Register_Write':
C:/PROGRA~1/MATLAB/R2023b/toolbox/shared/soc/processor/src/mw_axi_register.c:387:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if(!(((uint32_t)dest) & 0x3) && !(dataLength & 0x3))
^
C:/PROGRA~1/MATLAB/R2023b/toolbox/shared/soc/processor/src/mw_axi_register.c:397:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
else if(!(((uint32_t)dest) & 0x1) && !(dataLength & 0x1))
^
C:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/3P778C~1.INS/LINARO~1.INS/bin/aarch64-linux-gnu-gcc -c -MMD -MP -MF"mw_linux_udp.c.dep" -MT"mw_linux_udp.c.o" -O0 -std=c99 -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=1 -D_GNU_SOURCE -DTID01EQ=0 -DARM_PROJECT -DMW_EXTMODE_RECV_TIMEOUT_USEC=10 -DSTACK_SIZE=64 -DRT -DMODEL=soc_range_doppler_proc -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/fang/Documents/MATLAB/Examples/R2023b/xilinxsoc/RangeDopplerRADARUsingXilinxRFSoCDeviceExample -IC:/PROGRA~1/MATLAB/R2023b/toolbox/shared/soc/processor/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/target/shared/ioplayback/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/shared/libiio/base/include -IC:/Users/fang/Documents/MATLAB/Examples/R2023b/xilinxsoc/RangeDopplerRADARUsingXilinxRFSoCDeviceExample/slprj/ert/soc_range_doppler_proc -IC:/PROGRA~1/MATLAB/R2023b/extern/include -IC:/PROGRA~1/MATLAB/R2023b/simulink/include -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/ert -IC:/Users/fang/Documents/MATLAB/Examples/R2023b/xilinxsoc/RangeDopplerRADARUsingXilinxRFSoCDeviceExample/slprj/ert/_sharedutils -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/zynq/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/zynq/include -Icodertarget.arm_cortex_a.internal.getSpPkgRootDir/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/target/codertarget/rtos/inc -o mw_linux_udp.c.o C:/PROGRA~1/MATLAB/R2023b/toolbox/shared/soc/processor/src/mw_linux_udp.c
C:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/3P778C~1.INS/LINARO~1.INS/bin/aarch64-linux-gnu-gcc -c -MMD -MP -MF"MW_linuxUDP.c.dep" -MT"MW_linuxUDP.c.o" -O0 -std=c99 -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=1 -D_GNU_SOURCE -DTID01EQ=0 -DARM_PROJECT -DMW_EXTMODE_RECV_TIMEOUT_USEC=10 -DSTACK_SIZE=64 -DRT -DMODEL=soc_range_doppler_proc -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/fang/Documents/MATLAB/Examples/R2023b/xilinxsoc/RangeDopplerRADARUsingXilinxRFSoCDeviceExample -IC:/PROGRA~1/MATLAB/R2023b/toolbox/shared/soc/processor/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/target/shared/ioplayback/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/shared/libiio/base/include -IC:/Users/fang/Documents/MATLAB/Examples/R2023b/xilinxsoc/RangeDopplerRADARUsingXilinxRFSoCDeviceExample/slprj/ert/soc_range_doppler_proc -IC:/PROGRA~1/MATLAB/R2023b/extern/include -IC:/PROGRA~1/MATLAB/R2023b/simulink/include -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/ert -IC:/Users/fang/Documents/MATLAB/Examples/R2023b/xilinxsoc/RangeDopplerRADARUsingXilinxRFSoCDeviceExample/slprj/ert/_sharedutils -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/zynq/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/zynq/include -Icodertarget.arm_cortex_a.internal.getSpPkgRootDir/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/target/codertarget/rtos/inc -o MW_linuxUDP.c.o C:/PROGRA~1/MATLAB/R2023b/toolbox/shared/soc/processor/src/MW_linuxUDP.c
C:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/3P778C~1.INS/LINARO~1.INS/bin/aarch64-linux-gnu-gcc -c -MMD -MP -MF"iio_helper.c.dep" -MT"iio_helper.c.o" -O0 -std=c99 -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=1 -D_GNU_SOURCE -DTID01EQ=0 -DARM_PROJECT -DMW_EXTMODE_RECV_TIMEOUT_USEC=10 -DSTACK_SIZE=64 -DRT -DMODEL=soc_range_doppler_proc -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/fang/Documents/MATLAB/Examples/R2023b/xilinxsoc/RangeDopplerRADARUsingXilinxRFSoCDeviceExample -IC:/PROGRA~1/MATLAB/R2023b/toolbox/shared/soc/processor/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/target/shared/ioplayback/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/shared/libiio/base/include -IC:/Users/fang/Documents/MATLAB/Examples/R2023b/xilinxsoc/RangeDopplerRADARUsingXilinxRFSoCDeviceExample/slprj/ert/soc_range_doppler_proc -IC:/PROGRA~1/MATLAB/R2023b/extern/include -IC:/PROGRA~1/MATLAB/R2023b/simulink/include -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2023b/rtw/c/ert -IC:/Users/fang/Documents/MATLAB/Examples/R2023b/xilinxsoc/RangeDopplerRADARUsingXilinxRFSoCDeviceExample/slprj/ert/_sharedutils -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/zynq/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/zynq/include -Icodertarget.arm_cortex_a.internal.getSpPkgRootDir/include -IC:/PROGRA~1/MATLAB/R2023b/toolbox/target/codertarget/rtos/inc -o iio_helper.c.o C:/ProgramData/MATLAB/SupportPackages/R2023b/toolbox/shared/libiio/base/src/iio_helper.c
C:/ProgramData/MATLAB/SupportPackages/R2023b/toolbox/shared/libiio/base/src/iio_helper.c:2:17: fatal error: iio.h: No such file or directory
#include "iio.h"
^
compilation terminated.
gmake: *** [iio_helper.c.o] Error 1
C:\Users\fang\Documents\MATLAB\Examples\R2023b\xilinxsoc\RangeDopplerRADARUsingXilinxRFSoCDeviceExample\slprj\ert\soc_range_doppler_proc>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\fang\Documents\MATLAB\Examples\R2023b\xilinxsoc\RangeDopplerRADARUsingXilinxRFSoCDeviceExample\slprj\ert\soc_range_doppler_proc>exit /B 1
### soc_range_doppler_proc 的编译过程因错误而中止。
编译摘要
编译的代码生成目标:
模型 操作 重新编译原因
==========================================
soc_range_doppler_proc 失败 代码生成信息文件不存在。
编译的顶层模型目标:
模型 操作 重新编译原因
============================================
soc_range_doppler_top_sw 失败 代码生成信息文件不存在。
编译了 0 个模型,共 2 个模型(0 个模型已经是最新的)
编译持续时间: 0h 0m 27.684s".
How can I sovle it?
0 Commenti
Risposte (1)
akshatsood
il 17 Set 2024
Modificato: akshatsood
il 17 Set 2024
Upon reviewing the build logs, I see that the you may not have installed the necessary third-party tools after installing the support package. Please verify if you have completed the setup for the support package. If not, kindly follow the steps provided in the following page to complete the setup. This process will install the required third-party tools and create a Linux image for the hardware board:
I hope this helps.
2 Commenti
akshatsood
il 18 Set 2024
Please refer the following MathWorks documentation for more information
Vedere anche
Categorie
Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!