working custom project stopped functioning missing freeRTOS symbols and 'arm' command not known

RalphD
Posts: 103
Joined: Thu Nov 25, 2021 9:02 pm

working custom project stopped functioning missing freeRTOS symbols and 'arm' command not known

Postby RalphD » Mon Mar 14, 2022 1:43 pm

Hi there,

these provided IDE's setups drive me mad. working with the IDE requires almost 90% of project time to keep them working.

Suddenly in my custom project one compile/flash to another debugging went of the rails. Even winding back the source from project back to the sample project I started the project of from my project GIT does not fix the issue. I have 5 more projects in the same workspace and they all still compile/flash/run fine !

I experience the following launching output and need help to figure out what happened and where to start nailing the issue down
  1. Open On-Chip Debugger  v0.11.0-esp32-20211220 (2021-12-20-15:43)
  2. Licensed under GNU GPL v2
  3. For bug reports, read
  4.     http://openocd.org/doc/doxygen/bugs.html
  5. adapter speed: 20000 kHz
  6.  
  7. Flashing C:/esp-ws-202109-17/maxill/build/partition_table/partition-table.bin at 0x8000
  8. Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
  9. Info : clock speed 20000 kHz
  10. Info : JTAG tap: esp32s2.cpu tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
  11. Info : starting gdb server for esp32s2 on 3333
  12. Info : Listening on port 3333 for gdb connections
  13. Info : JTAG tap: esp32s2.cpu tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
  14. Info : esp32s2: Target halted, PC=0x40100AF2, debug_reason=00000000
  15. Info : Detected ESP32-S2 chip
  16. Info : esp32s2: Debug controller was reset.
  17. Info : esp32s2: Core was reset.
  18. Info : esp32s2: Target halted, PC=0x40016102, debug_reason=00000000
  19. Info : esp32s2: Core was reset.
  20. Info : esp32s2: Target halted, PC=0x40000400, debug_reason=00000000
  21. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  22. Info : Flash mapping 0: 0x10020 -> 0x3f000020, 105 KB
  23. Info : Flash mapping 1: 0x30020 -> 0x40080020, 523 KB
  24. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  25. Info : Auto-detected flash bank 'esp32s2.flash' size 4096 KB
  26. Info : Using flash bank 'esp32s2.flash' size 4096 KB
  27. ** Programming Started **
  28. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  29. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  30. Info : PROF: Data transferred in 32.978 ms @ 121.293 KB/s
  31. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  32. ** Programming Finished **
  33. ** Verify Started **
  34. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  35. ** Verified OK **
  36. ** Flashing done for partition_table/partition-table.bin **
  37. Flashing C:/esp-ws-202109-17/maxill/build/bootloader/bootloader.bin at 0x1000
  38. Info : JTAG tap: esp32s2.cpu tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
  39. Info : esp32s2: Debug controller was reset.
  40. Info : esp32s2: Core was reset.
  41. Info : esp32s2: Target halted, PC=0x4000F974, debug_reason=00000000
  42. Info : esp32s2: Core was reset.
  43. Info : esp32s2: Target halted, PC=0x40000400, debug_reason=00000000
  44. ** Programming Started **
  45. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  46. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  47. Info : PROF: Data transferred in 79.989 ms @ 300.041 KB/s
  48. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  49. ** Programming Finished **
  50. ** Verify Started **
  51. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  52. ** Verified OK **
  53. ** Flashing done for bootloader/bootloader.bin **
  54. Flashing C:/esp-ws-202109-17/maxill/build/maxill.bin at 0x10000
  55. Info : JTAG tap: esp32s2.cpu tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
  56. Info : esp32s2: Debug controller was reset.
  57. Info : esp32s2: Core was reset.
  58. Info : esp32s2: Target halted, PC=0x40012734, debug_reason=00000000
  59. Info : esp32s2: Core was reset.
  60. Info : esp32s2: Target halted, PC=0x40000400, debug_reason=00000000
  61. ** Programming Started **
  62. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  63. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  64. Info : PROF: Data transferred in 2886.56 ms @ 231.417 KB/s
  65. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  66. ** Programming Finished **
  67. ** Verify Started **
  68. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  69. ** Verified OK **
  70. ** Flashing done for maxill.bin **
  71. ** Resetting Target **
  72. Info : JTAG tap: esp32s2.cpu tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
  73. Info : esp32s2: Debug controller was reset.
  74. Info : esp32s2: Core was reset.
  75. Info : esp32s2: Target halted, PC=0x4000FF4B, debug_reason=00000000
  76. Info : esp32s2: Core was reset.
  77. 0
  78. Started by GNU MCU Eclipse
  79. Info : Listening on port 6666 for tcl connections
  80. Info : Listening on port 4444 for telnet connections
  81. Info : accepting 'gdb' connection on tcp/3333
  82. Info : esp32s2: Target halted, PC=0x400F4DCE, debug_reason=00000000
  83. Memory protection is enabled. Reset target to disable it...
  84. Info : JTAG tap: esp32s2.cpu tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
  85. Info : esp32s2: Debug controller was reset.
  86. Info : esp32s2: Core was reset.
  87. Info : esp32s2: Target halted, PC=0x40016102, debug_reason=00000000
  88. Info : esp32s2: Core was reset.
  89. Info : esp32s2: Target halted, PC=0x40000400, debug_reason=00000000
  90. Warn : No symbols for FreeRTOS!
  91. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  92. Info : Flash mapping 0: 0x10020 -> 0x3f000020, 97 KB
  93. Info : Flash mapping 1: 0x30020 -> 0x40080020, 476 KB
  94. Info : Using flash bank 'esp32s2.irom' size 480 KB
  95. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  96. Info : Flash mapping 0: 0x10020 -> 0x3f000020, 97 KB
  97. Info : Flash mapping 1: 0x30020 -> 0x40080020, 476 KB
  98. Info : Using flash bank 'esp32s2.drom' size 100 KB
  99. Warn : Prefer GDB command "target extended-remote 3333" instead of "target remote 3333"
  100. Info : JTAG tap: esp32s2.cpu tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
  101. Info : esp32s2: Debug controller was reset.
  102. Info : esp32s2: Core was reset.
  103. Info : esp32s2: Target halted, PC=0x4001B82A, debug_reason=00000000
  104. Info : esp32s2: Core was reset.
  105. Info : esp32s2: Target halted, PC=0x40000400, debug_reason=00000000
  106. Info : JTAG tap: esp32s2.cpu tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
  107. Info : esp32s2: Debug controller was reset.
  108. Info : esp32s2: Core was reset.
  109. Info : esp32s2: Target halted, PC=0x4000FC00, debug_reason=00000000
  110. Info : esp32s2: Core was reset.
  111. Info : esp32s2: Target halted, PC=0x40000400, debug_reason=00000000
  112. invalid command name "arm"
  113. Info : JTAG tap: esp32s2.cpu tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
  114. Info : esp32s2: Debug controller was reset.
  115. Info : esp32s2: Core was reset.
  116. Info : esp32s2: Target halted, PC=0x4000FB72, debug_reason=00000000
  117. Info : esp32s2: Core was reset.
  118. Info : esp32s2: Target halted, PC=0x40000400, debug_reason=00000000
  119. ===== Xtensa registers
  120. (0) pc (/32): 0x40000400
  121. (1) ar0 (/32): 0x00000000
  122. (2) ar1 (/32): 0x00000000
  123. (3) ar2 (/32): 0x00000000
  124. (4) ar3 (/32): 0x00000000
  125. (5) ar4 (/32): 0x00000000
  126. (6) ar5 (/32): 0x00000000
  127. (7) ar6 (/32): 0x00000000
  128. (8) ar7 (/32): 0x00000000
  129. (9) ar8 (/32): 0x00000000
  130. (10) ar9 (/32): 0x00000000
  131. (11) ar10 (/32): 0x00000000
  132. (12) ar11 (/32): 0x00000000
  133. (13) ar12 (/32): 0x00000000
  134. (14) ar13 (/32): 0x00000000
  135. (15) ar14 (/32): 0x00000000
  136. (16) ar15 (/32): 0x00000000
  137. (17) ar16 (/32): 0x00000000
  138. (18) ar17 (/32): 0x00000000
  139. (19) ar18 (/32): 0x00000000
  140. (20) ar19 (/32): 0x00000000
  141. (21) ar20 (/32): 0x00000000
  142. (22) ar21 (/32): 0x00000000
  143. (23) ar22 (/32): 0x00000000
  144. (24) ar23 (/32): 0x00000000
  145. (25) ar24 (/32): 0x00000000
  146. (26) ar25 (/32): 0x00000000
  147. (27) ar26 (/32): 0x00000000
  148. (28) ar27 (/32): 0x00000000
  149. (29) ar28 (/32): 0x00000000
  150. (30) ar29 (/32): 0x00000000
  151. (31) ar30 (/32): 0x00000000
  152. (32) ar31 (/32): 0x00000000
  153. (33) ar32 (/32): 0x00000000
  154. (34) ar33 (/32): 0x00000000
  155. (35) ar34 (/32): 0x00000000
  156. (36) ar35 (/32): 0x00000000
  157. (37) ar36 (/32): 0x00000000
  158. (38) ar37 (/32): 0x00000000
  159. (39) ar38 (/32): 0x00000000
  160. (40) ar39 (/32): 0x00000000
  161. (41) ar40 (/32): 0x00000000
  162. (42) ar41 (/32): 0x00000000
  163. (43) ar42 (/32): 0x00000000
  164. (44) ar43 (/32): 0x00000000
  165. (45) ar44 (/32): 0x00000000
  166. (46) ar45 (/32): 0x00000000
  167. (47) ar46 (/32): 0x00000000
  168. (48) ar47 (/32): 0x00000000
  169. (49) ar48 (/32): 0x00000000
  170. (50) ar49 (/32): 0x00000000
  171. (51) ar50 (/32): 0x00000000
  172. (52) ar51 (/32): 0x00000000
  173. (53) ar52 (/32): 0x00000000
  174. (54) ar53 (/32): 0x00000000
  175. (55) ar54 (/32): 0x00000000
  176. (56) ar55 (/32): 0x00000000
  177. (57) ar56 (/32): 0x00000000
  178. (58) ar57 (/32): 0x00000000
  179. (59) ar58 (/32): 0x00000000
  180. (60) ar59 (/32): 0x00000000
  181. (61) ar60 (/32): 0x00000000
  182. (62) ar61 (/32): 0x00000000
  183. (63) ar62 (/32): 0x00000000
  184. (64) ar63 (/32): 0x00000000
  185. (68) sar (/32): 0x00000000
  186. (69) windowbase (/32): 0x00000000
  187. (70) windowstart (/32): 0x00000001
  188. (71) configid0 (/32): 0x40000400
  189. (72) configid1 (/32): 0x22478796
  190. (73) ps (/32): 0x0000001f
  191. (74) threadptr (/32): 0x00000000
  192. (101) mmid (/32)
  193. (102) ibreakenable (/32): 0x00000000
  194. (103) memctl (/32): 0x00000000
  195. (105) ibreaka0 (/32): 0x00000000
  196. (106) ibreaka1 (/32): 0x00000000
  197. (107) dbreaka0 (/32): 0x00000000
  198. (108) dbreaka1 (/32): 0x00000000
  199. (109) dbreakc0 (/32): 0x00000000
  200. (110) dbreakc1 (/32): 0x00000000
  201. (111) epc1 (/32): 0x00000000
  202. (112) epc2 (/32): 0x00000000
  203. (113) epc3 (/32): 0x00000000
  204. (114) epc4 (/32): 0x00000000
  205. (115) epc5 (/32): 0x00000000
  206. (116) epc6 (/32): 0x40000400
  207. (117) epc7 (/32): 0x00000000
  208. (118) depc (/32): 0x00000000
  209. (119) eps2 (/32): 0x00000000
  210. (120) eps3 (/32): 0x00000000
  211. (121) eps4 (/32): 0x00000000
  212. (122) eps5 (/32): 0x00000000
  213. (123) eps6 (/32): 0x0000001f
  214. (124) eps7 (/32): 0x00000000
  215. (125) excsave1 (/32): 0x00000000
  216. (126) excsave2 (/32): 0x00000000
  217. (127) excsave3 (/32): 0x00000000
  218. (128) excsave4 (/32): 0x00000000
  219. (129) excsave5 (/32): 0x00000000
  220. (130) excsave6 (/32): 0x00000000
  221. (131) excsave7 (/32): 0x00000000
  222. (132) cpenable (/32): 0x000000ff
  223. (133) interrupt (/32): 0x00018040
  224. (134) intset (/32)
  225. (135) intclear (/32)
  226. (136) intenable (/32): 0x00000000
  227. (137) vecbase (/32): 0x40000000
  228. (138) exccause (/32): 0x00000000
  229. (139) debugcause (/32): 0x00000020
  230. (140) ccount (/32): 0x00000004
  231. (141) prid (/32): 0x0000cdcd
  232. (142) icount (/32): 0x00000000
  233. (143) icountlevel (/32): 0x00000000
  234. (144) excvaddr (/32): 0x00000000
  235. (145) ccompare0 (/32): 0x00000000
  236. (146) ccompare1 (/32): 0x00000000
  237. (147) ccompare2 (/32): 0x00000000
  238. (148) misc0 (/32): 0x00000000
  239. (149) misc1 (/32): 0x00000000
  240. (150) misc2 (/32): 0x00000000
  241. (151) misc3 (/32): 0x00000000
  242. (163) a0 (/32): 0x00000000
  243. (164) a1 (/32): 0x00000000
  244. (165) a2 (/32): 0x00000000
  245. (166) a3 (/32): 0x00000000 (dirty)
  246. (167) a4 (/32): 0x00000000
  247. (168) a5 (/32): 0x00000000
  248. (169) a6 (/32): 0x00000000
  249. (170) a7 (/32): 0x00000000
  250. (171) a8 (/32): 0x00000000
  251. (172) a9 (/32): 0x00000000
  252. (173) a10 (/32): 0x00000000
  253. (174) a11 (/32): 0x00000000
  254. (175) a12 (/32): 0x00000000
  255. (176) a13 (/32): 0x00000000
  256. (177) a14 (/32): 0x00000000
  257. (178) a15 (/32): 0x00000000
  258. (179) pwrctl (/32)
  259. (180) pwrstat (/32)
  260. (181) eristat (/32)
  261. (182) cs_itctrl (/32)
  262. (183) cs_claimset (/32)
  263. (184) cs_claimclr (/32)
  264. (185) cs_lockaccess (/32)
  265. (186) cs_lockstatus (/32)
  266. (187) cs_authstatus (/32)
  267. (188) fault_info (/32)
  268. (189) trax_id (/32)
  269. (190) trax_ctrl (/32)
  270. (191) trax_stat (/32)
  271. (192) trax_data (/32)
  272. (193) trax_addr (/32)
  273. (194) trax_pctrigger (/32)
  274. (195) trax_pcmatch (/32)
  275. (196) trax_delay (/32)
  276. (197) trax_memstart (/32)
  277. (198) trax_memend (/32)
  278. (199) pmg (/32)
  279. (200) pmoc (/32)
  280. (201) pm0 (/32)
  281. (202) pm1 (/32)
  282. (203) pmctrl0 (/32)
  283. (204) pmctrl1 (/32)
  284. (205) pmstat0 (/32)
  285. (206) pmstat1 (/32)
  286. (207) ocd_id (/32)
  287. (208) ocd_dcrclr (/32)
  288. (209) ocd_dcrset (/32)
  289. (210) ocd_dsr (/32)
  290. (211) ddr (/32)
  291. (212) gpio_out (/32): 0x00000000
  292.  
  293. Info : esp32s2: Target halted, PC=0x40031E6E, debug_reason=00000001
  294. Info : esp32s2: Debug controller was reset.
  295. Info : esp32s2: Debug controller was reset.
  296. Info : esp32s2: Debug controller was reset.
  297. Info : esp32s2: Debug controller was reset.
  298. Info : esp32s2: Debug controller was reset.
  299. Info : esp32s2: Debug controller was reset.
  300. Info : esp32s2: Debug controller was reset.
  301. Info : esp32s2: Core was reset.
  302. Info : esp32s2: Debug controller was reset.
  303. Info : esp32s2: Debug controller was reset.
  304. Info : esp32s2: Debug controller was reset.
  305. Info : esp32s2: Debug controller was reset.
  306. Info : esp32s2: Debug controller was reset.
  307. Info : esp32s2: Debug controller was reset.
  308. Info : esp32s2: Debug controller was reset.
  309. Info : esp32s2: Debug controller was reset.
  310. Info : esp32s2: Debug controller was reset.
  311. Info : esp32s2: Debug controller was reset.
  312. Info : esp32s2: Debug controller was reset.
  313. Info : esp32s2: Debug controller was reset.
  314. Info : esp32s2: Debug controller was reset.
  315. Info : esp32s2: Debug controller was reset.
  316. Info : esp32s2: Debug controller was reset.
  317. Info : esp32s2: Debug controller was reset.
  318. Info : esp32s2: Debug controller was reset.
  319. Info : esp32s2: Debug controller was reset.
  320. Info : esp32s2: Debug controller was reset.
  321. Info : esp32s2: Debug controller was reset.
  322. Info : esp32s2: Debug controller was reset.
  323. Info : esp32s2: Debug controller was reset.
  324. Info : esp32s2: Debug controller was reset.
  325. Info : The target is not running when halt was requested, stopping GDB.
  326. Warn : target esp32s2 is not halted (gdb fileio)
  327. Warn : Target [esp32s2] not HALTED!
  328. Warn : xtensa_read_memory: esp32s2: target not halted
  329. Error: Could not read FreeRTOS thread count from target!
  330. Warn : xtensa_read_memory: esp32s2: target not halted
  331. Error: no working area available, can't alloc space for stub code!
  332. Error: Failed to run flasher stub (-308)!
  333. Info : esp32s2: Target halted, PC=0x40012772, debug_reason=00000000

ESP_Sprite
Posts: 9773
Joined: Thu Nov 26, 2015 4:08 am

Re: working custom project stopped functioning missing freeRTOS symbols and 'arm' command not known

Postby ESP_Sprite » Tue Mar 15, 2022 2:29 am

Sounds like your gdb is sending odd commands to openocd... you don't have something like a .gdbinit file lingering about that contains commands for some arm processor?

Who is online

Users browsing this forum: No registered users and 9 guests