This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] IWR6843AOPEVM:UNIFLASH 在 Aarch64 CPU architeecture 上不工作。 已使用 qemu 尝试 Docker 解决方法、但程序失败且没有错误消息。

Guru**** 681440 points
Other Parts Discussed in Thread: IWR6843AOP, UNIFLASH
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/1220358/iwr6843aopevm-uniflash-not-working-on-aarch64-cpu-architeecture-tried-a-docker-workaround-using-qemu-but-the-program-fail-without-error-message

器件型号:IWR6843AOPEVM
主题中讨论的其他器件:IWR6843AOPUNIFLASH

您好!  

我尝试使用 基于 Aarch64 ARM 的 SOM 来刷写 iwr6843aop 雷达。  

其目的是能够通过物联网设备将新图像刷写到雷达。

这一点非常重要、因为我们不必使用其他计算机手动刷写每个设备。

我执行的第一步是从 uniflash 生成独立的命令行包:  

生成的软件包可以与我的 AMD64计算机配合使用,这里没问题。

问题是、当我尝试 在 aarch64 SOM 上运行 dslite-Cortex_R4_0.sh 脚本时:

正在执行:"CCS"/CCS_BASE/DebugServer/bin/DSLite /home/ubuntu/cmd_uniflash serial -c USER_FILES/configs/iwr6843AOP.ccxml -l user_files/settings/generated.ufsettings -s VerifyAfterProgramLoad="No verification"-e -f "USER_FILES/images/3D_PERSION_COUNT_68xx_demo_BAUDRATE.bin"、1"
./dslite-Cortex_R4_0.sh:第36行:/home/ubuntu/cmd_uniflash/ccs_base/DebugServer/bin/DSLite:不能执行二进制文件:Exec 格式错误

这是正常的、因为仅为 AMD64体系结构生成 uniflash 包。

然后我尝试使用 Docker 在 Aarch64 SoM 上运行 AMD64体系结构的仿真:  

我所做的步骤:  

#停止 qemu 仿真以用于 AMD64体系结构

sudo docker run --特权--rm tonistiigi/binfmt --安装 amd64

#运行 Ubuntu Docker 并打印 CPU 架构

sudo docker run --platform Linux/amd64 --rm -t ubuntu:latest uname -m

x86_64

#然后我安装 uniflash 包并运行 AMD64 Ubuntu Docker

sudo docker run -v /home/ubuntu/cmd_uniflash:/home --privacy -v /dev/ttyUSB0:/dev/ttyUSB0  --rm -ti --platform linux/amd64 ubuntu: latest bin/bash

root@67390caac26f:/home#./dslite-Cortex_R4_0.sh

