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;