leige1v9 发表于 2019-12-12 10:12:25

teConfigCacheInit为什么会失败

char CFG_DB_PARAM[] = "hyd.sdb:CSRA68100_CONFIG";

    devHandle = openTestEngine(USBDBG, com, 0, 5000, 0);

    if (devHandle != 0){

      // Initialise the configuration cache
      error = teConfigCacheInit(devHandle, CFG_DB_PARAM);
      if(error == TE_OK){
            // Read the configuration into the cache from the device
            error = teConfigCacheRead(devHandle, NULL, 0);
            if(error != TE_OK){
                printf("CacheRead失败%u!\n",error);
            }
      }else{
            printf("初始化失败%u!\n",error);
      }

      closeTestEngine(devHandle);
    }else{
      printf("连接失败%u!\n",error);
    }

leige1v9 发表于 2019-12-12 10:24:39

是CSRA68100要改掉吗,QCC5121该写什么?

twspro 发表于 2019-12-12 11:12:41

失败概率很大吗,是不是没有打补丁?

326159487 发表于 2019-12-12 12:19:37

用的CSRA68100芯片? 这个没用过,qcc512x没问题。

leige1v9 发表于 2019-12-13 15:52:42

好的
写hyd.sdb:QCC512X_CONFIG就可以了,而且我这边bluesuit里的sdb文件不行,换用ADK安装目录里的sdb才行。
还有一点问题
teConfigCacheReadItem可以读到htf文件显示的配置,pskey_bdaddr之类的
tePsRead可以读到USR (user), DSP, CONNLIB (connectivity library) and CUSTOMER PS keys
那512x 的别的key呢?怎么办,local supported features block,host interface还有很多的key?
我试过psRead,但是读的地址A5A5应该都是假的数据

iamrik 发表于 2020-2-14 11:05:00

leige1v9 发表于 2019-12-13 15:52
好的
写hyd.sdbCC512X_CONFIG就可以了,而且我这边bluesuit里的sdb文件不行,换用ADK安装目录里的sdb才 ...

你好,你那个地址读取成a5a5的问题解决了吗?我现在也在搞testEngine,遇到个问题,iHandle = openTestEngine(USBDBG, "1", 0, 5000, 0);之后获取不到iHandle ,是什么原因呢?

iamrik 发表于 2020-2-14 11:09:20

楼主,你代码中devHandle = openTestEngine(USBDBG, com, 0, 5000, 0);的com是什么?我写成"1"返回错误,但是我用config tool工具都是可以看到这个usb 调试口的。

leige1v9 发表于 2020-2-19 10:28:44

iamrik 发表于 2020-2-14 11:09
楼主,你代码中devHandle = openTestEngine(USBDBG, com, 0, 5000, 0);的com是什么?我写成"1"返回错误,但 ...

USB的端口号是不同的把,我用nvsapp看了才填的
好像TRB口有默认的1号。
地址只能用cache系列的函数读,

ganxiniuhe 发表于 2020-11-24 18:40:55

我补充一点
我是把dll复制到工程文件夹下的,开始也是teConfigCacheInit返回错误,最后发现是还需要bluesuite下的hpm文件,把这些文件也复制过来就OK了

lbpower 发表于 2023-12-7 11:40:44

我也遇到了这个问题,怎么才能解决啊,qcc5125的
页: [1]
查看完整版本: teConfigCacheInit为什么会失败