波形指的是rst和wake脚的吗?
pci日志如下,wake为0拉高了rst
root@a1000:~# dmesg | grep pci
[ 0.117287] bst_pcie pcie probe start…
[ 0.121676] bst_pcie pcie controller: 0, type: RC
[ 0.126844] bst_pcie pci->dbi_base:0xffff800013da0000 dma:0xffff800013f40000
[ 0.126851] bst_pcie PCIe init by Driver
[ 0.126853] pcie-phy init…
[ 0.126877] pcie-phy: phy:0xffff000181559380, phy_base:0xffff800013d9e000
[ 0.126898] pcie-ref-clk0 undefined, use default:0x0
[ 0.126901] pcie-ref-clk1 undefined, use default:0x0
[ 0.126904] pcie phy mode:0x2,lane:0x1,ctl0:1,ctl1:0
[ 0.148141] pcie-phy init complete
[ 0.148199] cht-pcierst=242
[ 0.148213] cht-pciewake=1
[ 0.148217] cht-pciewake=1
[ 0.151182] cht-pciewake=1
[ 0.154147] cht-pciewake=1
[ 0.157112] cht-pciewake=1
[ 0.160082] cht-pciewake=1
[ 0.163047] cht-pciewake=1
[ 0.166011] cht-pciewake=1
[ 0.168979] cht-pciewake=1
[ 0.171944] cht-pciewake=1
[ 0.174909] cht-pciewake=1
[ 0.177879] cht-pciewake=1
[ 0.180843] cht-pciewake=1
[ 0.183808] cht-pciewake=1
[ 0.186771] cht-pciewake=1
[ 0.189740] cht-pciewake=1
[ 0.189744] cht-pciewake=1
[ 0.189747] cht-pciewake=1
[ 0.195671] cht-pciewake=1
[ 0.201596] cht-pciewake=1
[ 0.204560] cht-pciewake=1
[ 0.207525] cht-pciewake=1
[ 0.210490] cht-pciewake=1
[ 0.213455] cht-pciewake=1
[ 0.216418] cht-pciewake=1
[ 0.219386] cht-pciewake=1
[ 0.222348] cht-pciewake=1
[ 0.225313] cht-pciewake=1
[ 0.228278] cht-pciewake=1
[ 0.231244] cht-pciewake=1
[ 0.234206] cht-pciewake=1
[ 0.237171] cht-pciewake=1
[ 0.240137] cht-pciewake=1
[ 0.243102] cht-pciewake=1
[ 0.246066] cht-pciewake=1
[ 0.249034] cht-pciewake=1
[ 0.251999] cht-pciewake=1
[ 0.254964] cht-pciewake=1
[ 0.257932] cht-pciewake=1
[ 0.260897] cht-pciewake=1
[ 0.263862] cht-pciewake=1
[ 0.266826] cht-pciewake=1
[ 0.269794] cht-pciewake=1
[ 0.272758] cht-pciewake=1
[ 0.275723] cht-pciewake=1
[ 0.278690] cht-pciewake=1
[ 0.281655] cht-pciewake=1
[ 0.284620] cht-pciewake=1
[ 0.287584] cht-pciewake=1
[ 0.290552] cht-pciewake=1
[ 0.293517] cht-pciewake=1
[ 0.296482] cht-pciewake=1
[ 0.299450] cht-pciewake=1
[ 0.302415] cht-pciewake=1
[ 0.305380] cht-pciewake=1
[ 0.308347] cht-pciewake=1
[ 0.311311] cht-pciewake=1
[ 0.314276] cht-pciewake=1
[ 0.317241] cht-pciewake=1
[ 0.320216] cht-pciewake=1
[ 0.323181] cht-pciewake=1
[ 0.326147] cht-pciewake=1
[ 0.329115] cht-pciewake=1
[ 0.332079] cht-pciewake=1
[ 0.335044] cht-pciewake=1
[ 0.338012] cht-pciewake=1
[ 0.340977] cht-pciewake=1
[ 0.343942] cht-pciewake=1
[ 0.346907] cht-pciewake=1
[ 0.349875] cht-pciewake=1
[ 0.352841] cht-pciewake=1
[ 0.355805] cht-pciewake=1
[ 0.358773] cht-pciewake=1
[ 0.361738] cht-pciewake=1
[ 0.364703] cht-pciewake=1
[ 0.367668] cht-pciewake=1
[ 0.370635] cht-pciewake=1
[ 0.373599] cht-pciewake=1
[ 0.376564] cht-pciewake=1
[ 0.379531] cht-pciewake=1
[ 0.382496] cht-pciewake=1
[ 0.385462] cht-pciewake=1
[ 0.388429] cht-pciewake=1
[ 0.391393] cht-pciewake=1
[ 0.394358] cht-pciewake=1
[ 0.397324] cht-pciewake=1
[ 0.400292] cht-pciewake=1
[ 0.403256] cht-pciewake=1
[ 0.406221] cht-pciewake=1
[ 0.409190] cht-pciewake=1
[ 0.412155] cht-pciewake=1
[ 0.415120] cht-pciewake=1
[ 0.418088] cht-pciewake=1
[ 0.421053] cht-pciewake=1
[ 0.424019] cht-pciewake=1
[ 0.426983] cht-pciewake=1
[ 0.429951] cht-pciewake=1
[ 0.432916] cht-pciewake=1
[ 0.435881] cht-pciewake=1
[ 0.438849] cht-pciewake=1
[ 0.441814] cht-pciewake=1
[ 0.444779] cht-pciewake=1
[ 0.447743] cht-pciewake=1
[ 0.450711] cht-pciewake=1
[ 0.453676] cht-pciewake=1
[ 0.456641] cht-pciewake=1
[ 0.459610] cht-pciewake=1
[ 0.462575] cht-pciewake=1
[ 0.465540] cht-pciewake=1
[ 0.468507] cht-pciewake=1
[ 0.471472] cht-pciewake=1
[ 0.474438] cht-pciewake=1
[ 0.477403] cht-pciewake=1
[ 0.480371] cht-pciewake=1
[ 0.483335] cht-pciewake=1
[ 0.486300] cht-pciewake=1
[ 0.489268] cht-pciewake=1
[ 0.492233] cht-pciewake=1
[ 0.495197] cht-pciewake=1
[ 0.498165] cht-pciewake=1
[ 0.501130] cht-pciewake=1
[ 0.504094] cht-pciewake=1
[ 0.507059] cht-pciewake=1
[ 0.510028] cht-pciewake=1
[ 0.512994] cht-pciewake=1
[ 0.515959] cht-pciewake=1
[ 0.518927] cht-pciewake=1
[ 0.521892] cht-pciewake=1
[ 0.524857] cht-pciewake=1
[ 0.527825] cht-pciewake=1
[ 0.530790] cht-pciewake=1
[ 0.533755] cht-pciewake=1
[ 0.536721] cht-pciewake=1
[ 0.539688] cht-pciewake=1
[ 0.542653] cht-pciewake=1
[ 0.545617] cht-pciewake=1
[ 0.548585] cht-pciewake=1
[ 0.551550] cht-pciewake=1
[ 0.554516] cht-pciewake=1
[ 0.557481] cht-pciewake=1
[ 0.560449] cht-pciewake=1
[ 0.563413] cht-pciewake=1
[ 0.566378] cht-pciewake=1
[ 0.569351] cht-pciewake=1
[ 0.572316] cht-pciewake=1
[ 0.575282] cht-pciewake=1
[ 0.578250] cht-pciewake=1
[ 0.581215] cht-pciewake=1
[ 0.584180] cht-pciewake=0
[ 0.587145] cht-pcierst_ok
[ 0.590112] cht-pcierst=1
[ 0.593086] dw-pcie 30600000.pcie: host bridge /amba_apu@0/pcie@30600000 ranges:
[ 0.595972] dw-pcie 30600000.pcie: IO 0x0041000000…0x0041ffffff → 0x0041000000
[ 0.595987] dw-pcie 30600000.pcie: MEM 0x0042000000…0x0045ffffff → 0x0042000000
[ 0.596208] dw-pcie 30600000.pcie: PCI host bridge to bus 0000:00
[ 0.596217] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.596226] pci_bus 0000:00: root bus resource [io 0x0000-0xffffff] (bus address [0x41000000-0x41ffffff])
[ 0.596230] pci_bus 0000:00: root bus resource [mem 0x42000000-0x45ffffff]
[ 0.596275] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[ 0.596300] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[ 0.596396] pci 0000:00:00.0: supports D1
[ 0.596400] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.601676] pci 0000:00:00.0: BAR 0: assigned [mem 0x42000000-0x420fffff 64bit]
[ 0.601690] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 0.601871] pcie_pme: probe of 0000:00:00.0:pcie001 failed with error -22
[ 0.602013] bst_pcie pcie probe completed.
[ 0.602022] pcie ctrl 0 ltssm enable
[ 0.606506] bst_pcie pcie_ltssm_detect start…
[ 6.264045] bst_pcie: exports duplicate symbol bst_init_each_function (owned by kernel)
[ 6.495700] bst_pcie: exports duplicate symbol bst_init_each_function (owned by kernel)
可以试下
pcie_wake 拉低了一段时间(等1秒,适当调整)后再拉高PCIE_RST。
wake拉低持续的时间大概只有20多毫秒,然后又会变高,一直这样周期循环,拉低持续不了1s这么长时间,1s后wake大概率还是高
pcie_wake 是模块的输出引脚,只有在开机的时候会拉低一次,用于通知RC。
如果pcie wake的引脚是反复拉高拉低,很可能这个模块的状态有问题。
请问是需要单独烧录什么固件或者切换模式吗?目前用的这个模组是调通过usb的,目前在调pcie
恩,现在主控的配置是检测到wake脚拉低后,间隔时间去拉高rst,然后发现wake脚还是会隔一段时间被拉低,拉低持续20毫秒,整个周期大概80ms,如果是模块问题,改怎么排查呢?我换了个5g模组还是一样状态
你用的是RG520N。 有条件将模块的debug 口的日志也同时拿出来看看吗?
从模块的debug 口应该可以看出来是不是在不停重启,看看启动到什么位置了。
没有留debug口,只是pcie通信,这个模组是之前在别的平台调通过usb并且能拨号的,是需要切换模式才能使用pcie通信吗?
目前配置了AT+QCFG=“data_interface”,1,0
AT+QCFG=“pcie/mode”,0 0: PCIe EP mode. 1: PCIe RC mode.
配置后重启发现还是能识别usb,但pcie依然没有
一般主控重启,如果USB还是连着的,很可能模组是不会重启的。
AT版本的模组切到PCIe 模式,USB口还在并且USB还是可以发AT指令的。
还有一种做法,就是上位机去“凑”时间。
譬如尽可能让模组在bootloader 里上电。