root@67390caac26f:/home# ./dslite-Cortex_R4_0.sh 
Executing: "/home"/ccs_base/DebugServer/bin/DSLite serial -c user_files/configs/iwr6843AOP.ccxml -l user_files/settings/generated.ufsettings -s VerifyAfterProgramLoad="No verification" -e -f "user_files/images/3D_people_count_68xx_demo_BAUDRATE.bin,1"
DSLite version 12.2.0.2919
Configuring Debugger (may take a few minutes on first launch)...
	Parsing connections/Serial_Connection.xml
	Parsing drivers/serial_debugssm.xml
	Parsing drivers/serial_csdap.xml
	Parsing drivers/serial_cortexr.xml
	Parsing drivers/serial_cschild.xml
	Parsing drivers/serial_csetb.xml
	Parsing drivers/serial_icepick_m.xml
	Parsing drivers/serial_c674x.xml
	Parsing devices/iwr6843AOP.xml
	Parsing routers/debugssm.xml
	Parsing routers/cs_dap.xml
	Parsing ../Modules/cs_dap_NotVisible.xml
	Parsing ../Modules/AP/CFGAP.xml
	Parsing ../Modules/AP/PWRAP.xml
	Parsing ../Modules/AP/SECAP.xml
	Parsing cpus/cortex_r4.xml
	Parsing ./arm_user_mode_regs.xml
	Parsing ./arm_fiq_mode_regs.xml
	Parsing ./arm_svc_mode_regs.xml
	Parsing ./arm_abt_mode_regs.xml
	Parsing ./arm_irq_mode_regs.xml
	Parsing ./arm_und_mode_regs.xml
	Parsing ./arm_allbanked_mode_regs.xml
	Parsing ../Modules/cortexR4_NotVisible.xml
	Parsing ../Modules/cortexR/cortexR_Debug.xml
	Parsing ../Modules/cortexR/cortexR_System.xml
	Parsing ../Modules/radar/DSS_REG.xml
	Parsing ../Modules/radar/DSS_REG2.xml
	Parsing ../Modules/radar/DSS_CBUFF.xml
	Parsing ../Modules/radar/DSS_HW_ACC_PARAM.xml
	Parsing ../Modules/radar/DSS_HW_ACC.xml
	Parsing ../Modules/radar/MSS_TOPRCM.xml
	Parsing ../Modules/radar/MSS_RCM.xml
	Parsing ../Modules/radar/MSS_GPCFG_REG.xml
	Parsing ../Modules/radar/MSS_IOMUX.xml
	Parsing ../Modules/radar/MSS_DMM.xml
	Parsing ../Modules/radar/MSS_DMM2.xml
	Parsing ../Modules/radar/MSS_ETPWM1.xml
	Parsing ../Modules/radar/MSS_ETPWM2.xml
	Parsing ../Modules/radar/MSS_ETPWM3.xml
	Parsing ../Modules/radar/MSS_DTHE.xml
	Parsing ../Modules/radar/MSS_AES.xml
	Parsing ../Modules/radar/MSS_PKA.xml
	Parsing ../Modules/radar/MSS_SHA.xml
	Parsing ../Modules/radar/MSS_TRNG.xml
	Parsing ../Modules/radar/MSS_GIO.xml
	Parsing ../Modules/radar/MSS_DMA_REG.xml
	Parsing ../Modules/radar/MSS_VIM.xml
	Parsing ../Modules/radar/MSS_RTIA.xml
	Parsing ../Modules/radar/MSS_RTIB.xml
	Parsing ../Modules/radar/MSS_QSPI.xml
	Parsing ../Modules/radar/MSS_MIBSPIA.xml
	Parsing ../Modules/radar/MSS_MIBSPIB.xml
	Parsing ../Modules/radar/MSS_SCIA.xml
	Parsing ../Modules/radar/MSS_SCIB.xml
	Parsing ../Modules/radar/MSS_I2C.xml
	Parsing ../Modules/radar/TPTC.xml
	Parsing ../Modules/radar/TPCC.xml
	Parsing ../Modules/radar/xwr16xx/MSS_MCRC.xml
	Parsing ../Modules/radar/MSS_DCCA.xml
	Parsing ../Modules/radar/MSS_DCCB.xml
	Parsing ../Modules/radar/MSS_ESM.xml
	Parsing ../Modules/radar/MAILBOX.xml
	Parsing cpus/cs_child.xml
	Parsing cpus/csetb.xml
	Parsing ../Modules/etb_hidden_registers.xml
	Parsing routers/icepick_m.xml
	Parsing cpus/c674x.xml
	Parsing ../Modules/64x+NotVisible.xml
	Parsing ../Modules/c6000RegisterPairs.xml
	Parsing ../Modules/radar/xwr16xx/DSP_ICFG.xml
	Parsing ../Modules/radar/DSS_REG.xml
	Parsing ../Modules/radar/DSS_REG2.xml
	Parsing ../Modules/radar/DSS_CBUFF.xml
	Parsing ../Modules/radar/DSS_ADCBUF.xml
	Parsing ../Modules/radar/DSS_SCI.xml
	Parsing ../Modules/radar/DSS_HW_ACC_PARAM.xml
	Parsing ../Modules/radar/DSS_HW_ACC.xml
	Parsing ../Modules/radar/TPTC.xml
	Parsing ../Modules/radar/TPCC.xml
	Parsing ../Modules/radar/MSS_RTIA.xml
	Parsing ../Modules/radar/MSS_RTIB.xml
	Parsing ../Modules/radar/MSS_ESM.xml
	Parsing ../Modules/radar/xwr16xx/MSS_MCRC.xml
	Parsing ../Modules/radar/MAILBOX.xml
	Initializing Register Database...
	Creating tables and indexes...
	Parsing /home/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS3CXX_regids.xml
	Parsing /home/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS320C674X_regids.xml
	Parsing /home/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS470R4X_regids.xml
	Parsing /home/ccs_base/common/targetdb/drivers/TI_reg_ids/ICEPick_C_regids.xml
	Parsing /home/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS470RXX_regids.xml
	Parsing /home/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS470RDX_regids.xml
	Parsing /home/ccs_base/common/targetdb/drivers/TI_reg_ids/ICEPick_D_regids.xml
	Parsing /home/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS320C6XXX_regids.xml
	Parsing /home/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS320C64XX_regids.xml
	Parsing /home/ccs_base/common/targetdb/drivers/TI_reg_ids/CS_DAP_0_regids.xml
	Parsing /home/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS320C66XX_regids.xml
	Parsing /home/ccs_base/common/targetdb/drivers/TI_reg_ids/CS_DAP_PC_0_regids.xml
	Parsing /home/ccs_base/common/targetdb/drivers/TI_reg_ids/ICEPick_M_regids.xml
	Parsing /home/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS470R25X_regids.xml
	Parsing /root/.ti/0/0/10641219968313519757.cache
	Parsing /home/ccs_base/common/targetdb/Modules/cs_dap_NotVisible.xml
	Parsing /home/ccs_base/common/targetdb/Modules/AP/CFGAP.xml
	Parsing /home/ccs_base/common/targetdb/Modules/AP/PWRAP.xml
	Parsing /home/ccs_base/common/targetdb/Modules/AP/SECAP.xml
	Parsing /home/ccs_base/common/targetdb/cpus/arm_user_mode_regs.xml
	Parsing /home/ccs_base/common/targetdb/cpus/arm_fiq_mode_regs.xml
	Parsing /home/ccs_base/common/targetdb/cpus/arm_svc_mode_regs.xml
	Parsing /home/ccs_base/common/targetdb/cpus/arm_abt_mode_regs.xml
	Parsing /home/ccs_base/common/targetdb/cpus/arm_irq_mode_regs.xml
	Parsing /home/ccs_base/common/targetdb/cpus/arm_und_mode_regs.xml
	Parsing /home/ccs_base/common/targetdb/cpus/arm_allbanked_mode_regs.xml
	Parsing /home/ccs_base/common/targetdb/Modules/cortexR4_NotVisible.xml
	Parsing /home/ccs_base/common/targetdb/Modules/cortexR/cortexR_Debug.xml
	Parsing /home/ccs_base/common/targetdb/Modules/cortexR/cortexR_System.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/DSS_REG.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/DSS_REG2.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/DSS_CBUFF.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/DSS_HW_ACC_PARAM.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/DSS_HW_ACC.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_TOPRCM.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_RCM.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_GPCFG_REG.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_IOMUX.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_DMM.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_DMM2.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_ETPWM1.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_ETPWM2.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_ETPWM3.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_DTHE.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_AES.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_PKA.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_SHA.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_TRNG.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_GIO.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_DMA_REG.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_VIM.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_RTIA.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_RTIB.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_QSPI.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_MIBSPIA.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_MIBSPIB.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_SCIA.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_SCIB.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_I2C.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/TPTC.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/TPCC.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/xwr16xx/MSS_MCRC.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_DCCA.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_DCCB.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MSS_ESM.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/MAILBOX.xml
	Parsing /home/ccs_base/common/targetdb/Modules/etb_hidden_registers.xml
	Parsing /home/ccs_base/common/targetdb/Modules/64x+NotVisible.xml
	Parsing /home/ccs_base/common/targetdb/Modules/c6000RegisterPairs.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/xwr16xx/DSP_ICFG.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/DSS_ADCBUF.xml
	Parsing /home/ccs_base/common/targetdb/Modules/radar/DSS_SCI.xml
	Initializing: DEBUGSSM_0
	Mapping registers: DEBUGSSM_0 - Core Registers
	Building search data: DEBUGSSM_0
	Executing Startup Scripts: DEBUGSSM_0
	Initializing: CS_DAP_0
	Mapping registers: CS_DAP_0 - Core Registers
	Mapping registers: CS_DAP_0 - Hidden
	Building search data: CS_DAP_0
	Executing Startup Scripts: CS_DAP_0
	Initializing: Cortex_R4_0
	Mapping registers: Cortex_R4_0 - Core Registers
	Mapping registers: Cortex_R4_0 - USER_Registers
	Mapping registers: Cortex_R4_0 - FIQ_Registers
	Mapping registers: Cortex_R4_0 - Supervisor_Registers
	Mapping registers: Cortex_R4_0 - Abort_Registers
	Mapping registers: Cortex_R4_0 - IRQ_Registers
	Mapping registers: Cortex_R4_0 - Undefined_Registers
	Mapping registers: Cortex_R4_0 - All_Banked_Registers
	Mapping registers: Cortex_R4_0 - Debug_Registers
	Mapping registers: Cortex_R4_0 - System_Registers
	Mapping registers: Cortex_R4_0 - DSS_REG
	Mapping registers: Cortex_R4_0 - DSS_REG2
	Mapping registers: Cortex_R4_0 - DSS_CBUFF
	Mapping registers: Cortex_R4_0 - DSS_HW_ACC_PARAM
	Mapping registers: Cortex_R4_0 - DSS_HW_ACC
	Mapping registers: Cortex_R4_0 - TOPRCM
	Mapping registers: Cortex_R4_0 - RCM
	Mapping registers: Cortex_R4_0 - GPCFG_REG
	Mapping registers: Cortex_R4_0 - IOMUX
	Mapping registers: Cortex_R4_0 - DMM
	Mapping registers: Cortex_R4_0 - DMM2
	Mapping registers: Cortex_R4_0 - ETPWM1
	Mapping registers: Cortex_R4_0 - ETPWM2
	Mapping registers: Cortex_R4_0 - ETPWM3
	Mapping registers: Cortex_R4_0 - DTHE
	Mapping registers: Cortex_R4_0 - AES
	Mapping registers: Cortex_R4_0 - PKA
	Mapping registers: Cortex_R4_0 - SHA
	Mapping registers: Cortex_R4_0 - TRNG
	Mapping registers: Cortex_R4_0 - GIO
	Mapping registers: Cortex_R4_0 - DMA1
	Mapping registers: Cortex_R4_0 - DMA2
	Mapping registers: Cortex_R4_0 - VIM
	Mapping registers: Cortex_R4_0 - RTIA
	Mapping registers: Cortex_R4_0 - RTIB
	Mapping registers: Cortex_R4_0 - QSPI
	Mapping registers: Cortex_R4_0 - MIBSPIA
	Mapping registers: Cortex_R4_0 - MIBSPIB
	Mapping registers: Cortex_R4_0 - SCIA
	Mapping registers: Cortex_R4_0 - SCIB
	Mapping registers: Cortex_R4_0 - I2C
	Mapping registers: Cortex_R4_0 - TPTC0
	Mapping registers: Cortex_R4_0 - TPTC1
	Mapping registers: Cortex_R4_0 - TPTC2
	Mapping registers: Cortex_R4_0 - TPTC3
	Mapping registers: Cortex_R4_0 - TPCC0
	Mapping registers: Cortex_R4_0 - TPCC1
	Mapping registers: Cortex_R4_0 - CRC
	Mapping registers: Cortex_R4_0 - DCCA
	Mapping registers: Cortex_R4_0 - DCCB
	Mapping registers: Cortex_R4_0 - ESM
	Mapping registers: Cortex_R4_0 - MBX_DSS2MSS
	Mapping registers: Cortex_R4_0 - MBX_MSS2DSS
	Mapping registers: Cortex_R4_0 - MBX_MSS2RSS
	Mapping registers: Cortex_R4_0 - MBX_RSS2MSS
	Mapping registers: Cortex_R4_0 - Hidden
	Building search data: Cortex_R4_0
	Applying virtual groups: Cortex_R4_0 - PARAMSET
	Applying virtual groups: Cortex_R4_0 - DSS_REG
	Applying virtual groups: Cortex_R4_0 - DSS_CBUFF
	Applying virtual groups: Cortex_R4_0 - DSS_HW_ACC_PARAM
	Applying virtual groups: Cortex_R4_0 - SHA
	Applying virtual groups: Cortex_R4_0 - DMA1
	Applying virtual groups: Cortex_R4_0 - DMA2
	Applying virtual groups: Cortex_R4_0 - TPCC0
	Applying virtual groups: Cortex_R4_0 - TPCC1
	Executing Startup Scripts: Cortex_R4_0
	Initializing: ETM_0
	Executing Startup Scripts: ETM_0
	Initializing: CSETB_0
	Mapping registers: CSETB_0 - Core Registers
	Mapping registers: CSETB_0 - Hidden
	Building search data: CSETB_0
	Executing Startup Scripts: CSETB_0
	Initializing: IcePick_M_0
	Mapping registers: IcePick_M_0 - Core Registers
	Building search data: IcePick_M_0
	Executing Startup Scripts: IcePick_M_0
	Initializing: C674X_0
	Mapping registers: C674X_0 - Core Registers
	Mapping registers: C674X_0 - RegisterPairs
	Mapping registers: C674X_0 - DSP_ICFG
	Mapping registers: C674X_0 - DSS_REG
	Mapping registers: C674X_0 - DSS_REG2
	Mapping registers: C674X_0 - DSS_CBUFF
	Mapping registers: C674X_0 - DSS_ADCBUF
	Mapping registers: C674X_0 - DSS_SCI
	Mapping registers: C674X_0 - DSS_HW_ACC_PARAM
	Mapping registers: C674X_0 - DSS_HW_ACC
	Mapping registers: C674X_0 - TPTC0
	Mapping registers: C674X_0 - TPTC1
	Mapping registers: C674X_0 - TPTC2
	Mapping registers: C674X_0 - TPTC3
	Mapping registers: C674X_0 - TPCC0
	Mapping registers: C674X_0 - TPCC1
	Mapping registers: C674X_0 - RTIA
	Mapping registers: C674X_0 - RTIB
	Mapping registers: C674X_0 - ESM
	Mapping registers: C674X_0 - CRC
	Mapping registers: C674X_0 - MBX_DSS2MSS
	Mapping registers: C674X_0 - MBX_MSS2DSS
	Mapping registers: C674X_0 - MBX_DSS2RSS
	Mapping registers: C674X_0 - MBX_RSS2DSS
	Mapping registers: C674X_0 - Hidden
	Building search data: C674X_0
	Applying virtual groups: C674X_0 - PARAMSET
	Applying virtual groups: C674X_0 - DSP_ICFG
	Applying virtual groups: C674X_0 - DSS_REG
	Applying virtual groups: C674X_0 - DSS_CBUFF
	Applying virtual groups: C674X_0 - DSS_HW_ACC_PARAM
	Applying virtual groups: C674X_0 - TPCC0
	Applying virtual groups: C674X_0 - TPCC1
	Executing Startup Scripts: C674X_0
Connecting...
Loading Images
Loading python script at: /home/ccs_base/mmWave/gen1/FlashPython.py
	Initialization of uniflash object completed
	Initialization complete.: 1%
info: Cortex_R4_0: Initialization complete.
info: Cortex_R4_0: Flashing process starting...
info: Cortex_R4_0: Connecting to COM Port /dev/ttyUSB0...
info: Cortex_R4_0: Reset connection to device
info: Cortex_R4_0: Set break signal
	Opening COM port /dev/ttyUSB0...: 1%
terminate called after throwing an instance of 'boost::python::error_already_set'
Aborted (core dumped)

一切似乎工作正常(编译明智),但它失败,当它正在打开 COM 端口:  

信息:Cortex_R4_0:设定中断信号
打开 COM 端口/dev/ttyUSB0...:1%
抛出"boost:python::error_alance_set"实例后终止调用
中止(磁芯已转储)

我得到的错误是:在抛出"boost::python::error_alance_set"的实例后调用的 terminate  

我不知道错误是什么或是否可以解决(通过更改某些 Docker 参数)。  

我想知道这个误差是什么以及如何使其正常工作。  

谢谢、祝你愉快