diff --git a/Vitis_Classic/.analytics b/Vitis_Classic/.analytics deleted file mode 100644 index a5d24c7..0000000 --- a/Vitis_Classic/.analytics +++ /dev/null @@ -1,4 +0,0 @@ -timestamp=[2026-05-27 09:47:20], mode=WORKBENCH_START, duration=0:00:02.140, duration_ms=2140, data={} -timestamp=[2026-05-27 09:47:20], mode=PLATFORM_REPOSITORY_INIT, duration=0:00:00.014, duration_ms=14, data={} -timestamp=[2026-05-27 09:47:20], mode=WORKBENCH_UI_INIT, duration=0:00:00.170, duration_ms=170, data={editors_count=0, platform_editors_count=0, projects_count=0, platform_projects_count=0, active_platform_editor=false, projects=} -timestamp=[2026-05-27 09:48:49], mode=PLATFORM_GENERATION, duration=0:00:10.747, duration_ms=10747, data={name=NewInstCal_bsp} diff --git a/Vitis_Classic/NewInstCal_bsp/platform.tcl b/Vitis_Classic/NewInstCal_bsp/platform.tcl index 533e1f5..9b02dbc 100644 --- a/Vitis_Classic/NewInstCal_bsp/platform.tcl +++ b/Vitis_Classic/NewInstCal_bsp/platform.tcl @@ -29,3 +29,5 @@ platform config -updatehw {/home/ly0kos/work/prj/New_CalBoard/2.FW/Zynq/Debug_FW platform generate platform active {NewInstCal_bsp} platform generate +platform active {NewInstCal_bsp} +platform generate diff --git a/Vitis_Classic/NewInstrCalBoard/_ide/bitstream/system_wrapper.bit b/Vitis_Classic/NewInstrCalBoard/_ide/bitstream/system_wrapper.bit index 784c109..d8778da 100644 Binary files a/Vitis_Classic/NewInstrCalBoard/_ide/bitstream/system_wrapper.bit and b/Vitis_Classic/NewInstrCalBoard/_ide/bitstream/system_wrapper.bit differ diff --git a/Vitis_Classic/NewInstrCalBoard/src/main.c b/Vitis_Classic/NewInstrCalBoard/src/main.c index 53f2659..133353c 100644 --- a/Vitis_Classic/NewInstrCalBoard/src/main.c +++ b/Vitis_Classic/NewInstrCalBoard/src/main.c @@ -77,7 +77,34 @@ int main() { xil_printf("[E] UART Receive ERROR!!! Check PrintOut Ahead\r\n"); } - + switch (recvbuffer[0]) + { + case 0xA0: + { + xil_printf("[D] Matched Command Reset\r\n"); + rst_CPLD(CPLD_U1,4); + rst_CPLD(CPLD_U2,4); + rst_CPLD(CPLD_U3,4); + xil_printf("[I] CPLD RST Done\r\n"); + break; + } + case 0xA1: //PMU Cal + { + break; + } + case 0xA2: //Freq Cal + { + + break; + } + + default: + { + xil_printf("[E] Command Header No Match! \r\n[D] Received Command Header:0x%02X Check Command!\r\n",recvbuffer[0]); + break; + } + + } } /* never reached */