WARNING: /home/xyc/work/petalinux_prj/20230518/zynq_petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/5.10+git999-r0/temp/run.do_kernel_configme.126308:414 exit 1 from 'exit 1' WARNING: Backtrace (BB generated script): #1: bbfatal, /home/xyc/work/petalinux_prj/20230518/zynq_petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/5.10+git999-r0/temp/run.do_kernel_configme.126308, line 414 #2: do_kernel_metadata, /home/xyc/work/petalinux_prj/20230518/zynq_petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/5.10+git999-r0/temp/run.do_kernel_configme.126308, line 251 #3: do_kernel_configme, /home/xyc/work/petalinux_prj/20230518/zynq_petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/5.10+git999-r0/temp/run.do_kernel_configme.126308, line 152 #4: main, /home/xyc/work/petalinux_prj/20230518/zynq_petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/5.10+git999-r0/temp/run.do_kernel_configme.126308, line 459 Backtrace (metadata-relative locations): #1: bbfatal, /home/xyc/work/petalinux_prj/20230518/zynq_petalinux/components/yocto/layers/core/meta/classes/logging.bbclass, line 60 #2: do_kernel_metadata, /home/xyc/work/petalinux_prj/20230518/zynq_petalinux/components/yocto/layers/core/meta/classes/kernel-yocto.bbclass, line 159 #3: do_kernel_configme, /home/xyc/work/petalinux_prj/20230518/zynq_petalinux/components/yocto/layers/core/meta/classes/kernel-yocto.bbclass, line 395 ERROR: Logfile of failure stored in: /home/xyc/work/petalinux_prj/20230518/zynq_petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/5.10+git999-r0/temp/log.do_kernel_configme.126308 NOTE: recipe linux-xlnx-5.10+git999-r0: task do_kernel_configme: Failed ERROR: Task (/home/xyc/work/petalinux_prj/20230518/zynq_petalinux/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2021.1.bb:do_kernel_configme) failed with exit code '1' NOTE: recipe libgcc-initial-10.2.0-r0: task do_configure: Succeeded NOTE: Tasks Summary: Attempted 545 tasks of which 0 didn't need to be rerun and 1 failed. ERROR: bitbake failed to configure u-boot ERROR: Failed to config u-boot. Check the /home/xyc/work/petalinux_prj/20230518/zynq_petalinux/build/config.log file for more details...
时间: 2023-06-25 14:08:25 浏览: 285
这段错误信息是在进行 Petalinux 项目编译时出现的。其中关键信息是 "Failed to config u-boot",可能是由于配置 u-boot 时出现了错误导致编译失败。建议检查 /home/xyc/work/petalinux_prj/20230518/zynq_petalinux/build/config.log 文件,查看更多详细信息以确定错误原因并进行修复。
相关问题
void OscDispAutoMagic(unsigned char Data,u32 SizeX,u32 SizeY,u32 OffsetX,u32 OffsetY) { static u32 pos=0; static s32 x=0,y=0,z=0; static u32 id=0; #ifdef PWMlightMode if(id==0) { PAout(7)=0; #endif DAC->DHR12RD=MapData[LDcnt]; LDcnt++; if(LDcnt>=LDlen) { LDcnt=0; PAout(6)=0; } else PAout(6)=1; #ifdef PWMlightMode } else PAout(7)=1; id=(id+1)%2; #endif } u8 DispPoi=0; void TIM3_IRQHandler(void)//当 TIM3 定时器发生中断时,它会清除中断标志位,并以特定参数调用 OscDispAutoMagic 函数。 { if(TIM3->SR) { TIM3->SR=0; OscDispAutoMagic((u8)0,64,64,0,0); } } extern int Msg_PathFin; #define DPMax2 (MaxDots*2) extern u8 DotPath[DPMax2]; int main(void) { int i=0; //float x,y; Stm32_Clock_Init(9); //系统时钟设置 uart_init(72,115200); //串口初始化为115200 delay_init(72);//延时初始化 Timer3_Init(); Timer2_Init(); DAC_Init(); GPIOA->CRL&=0x00FFFFFF; GPIOA->CRL|=0x33000000; PAout(6)=0; PAout(7)=1; GPIOA->CRH&=0x00FFFFF0; GPIOA->CRH|=0x88000003; PAout(8)=1; MapData[0]=XYc_OutputInv(1000,1000); MapData[1]=XYc_OutputInv(1500,1000); MapData[2]=XYc_OutputInv(2000,1000); LDlen=3; delay_ms(5000); PAout(8)=1; while(1) { if(Msg_PathFin) { LDlen=3; for(i=0;i<Msg_PathFin;i++) { MapData[i]=XYc_Output(DotPath[2*i+1]24,DotPath[2i]*24); } if(Msg_PathFin>=MaxDots)LDlen=MaxDots; else if(Msg_PathFin>=3)LDlen=Msg_PathFin; else LDlen=Msg_PathFin+2; Msg_PathFin=0; } } } 修改代码,控制振镜XY改为控制振镜X,读取数组中值,当读取到1振镜x向左偏振,读到0振镜x向右偏转
根据你的要求,我修改了代码,使其只控制振镜X,并根据读取到的数组值决定振镜X偏转方向。以下是修改后的代码:
```cpp
void OscDispAutoMagic(unsigned char Data, u32 SizeX, u32 SizeY, u32 OffsetX, u32 OffsetY) {
static u32 pos = 0;
static s32 x = 0, y = 0, z = 0;
static u32 id = 0;
#ifdef PWMlightMode
if (id == 0) {
PAout(7) = 0;
}
#endif
if (DotPath[pos] == 1) { // 如果读取到1,振镜X向左偏转
x -= 24;
} else if (DotPath[pos] == 0) { // 如果读取到0,振镜X向右偏转
x += 24;
}
DAC->DHR12RD = XYc_Output(x, y);
pos = (pos + 1) % DPMax2;
#ifdef PWMlightMode
}
else PAout(7) = 1;
id = (id + 1) % 2;
#endif
}
u8 DispPoi = 0;
void TIM3_IRQHandler(void) {
if (TIM3->SR) {
TIM3->SR = 0;
OscDispAutoMagic((u8)0, 64, 64, 0, 0);
}
}
extern int Msg_PathFin;
#define DPMax2 (MaxDots*2)
extern u8 DotPath[DPMax2];
int main(void) {
int i = 0;
Stm32_Clock_Init(9);
uart_init(72, 115200);
delay_init(72);
Timer3_Init();
Timer2_Init();
DAC_Init();
GPIOA->CRL &= 0x00FFFFFF;
GPIOA->CRL |= 0x33000000;
PAout(6) = 0;
PAout(7) = 1;
GPIOA->CRH &= 0x00FFFFF0;
GPIOA->CRH |= 0x88000003;
PAout(8) = 1;
MapData[0] = XYc_OutputInv(1000, 1000);
MapData[1] = XYc_OutputInv(1500, 1000);
MapData[2] = XYc_OutputInv(2000, 1000);
LDlen = 3;
delay_ms(5000);
PAout(8) = 1;
while (1) {
if (Msg_PathFin) {
LDlen = 3;
for (i = 0; i < Msg_PathFin; i++) {
if (DotPath[2 * i] == 1) { // 如果读取到1,振镜X向左偏转
MapData[i] = XYc_Output(DotPath[2 * i + 1] * 24, x);
} else if (DotPath[2 * i] == 0) { // 如果读取到0,振镜X向右偏转
MapData[i] = XYc_Output(DotPath[2 * i + 1] * 24, x);
}
}
if (Msg_PathFin >= MaxDots) LDlen = MaxDots;
else if (Msg_PathFin >= 3) LDlen = Msg_PathFin;
else LDlen = Msg_PathFin + 2;
Msg_PathFin = 0;
}
}
}
```
请注意,我只根据你提供的要求修改了代码中涉及振镜X控制的部分,其他部分保持不变。请在实际使用时进行适当的调整和测试。
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xyc.bishe.mapper.OrdersMapper.getAllOrders
这个错误信息"org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xyc.bishe.mapper.OrdersMapper.getAllOrders"表示无法绑定查询语句"com.xyc.bishe.mapper.OrdersMapper.getAllOrders"。
出现这个错误的原因可能是配置有误或者查询语句不存在。可以按照以下步骤进行排查和解决问题:
1. 检查启动类的配置:确认是否正确配置了MyBatis的Mapper扫描路径,确保能够扫描到"com.xyc.bishe.mapper"包下的Mapper接口。
2. 检查Mapper接口和对应的XML文件:确认在"com.xyc.bishe.mapper"包下存在名为"OrdersMapper"的Mapper接口,并且在对应的XML文件中定义了名为"getAllOrders"的查询语句。
3. 检查查询语句的命名和参数:确认查询语句"getAllOrders"的名称和参数与Mapper接口中的方法定义一致,包括参数类型和参数个数。确保没有拼写错误或者遗漏参数。
4. 检查XML文件中的命名空间和查询语句:确认XML文件中的命名空间与Mapper接口的完整类名一致,并且XML文件中定义了名为"getAllOrders"的查询语句。
通过以上步骤的检查和排查,可以解决这个错误信息所表示的问题。请根据具体情况进行相应的排查和修复。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):xxx问题](https://blog.csdn.net/lvoelife/article/details/128017529)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xxx.xxx 的解决...](https://blog.csdn.net/Hello_World_QWP/article/details/126713075)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文