搜索

[蓝牙芯片] ch573仿真出现异常

[复制链接]
749|7
lanjackg2003|  楼主 | 2021-6-6 11:38 | 显示全部楼层 |阅读模式
本帖最后由 lanjackg2003 于 2021-6-6 11:40 编辑

昨天仿真ch573都可以正常,今天仿真出现了以下的错误。

4470660bc4390c8c41.png

  1. Open On-Chip Debugger 0.10.0+dev-gb0ae840-dirty (2020-10-26-10:50)
  2. Licensed under GNU GPL v2
  3. For bug reports, read
  4.     http://openocd.org/doc/doxygen/bugs.html
  5. Info : only one transport option; autoselect 'jtag'
  6. Ready for Remote Connections
  7. Started by GNU MCU Eclipse
  8. Info : Listening on port 6666 for tcl connections
  9. Info : Listening on port 4444 for telnet connections
  10. Info : WCH-Link version 01.05
  11. Info : wlink_init ok
  12. Info : This adapter doesn't support configurable speed
  13. Info : JTAG tap: riscv.cpu tap/device found: 0x20000001 (mfg: 0x000 (<invalid>), part: 0x0000, ver: 0x2)
  14. Warn : Bypassing JTAG setup events due to errors
  15. Info : datacount=2 progbufsize=8
  16. Info : Examined RISC-V core; found 1 harts
  17. Info :  hart 0: XLEN=32, misa=0x40101105
  18. Info : Listening on port 3333 for gdb connections
  19. Info : accepting 'gdb' connection on tcp/3333
  20. Info : JTAG tap: riscv.cpu tap/device found: 0x20000001 (mfg: 0x000 (<invalid>), part: 0x0000, ver: 0x2)
  21. Warn : Bypassing JTAG setup events due to errors
  22. Info : JTAG tap: riscv.cpu tap/device found: 0x20000001 (mfg: 0x000 (<invalid>), part: 0x0000, ver: 0x2)
  23. Warn : Bypassing JTAG setup events due to errors
  24. ===== RISC-V Registers
  25. (0) zero (/32)
  26. (1) ra (/32)
  27. (2) sp (/32)
  28. (3) gp (/32)
  29. (4) tp (/32)
  30. (5) t0 (/32)
  31. (6) t1 (/32)
  32. (7) t2 (/32)
  33. (8) fp (/32)
  34. (9) s1 (/32)
  35. (10) a0 (/32)
  36. (11) a1 (/32)
  37. (12) a2 (/32)
  38. (13) a3 (/32)
  39. (14) a4 (/32)
  40. (15) a5 (/32)
  41. (16) a6 (/32)
  42. (17) a7 (/32)
  43. (18) s2 (/32)
  44. (19) s3 (/32)
  45. (20) s4 (/32)
  46. (21) s5 (/32)
  47. (22) s6 (/32)
  48. (23) s7 (/32)
  49. (24) s8 (/32)
  50. (25) s9 (/32)
  51. (26) s10 (/32)
  52. (27) s11 (/32)
  53. (28) t3 (/32)
  54. (29) t4 (/32)
  55. (30) t5 (/32)
  56. (31) t6 (/32)
  57. (32) pc (/32)
  58. (833) mstatus (/32)
  59. (834) misa (/32)
  60. (837) mie (/32)
  61. (838) mtvec (/32)
  62. (839) mcounteren (/32)
  63. (868) mhpmevent3 (/32)
  64. (869) mhpmevent4 (/32)
  65. (870) mhpmevent5 (/32)
  66. (871) mhpmevent6 (/32)
  67. (872) mhpmevent7 (/32)
  68. (873) mhpmevent8 (/32)
  69. (874) mhpmevent9 (/32)
  70. (875) mhpmevent10 (/32)
  71. (876) mhpmevent11 (/32)
  72. (877) mhpmevent12 (/32)
  73. (878) mhpmevent13 (/32)
  74. (879) mhpmevent14 (/32)
  75. (880) mhpmevent15 (/32)
  76. (881) mhpmevent16 (/32)
  77. (882) mhpmevent17 (/32)
  78. (883) mhpmevent18 (/32)
  79. (884) mhpmevent19 (/32)
  80. (885) mhpmevent20 (/32)
  81. (886) mhpmevent21 (/32)
  82. (887) mhpmevent22 (/32)
  83. (888) mhpmevent23 (/32)
  84. (889) mhpmevent24 (/32)
  85. (890) mhpmevent25 (/32)
  86. (891) mhpmevent26 (/32)
  87. (892) mhpmevent27 (/32)
  88. (893) mhpmevent28 (/32)
  89. (894) mhpmevent29 (/32)
  90. (895) mhpmevent30 (/32)
  91. (896) mhpmevent31 (/32)
  92. (897) mscratch (/32)
  93. (898) mepc (/32)
  94. (899) mcause (/32)
  95. (900) mtval (/32)
  96. (901) mip (/32)
  97. (993) pmpcfg0 (/32)
  98. (994) pmpcfg1 (/32)
  99. (995) pmpcfg2 (/32)
  100. (996) pmpcfg3 (/32)
  101. (1009) pmpaddr0 (/32)
  102. (1010) pmpaddr1 (/32)
  103. (1011) pmpaddr2 (/32)
  104. (1012) pmpaddr3 (/32)
  105. (1013) pmpaddr4 (/32)
  106. (1014) pmpaddr5 (/32)
  107. (1015) pmpaddr6 (/32)
  108. (1016) pmpaddr7 (/32)
  109. (1017) pmpaddr8 (/32)
  110. (1018) pmpaddr9 (/32)
  111. (1019) pmpaddr10 (/32)
  112. (1020) pmpaddr11 (/32)
  113. (1021) pmpaddr12 (/32)
  114. (1022) pmpaddr13 (/32)
  115. (1023) pmpaddr14 (/32)
  116. (1024) pmpaddr15 (/32)
  117. (2017) tselect (/32)
  118. (2018) tdata1 (/32)
  119. (2019) tdata2 (/32)
  120. (2020) tdata3 (/32)
  121. (2033) dcsr (/32)
  122. (2034) dpc (/32)
  123. (2035) dscratch (/32)
  124. (2881) mcycle (/32)
  125. (2883) minstret (/32)
  126. (2884) mhpmcounter3 (/32)
  127. (2885) mhpmcounter4 (/32)
  128. (2886) mhpmcounter5 (/32)
  129. (2887) mhpmcounter6 (/32)
  130. (2888) mhpmcounter7 (/32)
  131. (2889) mhpmcounter8 (/32)
  132. (2890) mhpmcounter9 (/32)
  133. (2891) mhpmcounter10 (/32)
  134. (2892) mhpmcounter11 (/32)
  135. (2893) mhpmcounter12 (/32)
  136. (2894) mhpmcounter13 (/32)
  137. (2895) mhpmcounter14 (/32)
  138. (2896) mhpmcounter15 (/32)
  139. (2897) mhpmcounter16 (/32)
  140. (2898) mhpmcounter17 (/32)
  141. (2899) mhpmcounter18 (/32)
  142. (2900) mhpmcounter19 (/32)
  143. (2901) mhpmcounter20 (/32)
  144. (2902) mhpmcounter21 (/32)
  145. (2903) mhpmcounter22 (/32)
  146. (2904) mhpmcounter23 (/32)
  147. (2905) mhpmcounter24 (/32)
  148. (2906) mhpmcounter25 (/32)
  149. (2907) mhpmcounter26 (/32)
  150. (2908) mhpmcounter27 (/32)
  151. (2909) mhpmcounter28 (/32)
  152. (2910) mhpmcounter29 (/32)
  153. (2911) mhpmcounter30 (/32)
  154. (2912) mhpmcounter31 (/32)
  155. (3009) mcycleh (/32)
  156. (3011) minstreth (/32)
  157. (3012) mhpmcounter3h (/32)
  158. (3013) mhpmcounter4h (/32)
  159. (3014) mhpmcounter5h (/32)
  160. (3015) mhpmcounter6h (/32)
  161. (3016) mhpmcounter7h (/32)
  162. (3017) mhpmcounter8h (/32)
  163. (3018) mhpmcounter9h (/32)
  164. (3019) mhpmcounter10h (/32)
  165. (3020) mhpmcounter11h (/32)
  166. (3021) mhpmcounter12h (/32)
  167. (3022) mhpmcounter13h (/32)
  168. (3023) mhpmcounter14h (/32)
  169. (3024) mhpmcounter15h (/32)
  170. (3025) mhpmcounter16h (/32)
  171. (3026) mhpmcounter17h (/32)
  172. (3027) mhpmcounter18h (/32)
  173. (3028) mhpmcounter19h (/32)
  174. (3029) mhpmcounter20h (/32)
  175. (3030) mhpmcounter21h (/32)
  176. (3031) mhpmcounter22h (/32)
  177. (3032) mhpmcounter23h (/32)
  178. (3033) mhpmcounter24h (/32)
  179. (3034) mhpmcounter25h (/32)
  180. (3035) mhpmcounter26h (/32)
  181. (3036) mhpmcounter27h (/32)
  182. (3037) mhpmcounter28h (/32)
  183. (3038) mhpmcounter29h (/32)
  184. (3039) mhpmcounter30h (/32)
  185. (3040) mhpmcounter31h (/32)
  186. (3137) cycle (/32)
  187. (3138) time (/32)
  188. (3139) instret (/32)
  189. (3140) hpmcounter3 (/32)
  190. (3141) hpmcounter4 (/32)
  191. (3142) hpmcounter5 (/32)
  192. (3143) hpmcounter6 (/32)
  193. (3144) hpmcounter7 (/32)
  194. (3145) hpmcounter8 (/32)
  195. (3146) hpmcounter9 (/32)
  196. (3147) hpmcounter10 (/32)
  197. (3148) hpmcounter11 (/32)
  198. (3149) hpmcounter12 (/32)
  199. (3150) hpmcounter13 (/32)
  200. (3151) hpmcounter14 (/32)
  201. (3152) hpmcounter15 (/32)
  202. (3153) hpmcounter16 (/32)
  203. (3154) hpmcounter17 (/32)
  204. (3155) hpmcounter18 (/32)
  205. (3156) hpmcounter19 (/32)
  206. (3157) hpmcounter20 (/32)
  207. (3158) hpmcounter21 (/32)
  208. (3159) hpmcounter22 (/32)
  209. (3160) hpmcounter23 (/32)
  210. (3161) hpmcounter24 (/32)
  211. (3162) hpmcounter25 (/32)
  212. (3163) hpmcounter26 (/32)
  213. (3164) hpmcounter27 (/32)
  214. (3165) hpmcounter28 (/32)
  215. (3166) hpmcounter29 (/32)
  216. (3167) hpmcounter30 (/32)
  217. (3168) hpmcounter31 (/32)
  218. (3265) cycleh (/32)
  219. (3266) timeh (/32)
  220. (3267) instreth (/32)
  221. (3268) hpmcounter3h (/32)
  222. (3269) hpmcounter4h (/32)
  223. (3270) hpmcounter5h (/32)
  224. (3271) hpmcounter6h (/32)
  225. (3272) hpmcounter7h (/32)
  226. (3273) hpmcounter8h (/32)
  227. (3274) hpmcounter9h (/32)
  228. (3275) hpmcounter10h (/32)
  229. (3276) hpmcounter11h (/32)
  230. (3277) hpmcounter12h (/32)
  231. (3278) hpmcounter13h (/32)
  232. (3279) hpmcounter14h (/32)
  233. (3280) hpmcounter15h (/32)
  234. (3281) hpmcounter16h (/32)
  235. (3282) hpmcounter17h (/32)
  236. (3283) hpmcounter18h (/32)
  237. (3284) hpmcounter19h (/32)
  238. (3285) hpmcounter20h (/32)
  239. (3286) hpmcounter21h (/32)
  240. (3287) hpmcounter22h (/32)
  241. (3288) hpmcounter23h (/32)
  242. (3289) hpmcounter24h (/32)
  243. (3290) hpmcounter25h (/32)
  244. (3291) hpmcounter26h (/32)
  245. (3292) hpmcounter27h (/32)
  246. (3293) hpmcounter28h (/32)
  247. (3294) hpmcounter29h (/32)
  248. (3295) hpmcounter30h (/32)
  249. (3296) hpmcounter31h (/32)
  250. (3922) mvendorid (/32)
  251. (3923) marchid (/32)
  252. (3924) mimpid (/32)
  253. (3925) mhartid (/32)
  254. (4161) priv (/8)

  255. Error: Debugger is not authenticated to target Debug Module. (dmstatus=0x80000443). Use `riscv authdata_read` and `riscv authdata_write` commands to authenticate.
  256. Error: Debugger is not authenticated to target Debug Module. (dmstatus=0xe01). Use `riscv authdata_read` and `riscv authdata_write` commands to authenticate.
  257. Error: Debugger is not authenticated to target Debug Module. (dmstatus=0x80000441). Use `riscv authdata_read` and `riscv authdata_write` commands to authenticate.
  258. Error: Debugger is not authenticated to target Debug Module. (dmstatus=0x80000441). Use `riscv authdata_read` and `riscv authdata_write` commands to authenticate.
  259. Error: Debugger is not authenticated to target Debug Module. (dmstatus=0x601). Use `riscv authdata_read` and `riscv authdata_write` commands to authenticate.
  260. Error: Debugger is not authenticated to target Debug Module. (dmstatus=0x80000e01). Use `riscv authdata_read` and `riscv authdata_write` commands to authenticate.
  261. Error: Hart is not halted!
  262. undefined debug reason 8 - target needs reset
  263. Error: Debugger is not authenticated to target Debug Module. (dmstatus=0x80000e01). Use `riscv authdata_read` and `riscv authdata_write` commands to authenticate.
  264. Error: Debugger is not authenticated to target Debug Module. (dmstatus=0x80000642). Use `riscv authdata_read` and `riscv authdata_write` commands to authenticate.
  265. Error: Debugger is not authenticated to target Debug Module. (dmstatus=0xe01). Use `riscv authdata_read` and `riscv authdata_write` commands to authenticate.
  266. Error: Debugger is not authenticated to target Debug Module. (dmstatus=0x80000441). Use `riscv authdata_read` and `riscv authdata_write` commands to authenticate.
  267. Info : dropped 'gdb' connection
