From 81f91b2b71511dd21015e4bd643bc729328b8724 Mon Sep 17 00:00:00 2001 From: SikongJueluo Date: Tue, 20 May 2025 20:31:48 +0800 Subject: [PATCH] fix: boundary scan could not close and jtag scan failed --- server/src/JtagClient.cs | 2 +- src/components/equipments/MotherBoardCaps.vue | 71 +++++++++++++------ 2 files changed, 52 insertions(+), 21 deletions(-) diff --git a/server/src/JtagClient.cs b/server/src/JtagClient.cs index 6773532..37e0476 100644 --- a/server/src/JtagClient.cs +++ b/server/src/JtagClient.cs @@ -422,7 +422,7 @@ public class Jtag if (!MsgBus.IsRunning) return new(new Exception("Message Bus not Working!")); - var retPack = await MsgBus.UDPServer.WaitForDataAsync(address, port); + var retPack = await MsgBus.UDPServer.WaitForDataAsync(address, 0, port); if (!retPack.IsSuccessful || !retPack.Value.IsSuccessful) return new(new Exception("Send address package failed")); diff --git a/src/components/equipments/MotherBoardCaps.vue b/src/components/equipments/MotherBoardCaps.vue index 01170d7..e7fce0d 100644 --- a/src/components/equipments/MotherBoardCaps.vue +++ b/src/components/equipments/MotherBoardCaps.vue @@ -9,24 +9,40 @@ IDCode: 0x{{ jtagIDCode.toString(16).padStart(8, "0").toUpperCase() }}

- +
Jtag运行频率 - @@ -35,12 +51,23 @@
边界扫描刷新率 / Hz - +

输入一个1 ~ 1000的数

-
@@ -48,12 +75,21 @@

外设

- +

启用矩阵键盘

- +

启用电源

@@ -65,7 +101,7 @@ import z from "zod"; import UploadCard from "@/components/UploadCard.vue"; import { useDialogStore } from "@/stores/dialog"; import { useEquipments } from "@/stores/equipments"; -import { computed, ref, watchEffect, watchPostEffect } from "vue"; +import { computed, ref, watchEffect } from "vue"; interface CapsProps { jtagAddr?: string; @@ -137,11 +173,6 @@ async function handlePowerCheckboxChange(event: Event) { } async function toggleJtagBoundaryScan() { - if (eqps.jtagClientMutex.isLocked()) { - dialog.warn("Jtag正在被占用"); - return; - } - eqps.enableJtagBoundaryScan = !eqps.enableJtagBoundaryScan; }