From 3c76a6bbcbe5335c04f1d55b71e0fa95f5b59898 Mon Sep 17 00:00:00 2001 From: yuanQie Date: Mon, 26 May 2025 22:14:57 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=F0=9F=90=9B=20=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E5=8E=9F=E5=AD=90=E8=AF=BB=E5=8F=96=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/case52/src/testcase52.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/case52/src/testcase52.c b/test/case52/src/testcase52.c index 0cce524..e4641c8 100755 --- a/test/case52/src/testcase52.c +++ b/test/case52/src/testcase52.c @@ -189,6 +189,7 @@ void *handleUdpTransmission(void *arg) printf("[slot]:%u \n", slot_ind_flag); if (1 == slot_ind_flag) { + printf("[test 01]\n"); slot_ind_flag = 0; /************************************************************************************** */ // wr 16016*64(byte) [8008] 2字节复制,一次while循环会写入 1/20 的数据,触发条件为slot_ind_flag @@ -202,15 +203,18 @@ void *handleUdpTransmission(void *arg) size_t elements_needed = 8008 - elements_to_copy; memcpy((char*)map_base_tx_case52 + wr_cunt * 16016 + elements_to_copy * 2, &txt_buffer[0], elements_needed * 2); } + printf("[test 02]\n"); // 更新数组索引和块索引 data_index = (data_index + 8008) % 65535; wr_cunt = (wr_cunt + 1) % 20; /************************************************************************************** */ // 更新生产者计数 - uint8_t w_idx = __atomic_load_n( - (volatile uint8_t *)(map_base_rxf_case52 + 0), - __ATOMIC_ACQUIRE - ); + // uint8_t w_idx = __atomic_load_n( + // (volatile uint8_t *)(map_base_rxf_case52 + 0), + // __ATOMIC_ACQUIRE + // ); + printf("[test 03]\n"); + uint8_t w_idx = *((volatile uint8_t *)map_base_rxf_case52); /************************************************************************************** */ // 尝试读取 uint8_t block_n = 0;