复制代码

请问一下原厂FAE,这个是我的板子有问题还是其他原因?
请帮忙看一下,可以通过什么方式解决
谢谢



forum.jpg

使用特权

评论回复
天意无罪| | 2021-6-7 09:03 | 显示全部楼层
从错误提示来看,貌似是仿真器没有成功识别和验证目标芯片。重新插拔仿真器或者重启电脑试试?

使用特权

评论回复
lanjackg2003|  楼主 | 2021-6-7 10:37 | 显示全部楼层
天意无罪 发表于 2021-6-7 09:03
从错误提示来看,貌似是仿真器没有成功识别和验证目标芯片。重新插拔仿真器或者重启电脑试试? ...

试过插拔仿真器,问题仍然存在

只差测试重启电脑,看看问题是否仍然存在

使用特权

评论回复
WCHTech2| | 2021-6-7 16:40 | 显示全部楼层
您好,可以尝试新建CH573的模板工程,试下是否可以仿真。
工程中如果操作Flash上锁,睡眠等功能时是不可进行仿真。
蓝牙的工程一般不建议使用单步调试仿真的方式,可以采用printf打印运行状态信息,因为蓝牙对实时性要求较高。
如有问题也可电话咨询:025-52638373

使用特权

评论回复
lanjackg2003|  楼主 | 2021-6-7 17:48 | 显示全部楼层
WCHTech2 发表于 2021-6-7 16:40
您好,可以尝试新建CH573的模板工程,试下是否可以仿真。
工程中如果操作Flash上锁,睡眠等功能时是不可进 ...

