VINOD-123

Flash_test.c run on quark of curie

May 17th, 2017
49
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. root@pcz-ee209535:/u/ee209535/Cur/wearable_device_sw/projects/flash/quark# tree
  3. .
  4. |-- defconfig
  5. |-- defconfig~
  6. |-- flash_tst.c
  7. |-- flash_tst.h
  8. |-- Kbuild.mk
  9. |-- Kbuild.mk~
  10. |-- main.c
  11. |-- main.c~
  12. |-- main_event_handler.c
  13. |-- main_event_handler.h
  14. |-- memory_pool_list.def
  15. `-- properties_storage_test.c~
  16.  
  17. I copied the flash_tst.c file from the below mentioned path into my curie_hello/quark directory, included the file and called flash_test() function from main.
  18.  
  19. original location of flash_tst.c
  20. wearable_device_sw/bsp/unit_test/machine/soc/intel/quark_se/quark/flash_tst.c
  21.  
  22.  
  23. the defconfig file contains the following..
  24.  
  25. CONFIG_AUTO_SERVICE_INIT=y
  26. CONFIG_CFW_QUARK_SE_HELPERS=y
  27. CONFIG_CONSOLE_MANAGER=y
  28. CONFIG_DEBUG_PANIC_TCMD=y
  29. CONFIG_FACTORY_DATA_WRITE=y
  30. CONFIG_FACTORY_DATA=y
  31. CONFIG_INTEL_QRK_AON_PT=y
  32. CONFIG_INTEL_QRK_RTC=y
  33. CONFIG_INTEL_QRK_SPI=y
  34. CONFIG_INTEL_QRK_WDT=y
  35. CONFIG_LOG_CBUFFER_SIZE=2048
  36. CONFIG_LOG_CBUFFER=y
  37. CONFIG_MEMORY_POOLS_BALLOC_STATISTICS=y
  38. CONFIG_MEMORY_POOLS_BALLOC_TRACK_OWNER=y
  39. CONFIG_MEM_POOL_DEF_PATH="$(PROJECT_PATH)/quark"
  40. CONFIG_OS_ZEPHYR=y
  41. CONFIG_PANIC_ON_BUS_ERROR=y
  42. CONFIG_QUARK_SE_PROPERTIES_STORAGE=y
  43. CONFIG_QUARK=y
  44. CONFIG_SERVICES_QUARK_SE_ADC=y
  45. CONFIG_SERVICES_QUARK_SE_GPIO_IMPL=y
  46. CONFIG_SERVICES_QUARK_SE_GPIO=y
  47. CONFIG_SOC_FLASH=y
  48. CONFIG_SOC_GPIO_32=y
  49. CONFIG_SOC_GPIO=y
  50. CONFIG_SOC_ROM=y
  51. CONFIG_SPI_FLASH_W25Q16DV=y
  52. CONFIG_STORAGE_TASK=y
  53. CONFIG_TCMD_CONSOLE=y
  54. CONFIG_TCMD_MASTER=y
  55. CONFIG_TCMD=y
  56. CONFIG_UART_NS16550=y
  57. CONFIG_UART_PM_NS16550=y
  58. CONFIG_ZEPHYR_BOARD="arduino_101"
  59.  
  60. #CONFIG_PROPERTIES_STORAGE=y
  61. CONFIG_SPI_FLASH=y
  62.  
  63.  
  64.  
  65.  
  66.  
  67. ~~~~~~~~~~~~~~~LOGS~~~~~~~~~~~~~~~~~~~
  68.  
  69.  
  70. Welcome to minicom 2.5
  71.  
  72. OPTIONS: I18n
  73. Compiled on May 2 2011, 10:05:24.
  74. Port /dev/ttyUSB1
  75.  
  76. Press CTRL-A Z for help on special keys
  77.  
  78.  
  79.  
  80.  
  81.  
  82. BOOT
  83.  
  84.  
  85. Quark SE ID 16 Rev 0 A1
  86. ARC Core state: 00004000
  87. BOOT TARGET: 0
  88. 5877|QRK| DRV|ERROR| rdid check failed (0x1728c2)
  89.  
  90. PANIC for 0 (dump located on 0xa800e000)
  91. QRK BUILD CKSUM: 0591d6a9
  92. QRK BUILD VERSION: 00000001
  93. QRK PANIC (23, 0x40010e19) - EIP=0x00000000 - ESP=0xa800a794
  94.  
  95. Registers:
  96.  
  97. cr2: 00000000
  98. edi: 00000000
  99. esi: 00000000
  100. ebx: 4001046e
  101. ebp: a800a78c
  102. edx: a800a784
  103. ecx: 4001ac71
  104. eax: 00000000
  105. error: 40010e19
  106. cs: a800a7ac
  107. flags: 40010b69
  108. ss: 00000010
  109.  
  110. Stack:
  111.  
  112. 0xa800a794: 4001ac71 a800a7a0 4001ac00 00000002
  113. 0xa800a7a4: a8000008 00000202 a800a7b8 4001909a
  114. 0xa800a7b4: 00000000 00000202 00000000 4efd35a2
  115. 0xa800a7c4: b69dcd8c fd576a7d 6f6cfa7f 1286f1aa
  116. 0xa800a7d4: d87f65da 6b3cdf1f fffffe73 08909d85
  117. 0xa800a7e4: 43841a00 b6344260 b52f553e 09201ec7
  118. 0xa800a7f4: 680aa3eb 10500020 01b51c02 8bd314b7
  119. 0xa800a804: 58fdd3d7 748c25b5 efca70ee bb7bdfe4
  120. 0xa800a814: 1bf99d51 7350fbef d1a7e777 40c06054
  121. 0xa800a824: 24941209 ca0ab041 b6c2f880 05c83864
  122.  
  123. PANIC for 1 (dump located on 0xa8014000)
  124. ARC BUILD CKSUM: 55c841cb
  125. ARC BUILD VERSION: 00000001
  126. ARC PANIC - eret=0x4003dfac - sp=0x800007e8
  127.  
  128. Registers:
  129.  
  130. r0:00000001 r1:00000015 r2:00000000 r3:00000000
  131. r4:a8002fc0 r5:00000000 r6:0000003f r7:a800f2f4
  132. r8:f0000000 r9:0000001c r10:00000020 r11:10000000
  133. r12:b0800a10 r13:a800f918 r14:00000000 r15:ffffffff
  134. r16:a800f5eb r17:0002f6f9 r18:a800e968 r19:0000003f
  135. r20:a800f2f4 r21:f0000000 r22:0000001c r23:00000020
  136. r24:10000000 r25:00000008 gp:a800f918 fp:4003d834
  137. sp:800007e8 il:4003dfac r30:4003d028 bl:40035534
  138.  
  139. Status registers:
  140.  
  141. ecr:00000000
  142. efa:00000000
  143. eret:4003dfac
  144. erstatus:00000000
  145.  
  146. Stack:
  147.  
  148. 0x800007e8: 4003b5e8 a800f918 0000001f 40034c66
  149. 0x800007f8: 4003e436 4003e468 da077dcf e39b8daf
  150. 0x80000808: ba7f2aef e4ebe5d7 0820093c b05b02b0
  151. 0x80000818: 4c809501 143d20b4 2f6b5bf1 dee4ecbf
  152. 0x80000828: 7d6bb788 cfcffef7 00702005 a4014ec8
  153. 0x80000838: 8b400821 55259c42 a5e4a10d f95bfef4
  154. 0x80000848: 1ff5cb7f fcfc3fff b1e12900 515240d5
  155. 0x80000858: 060318aa a1f3c157 fa0b35b7 31f6bc5d
  156. 0x80000868: ce7dc7ae fd376fe3 84010090 430a72f0
  157. 0x80000878: aa0d0144 03e0cc09 45dbe4f4 762a248a
  158. C
  159.  
  160.  
  161.  
  162. BOOT
  163.  
  164.  
  165. Quark SE ID 16 Rev 0 A1
  166. ARC Core state: 00004000
  167. BOOT TARGET: 0
  168. 5877|QRK| DRV|ERROR| rdid check failed (0x1728c2)
  169.  
  170. PANIC for 0 (dump located on 0xa800e000)
  171. QRK BUILD CKSUM: 0591d6a9
  172. QRK BUILD VERSION: 00000001
  173. QRK PANIC (23, 0x40010e19) - EIP=0x00000000 - ESP=0xa800a794
  174.  
  175. Registers:
  176.  
  177. cr2: 00000000
  178. edi: 00000000
  179. esi: 00000000
  180. ebx: 4001046e
  181. ebp: a800a78c
  182. edx: a800a784
  183. ecx: 4001ac71
  184. eax: 00000000
  185. error: 40010e19
  186. cs: a800a7ac
  187. flags: 40010b69
  188. ss: 00000010
  189.  
  190. Stack:
  191.  
  192. 0xa800a794: 4001ac71 a800a7a0 4001ac00 00000002
  193. 0xa800a7a4: a8000008 00000202 a800a7b8 4001909a
  194. 0xa800a7b4: 00000000 00000202 00000000 4efd35a2
  195. 0xa800a7c4: b69dcd8c fd576a7d 6f6cfa7f 1286f1aa
  196. 0xa800a7d4: d87f65da 6b3cdf1f fffffe73 08909d85
  197. 0xa800a7e4: 43841a00 b6344260 b52f553e 09201ec7
  198. 0xa800a7f4: 680aa3eb 10500020 01b51c02 8bd314b7
  199. 0xa800a804: 58fdd3d7 748c25b5 efca70ee bb7bdfe4
  200. 0xa800a814: 1bf99d51 7350fbef d1a7e777 40c06054
  201. 0xa800a824: 24941209 ca0ab041 b6c2f880 05c83864
  202.  
  203. PANIC for 1 (dump located on 0xa8014000)
  204. ARC BUILD CKSUM: 55c841cb
  205. ARC BUILD VERSION: 00000001
  206. ARC PANIC - eret=0x4003dfac - sp=0x800007e8
  207.  
  208. Registers:
  209.  
  210. r0:00000001 r1:00000015 r2:00000000 r3:00000000
  211. r4:a8002fc0 r5:00000000 r6:0000003f r7:a800f2f4
  212. r8:f0000000 r9:0000001c r10:00000020 r11:10000000
  213. r12:b0800a10 r13:a800f918 r14:00000000 r15:ffffffff
  214. r16:a800f5eb r17:0002f6f9 r18:a800e968 r19:0000003f
  215. r20:a800f2f4 r21:f0000000 r22:0000001c r23:00000020
  216. r24:10000000 r25:00000008 gp:a800f918 fp:4003d834
  217. sp:800007e8 il:4003dfac r30:4003d028 bl:40035534
  218.  
  219. Status registers:
  220.  
  221. ecr:00000000
  222. efa:00000000
  223. eret:4003dfac
  224. erstatus:00000000
  225.  
  226. Stack:
  227.  
  228. 0x800007e8: 4003b5e8 a800f918 0000001f 40034c66
  229. 0x800007f8: 4003e436 4003e468 da077dcf e39b8daf
  230. 0x80000808: ba7f2aef e4ebe5d7 0820093c b05b02b0
  231. 0x80000818: 4c809501 143d20b4 2f6b5bf1 dee4ecbf
  232. 0x80000828: 7d6bb788 cfcffef7 00702005 a4014ec8
  233. 0x80000838: 8b400821 55259c42 a5e4a10d f95bfef4
  234. 0x80000848: 1ff5cb7f fcfc3fff b1e12900 515240d5
  235. 0x80000858: 060318aa a1f3c157 fa0b35b7 31f6bc5d
  236. 0x80000868: ce7dc7ae fd376fe3 84010090 430a72f0
  237. 0x80000878: aa0d0144 03e0cc09 45dbe4f4 762a248a
  238. C
  239.  
  240.  
  241.  
  242. BOOT
  243.  
  244.  
  245. Quark SE ID 16 Rev 0 A1
  246. ARC Core state: 00004000
  247. BOOT TARGET: 0
  248. 5877|QRK| DRV|ERROR| rdid check failed (0x1728c2)
  249.  
  250. PANIC for 0 (dump located on 0xa800e000)
  251. QRK BUILD CKSUM: 0591d6a9
  252. QRK BUILD VERSION: 00000001
  253. QRK PANIC (23, 0x40010e19) - EIP=0x00000000 - ESP=0xa800a794
  254.  
  255. Registers:
  256.  
  257. cr2: 00000000
  258. edi: 00000000
  259. esi: 00000000
  260. ebx: 4001046e
  261. ebp: a800a78c
  262. edx: a800a784
  263. ecx: 4001ac71
  264. eax: 00000000
  265. error: 40010e19
  266. cs: a800a7ac
  267. flags: 40010b69
  268. ss: 00000010
  269.  
  270. Stack:
  271.  
  272. 0xa800a794: 4001ac71 a800a7a0 4001ac00 00000002
  273. 0xa800a7a4: a8000008 00000202 a800a7b8 4001909a
  274. 0xa800a7b4: 00000000 00000202 00000000 4efd35a2
  275. 0xa800a7c4: b69dcd8c fd576a7d 6f6cfa7f 1286f1aa
  276. 0xa800a7d4: d87f65da 6b3cdf1f fffffe73 08909d85
  277. 0xa800a7e4: 43841a00 b6344260 b52f553e 09201ec7
  278. 0xa800a7f4: 680aa3eb 10500020 01b51c02 8bd314b7
  279. 0xa800a804: 58fdd3d7 748c25b5 efca70ee bb7bdfe4
  280. 0xa800a814: 1bf99d51 7350fbef d1a7e777 40c06054
  281. 0xa800a824: 24941209 ca0ab041 b6c2f880 05c83864
  282.  
  283. PANIC for 1 (dump located on 0xa8014000)
  284. ARC BUILD CKSUM: 55c841cb
  285. ARC BUILD VERSION: 00000001
  286. ARC PANIC - eret=0x4003dfac - sp=0x800007e8
  287.  
  288. Registers:
  289.  
  290. r0:00000001 r1:00000015 r2:00000000 r3:00000000
  291. r4:a8002fc0 r5:00000000 r6:0000003f r7:a800f2f4
  292. r8:f0000000 r9:0000001c r10:00000020 r11:10000000
  293. r12:b0800a10 r13:a800f918 r14:00000000 r15:ffffffff
  294. r16:a800f5eb r17:0002f6f9 r18:a800e968 r19:0000003f
  295. r20:a800f2f4 r21:f0000000 r22:0000001c r23:00000020
  296. r24:10000000 r25:00000008 gp:a800f918 fp:4003d834
  297. sp:800007e8 il:4003dfac r30:4003d028 bl:40035534
  298.  
  299. Status registers:
  300.  
  301. ecr:00000000
  302. efa:00000000
  303. eret:4003dfac
  304. erstatus:00000000
  305.  
  306. Stack:
  307.  
  308. 0x800007e8: 4003b5e8 a800f918 0000001f 40034c66
  309. 0x800007f8: 4003e436 4003e468 da077dcf e39b8daf
  310. 0x80000808: ba7f2aef e4ebe5d7 0820093c b05b02b0
  311. 0x80000818: 4c809501 143d20b4 2f6b5bf1 dee4ecbf
  312. 0x80000828: 7d6bb788 cfcffef7 00702005 a4014ec8
  313. 0x80000838: 8b400821 55259c42 a5e4a10d f95bfef4
  314. 0x80000848: 1ff5cb7f fcfc3fff b1e12900 515240d5
  315. 0x80000858: 060318aa a1f3c157 fa0b35b7 31f6bc5d
  316. 0x80000868: ce7dc7ae fd376fe3 84010090 430a72f0
  317. 0x80000878: aa0d0144 03e0cc09 45dbe4f4 762a248a
  318. C
  319.  
  320.  
  321.  
  322. BOOT
  323.  
  324.  
  325. Quark SE ID 16 Rev 0 A1
  326. ARC Core state: 00004000
  327. BOOT TARGET: 0
  328. 5918|QRK| DRV|ERROR| rdid check failed (0x1728c2)
  329.  
  330. PANIC for 0 (dump located on 0xa800e000)
  331. QRK BUILD CKSUM: 0591d6a9
  332. QRK BUILD VERSION: 00000001
  333. QRK PANIC (23, 0x40010e19) - EIP=0x00000000 - ESP=0xa800a794
  334.  
  335. Registers:
  336.  
  337. cr2: 00000000
  338. edi: 00000000
  339. esi: 00000000
  340. ebx: 4001046e
  341. ebp: a800a78c
  342. edx: a800a784
  343. ecx: 4001ac71
  344. eax: 00000000
  345. error: 40010e19
  346. cs: a800a7ac
  347. flags: 40010b69
  348. ss: 00000010
  349.  
  350. Stack:
  351.  
  352. 0xa800a794: 4001ac71 a800a7a0 4001ac00 00000002
  353. 0xa800a7a4: a8000008 00000202 a800a7b8 4001909a
  354. 0xa800a7b4: 00000000 00000202 00000000 4efd35a2
  355. 0xa800a7c4: b69dcd8c fd576a7d 6f6cfa7f 1286f1aa
  356. 0xa800a7d4: d87f65da 6b3cdf1f fffffe73 08909d85
  357. 0xa800a7e4: 43841a00 b6344260 b52f553e 09201ec7
  358. 0xa800a7f4: 680aa3eb 10500020 01b51c02 8bd314b7
  359. 0xa800a804: 58fdd3d7 748c25b5 efca70ee bb7bdfe4
  360. 0xa800a814: 1bf99d51 7350fbef d1a7e777 40c06054
  361. 0xa800a824: 24941209 ca0ab041 b6c2f880 05c83864
  362.  
  363. PANIC for 1 (dump located on 0xa8014000)
  364. ARC BUILD CKSUM: 55c841cb
  365. ARC BUILD VERSION: 00000001
  366. ARC PANIC - eret=0x4003dfac - sp=0x800007e8
  367.  
  368. Registers:
  369.  
  370. r0:00000001 r1:00000015 r2:00000000 r3:00000000
  371. r4:a8002fc0 r5:00000000 r6:0000003f r7:a800f2f4
  372. r8:f0000000 r9:0000001c r10:00000020 r11:10000000
  373. r12:b0800a10 r13:a800f918 r14:00000000 r15:ffffffff
  374. r16:a800f5eb r17:0002f6fa r18:a800e968 r19:0000003f
  375. r20:a800f2f4 r21:f0000000 r22:0000001c r23:00000020
  376. r24:10000000 r25:00000008 gp:a800f918 fp:4003d834
  377. sp:800007e8 il:4003dfac r30:4003d028 bl:40035534
  378.  
  379. Status registers:
  380.  
  381. ecr:00000000
  382. efa:00000000
  383. eret:4003dfac
  384. erstatus:00000000
  385.  
  386. Stack:
  387.  
  388. 0x800007e8: 4003b5e8 a800f918 0000001f 40034c66
  389. 0x800007f8: 4003e436 4003e468 da077dcf e39b8daf
  390. 0x80000808: ba7f2aef e4ebe5d7 0820093c b05b02b0
  391. 0x80000818: 4c809501 143d20b4 2f6b5bf1 dee4ecbf
  392. 0x80000828: 7d6bb788 cfcffef7 00702005 a4014ec8
  393. 0x80000838: 8b400821 55259c42 a5e4a10d f95bfef4
  394. 0x80000848: 1ff5cb7f fcfc3fff b1e12900 515240d5
  395. 0x80000858: 060318aa a1f3c157 fa0b35b7 31f6bc5d
  396. 0x80000868: ce7dc7ae fd376fe3 84010090 430a72f0
  397. 0x80000878: aa0d0144 03e0cc09 45dbe4f4 762a248a
  398. C
  399.  
  400.  
  401.  
  402. BOOT
  403.  
  404.  
  405. Quark SE ID 16 Rev 0 A1
  406. ARC Core state: 00004000
  407. BOOT TARGET: 0
  408. 5877|QRK| DRV|ERROR| rdid check failed (0x1728c2)
  409.  
  410. PANIC for 0 (dump located on 0xa800e000)
  411. QRK BUILD CKSUM: 0591d6a9
  412. QRK BUILD VERSION: 00000001
  413. QRK PANIC (23, 0x40010e19) - EIP=0x00000000 - ESP=0xa800a794
  414.  
  415. Registers:
  416.  
  417. cr2: 00000000
  418. edi: 00000000
  419. esi: 00000000
  420. ebx: 4001046e
  421. ebp: a800a78c
  422. edx: a800a784
  423. ecx: 4001ac71
  424. eax: 00000000
  425. error: 40010e19
  426. cs: a800a7ac
  427. flags: 40010b69
  428. ss: 00000010
  429.  
  430. Stack:
  431.  
  432. 0xa800a794: 4001ac71 a800a7a0 4001ac00 00000002
  433. 0xa800a7a4: a8000008 00000202 a800a7b8 4001909a
  434. 0xa800a7b4: 00000000 00000202 00000000 4efd35a2
  435. 0xa800a7c4: b69dcd8c fd576a7d 6f6cfa7f 1286f1aa
  436. 0xa800a7d4: d87f65da 6b3cdf1f fffffe73 08909d85
  437. 0xa800a7e4: 43841a00 b6344260 b52f553e 09201ec7
  438. 0xa800a7f4: 680aa3eb 10500020 01b51c02 8bd314b7
  439. 0xa800a804: 58fdd3d7 748c25b5 efca70ee bb7bdfe4
  440. 0xa800a814: 1bf99d51 7350fbef d1a7e777 40c06054
  441. 0xa800a824: 24941209 ca0ab041 b6c2f880 05c83864
  442.  
  443. PANIC for 1 (dump located on 0xa8014000)
  444. ARC BUILD CKSUM: 55c841cb
  445. ARC BUILD VERSION: 00000001
  446. ARC PANIC - eret=0x4003dfac - sp=0x800007e8
  447.  
  448. Registers:
  449.  
  450. r0:00000001 r1:00000015 r2:00000000 r3:00000000
  451. r4:a8002fc0 r5:00000000 r6:0000003f r7:a800f2f4
  452. r8:f0000000 r9:0000001c r10:00000020 r11:10000000
  453. r12:b0800a10 r13:a800f918 r14:00000000 r15:ffffffff
  454. r16:a800f5eb r17:0002fc43 r18:a800e968 r19:0000003f
  455. r20:a800f2f4 r21:f0000000 r22:0000001c r23:00000020
  456. r24:10000000 r25:00000008 gp:a800f918 fp:4003d834
  457. sp:800007e8 il:4003dfac r30:4003d028 bl:40035534
  458.  
  459. Status registers:
  460.  
  461. ecr:00000000
  462. efa:00000000
  463. eret:4003dfac
  464. erstatus:00000000
  465.  
  466. Stack:
  467.  
  468. 0x800007e8: 4003b5e8 a800f918 0000001f 40034c66
  469. 0x800007f8: 4003e436 4003e468 da077dcf e39b8daf
  470. 0x80000808: ba7f2aef e4ebe5d7 0820093c b05b02b0
  471. 0x80000818: 4c809501 143d20b4 2f6b5bf1 dee4ecbf
  472. 0x80000828: 7d6bb788 cfcffef7 00702005 a4014ec8
  473. 0x80000838: 8b400821 55259c42 a5e4a10d f95bfef4
  474. 0x80000848: 1ff5cb7f fcfc3fff b1e12900 515240d5
  475. 0x80000858: 060318aa a1f3c157 fa0b35b7 31f6bc5d
  476. 0x80000868: ce7dc7ae fd376fe3 84010090 430a72f0
  477. 0x80000878: aa0d0144 03e0cc09 45dbe4f4 762a248a
  478. C
  479. CTRL-A Z for help |115200 8N1 | NOR | Minicom 2.5 | VT102 | Offline
RAW Paste Data