From 02913d2fda74cf17ebc148c468e2d54910f98b24 Mon Sep 17 00:00:00 2001 From: morgan Date: Tue, 14 Jan 2025 12:40:59 +0800 Subject: [PATCH] driver: add docs on strange prinout bug --- cxp_kernel.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cxp_kernel.py b/cxp_kernel.py index a1c3136..dba203c 100644 --- a/cxp_kernel.py +++ b/cxp_kernel.py @@ -227,7 +227,7 @@ _TRIG_SRC_INDEX_3 = 0x100081ac # d_479 _TRIG_ACT_INDEX_3 = 0x1000293c # d_502 _TRIG_SOFTWARE_INDEX_3 = 0x10000c34 # d_525 -CXP_TRIG = True +CXP_TRIG = False class IdleKernel(EnvExperiment): def build(self): @@ -295,8 +295,11 @@ class IdleKernel(EnvExperiment): # self.cxp.write_u32(_REAL_ACQ_STOP, 1) # single acq end # self.cxp.write_u32(_REAL_ACQ_ABORT, 1) # single acq ABORT # self.cxp.write_u32(_BSL_SENSOR_STAND_BY, 1) - for _ in range(4): - cxp_debug_frame_print() + + # NOTE: This may not print when using CXP hardware TRIG + # As the write_u32 trigger a packet printout that delays the CPU enough that the frame arrive + # But using hw trigger, the print is not necessory i.e. not enough time delay for the zc706 to receive the frame + cxp_debug_frame_print() return 0