哦,原来还有这个要求
了解了
我试试
谢谢

使用特权

评论回复
lanjackg2003|  楼主 | 2021-6-7 18:07 | 显示全部楼层
WCHTech2 发表于 2021-6-7 16:40
您好,可以尝试新建CH573的模板工程,试下是否可以仿真。
工程中如果操作Flash上锁,睡眠等功能时是不可进 ...

另外包含了ble的库之后,每次下载都好长时间
是否有办法,减少这块的时间
我见里面有一个rom文件
请问要如何操作,可以减少下载导致的时间。
是否有相关教程?

使用特权

评论回复

评论

lanjackg2003 2021-6-8 09:11 回复TA
@WCHTech2 :OK 
WCHTech2 2021-6-7 19:18 回复TA
BLE协议栈大约128KB,本身有点大,还有目前的的下载速度也在提升中,后面会有改善 
扫描二维码,随时随地手机跟帖
您需要登录后才可以回帖 登录 | 注册

本版积分规则

我要发帖 我要提问 投诉建议 申请版主

快速回复

您需要登录后才可以回帖
登录 | 注册
高级模式

本版热帖

本版活跃用户

优质原创写原创,赢大奖

编辑推荐

  • 1 wolfe_yu 得到打赏 ¥180.00
  • 2 最美葫芦娃 得到打赏 ¥155.00
  • 3 hk386 得到打赏 ¥75.00
  • 4 火星国务卿 得到打赏 ¥63.00
  • 5 两只袜子 得到打赏 ¥56.00
  • 6 laocuo1142 得到打赏 ¥50.00
  • 7 linghz 得到打赏 ¥45.00
  • 8 gaon2 得到打赏 ¥45.00
  • 9 ezcui 得到打赏 ¥45.00
  • 10 jlc317 得到打赏 ¥40.00
在线客服 快速回复 返回顶部 返回列表