您尚未登录。

楼主 # 2023-12-20 12:55:54

sjshe3326
会员
注册时间: 2020-10-19
已发帖子: 125
积分: 69.5

烧录失败问题

前面烧录都正常,今天发现烧录不对,Aiburn显示成功,但是log里面有错误,实际上img也没有烧录进去,还是旧的。
看看是什么问题?

err.jpg

[debug] [2023-12-20 12:41:08] Software Version: "1.0.8"
[debug] [2023-12-20 12:41:08] Machine Name: "123[img]https://whycan.com/files/members/5326/err.jpg[/img][img]https://whycan.com/files/members/5326/err.jpg[/img]"
[debug] [2023-12-20 12:41:08] System Name: "Windows 10 (10.0)"
[debug] [2023-12-20 12:41:08] CPU Architecture: "x86_64" 

[debug] [2023-12-20 12:41:08] Parse the image header from "E:/ArtinChip/luban-lite/output/d13x_demo88-nor_baremetal_helloworld/images/d13x_demo88-nor_v1.0.0.img"
[debug] [2023-12-20 12:41:08] Soc type: "d13x"
[debug] [2023-12-20 12:41:08] Board type: "demo88-nor"
[debug] [2023-12-20 12:41:08] Image version: "1.0.0"
[debug] [2023-12-20 12:41:08] Storage type: "spi-nor"
[debug] [2023-12-20 12:41:08] Storage ID: ""
[debug] [2023-12-20 12:41:08] Meta count: "4" 

[debug] [2023-12-20 12:41:08] Refresh the partition tree ...
[debug] [2023-12-20 12:41:08]   Part name: image.target.spl , size: 125968 
[debug] [2023-12-20 12:41:08]   Part name: image.target.os , size: 122320 

[debug] [2023-12-20 12:41:08] Current connect type: 0
[debug] [2023-12-20 12:41:08] No device available
[debug] [2023-12-20 12:41:12] Current file path: "E:/ArtinChip/luban-lite/output/d13x_demo88-nor_baremetal_helloworld/images/d13x_demo88-nor_v1.0.0.img"
[debug] [2023-12-20 12:41:30] Parse the image header from "E:/ArtinChip/baremetal/output/d13x_demo88-nor_baremetal_helloworld/images/d13x_demo88-nor_v1.0.0.img"
[debug] [2023-12-20 12:41:30] Soc type: "d13x"
[debug] [2023-12-20 12:41:30] Board type: "demo88-nor"
[debug] [2023-12-20 12:41:30] Image version: "1.0.0"
[debug] [2023-12-20 12:41:30] Storage type: "spi-nor"
[debug] [2023-12-20 12:41:30] Storage ID: ""
[debug] [2023-12-20 12:41:30] Meta count: "4" 

[debug] [2023-12-20 12:41:30] Refresh the partition tree ...
[debug] [2023-12-20 12:41:30]   Part name: image.target.spl , size: 96272 
[debug] [2023-12-20 12:41:30]   Part name: image.target.os , size: 96784 


[debug] [2023-12-20 12:41:38] WinEvent: Some devnode changed
[debug] [2023-12-20 12:41:38] There are "1" device available

[debug] [2023-12-20 12:41:38] Try to connect the ArtInChip device ...
[debug] [2023-12-20 12:41:38] Try to get Usb device hd info...
[debug] [2023-12-20 12:41:38] Boot device1: "0"
[debug] [2023-12-20 12:41:38] Boot device2: "0"
[debug] [2023-12-20 12:41:38] The status of ArtInChip device:  true

[debug] [2023-12-20 12:41:38] WinEvent: Some devnode changed
[debug] [2023-12-20 12:41:38] There are "1" device available
[debug] [2023-12-20 12:41:50] Start burn online ...
[debug] [2023-12-20 12:41:50] Progress range: 0 ~  294912

[debug] [2023-12-20 12:41:50] Burn Image file "E:/ArtinChip/baremetal/output/d13x_demo88-nor_baremetal_helloworld/images/d13x_demo88-nor_v1.0.0.img" ...


[debug] [2023-12-20 12:41:50] Meta 0 image.updater.spl , size 96272 ...
[debug] [2023-12-20 12:41:50] Blocksize 4 , chunk 1048576 * 0 , rest 96272
[debug] [2023-12-20 12:41:50] Offset: 4096 Size: 96272
[debug] [2023-12-20 12:41:50]  Dev "1:3" Send the rest data 96272
[error] [2023-12-20 12:41:51] aicupg_trans_recv_pkt()208:             CSW size 0, Pipe error(-9)
[error] [2023-12-20 12:41:51] aicupg_cmd_send_fwc_data_final()704:    Recv resp failed, expect 16, got 0
[debug] [2023-12-20 12:41:51] Don't check the result of image.updater.spl

[debug] [2023-12-20 12:41:51] Meta 1 image.info , size 2048 ...
[error] [2023-12-20 12:41:51] aicupg_trans_send_pkt()80:              CBW tag 0x41, size 0, Input/Output Error(-1)
[error] [2023-12-20 12:41:51] aicupg_cmd_get_hwinfo()85:              Send command failed. ret = 0, siz = 16
[debug] [2023-12-20 12:41:51] Wait to reconnect dev "1:3"
[debug] [2023-12-20 12:41:51] QTime("12:41:51.210") Wait for Dev "1:3" ready

[debug] [2023-12-20 12:41:51] WinEvent: Some devnode changed

[debug] [2023-12-20 12:41:51] WinEvent: Some devnode changed
[warn ] [2023-12-20 12:41:51] Set upg work mode: 0

[debug] [2023-12-20 12:41:51] WinEvent: Some devnode changed
[debug] [2023-12-20 12:41:51] Blocksize 1 , chunk 1048576 * 0 , rest 2048
[debug] [2023-12-20 12:41:51] Offset: 0 Size: 2048
[debug] [2023-12-20 12:41:51]  Dev "1:3" Send the rest data 2048

[debug] [2023-12-20 12:41:51] Meta 2 image.target.spl , size 96272 ...
[debug] [2023-12-20 12:41:51] Blocksize 2048 , chunk 1048576 * 0 , rest 96272
[debug] [2023-12-20 12:41:51] Offset: 102400 Size: 96272
[debug] [2023-12-20 12:41:51]  Dev "1:3" Send the rest data 98304

[debug] [2023-12-20 12:41:51] Meta 3 image.target.os , size 96784 ...
[debug] [2023-12-20 12:41:51] Blocksize 2048 , chunk 1048576 * 0 , rest 96784
[debug] [2023-12-20 12:41:51] Offset: 200704 Size: 96784
[debug] [2023-12-20 12:41:51]  Dev "1:3" Send the rest data 98304
[warn ] [2023-12-20 12:41:51] Invalid progress position:  "294928"

[debug] [2023-12-20 12:41:51] Burn online successfully!
[debug] [2023-12-20 12:41:51] Update "success_cnt" of "2023-12-20"
[debug] [2023-12-20 12:42:21] Current connect type: 1
[debug] [2023-12-20 12:42:21] Release usb resource
[debug] [2023-12-20 12:42:21] Scan the available Serial Device ...

[debug] [2023-12-20 12:42:21] Current serial dev: "COM4"
[debug] [2023-12-20 12:42:21] " ޷  򿪴    COM4"

[debug] [2023-12-20 12:42:31] WinEvent: Some devnode changed

[debug] [2023-12-20 12:42:31] Try to connect the ArtInChip device ...
[debug] [2023-12-20 12:42:31] Try to connect  "COM4"
[warn ] [2023-12-20 12:42:31] Cannot find ArtInChip device in "COM4"
[debug] [2023-12-20 12:42:31] The status of ArtInChip device:  false

[debug] [2023-12-20 12:42:32] WinEvent: Some devnode changed
[error] [2023-12-20 12:42:32] uart_conn_mgr_thread()431:              uart_conn_mgr_thread: Got 00
[error] [2023-12-20 12:42:32] uart_conn_mgr_thread()431:              uart_conn_mgr_thread: Got C0
[debug] [2023-12-20 12:43:05] Current file path: "E:/ArtinChip/baremetal/output/d13x_demo88-nor_baremetal_helloworld/images/d13x_demo88-nor_v1.0.0.img"
[debug] [2023-12-20 12:43:06] Parse the image header from "E:/ArtinChip/baremetal/output/d13x_demo88-nor_baremetal_helloworld/images/d13x_demo88-nor_v1.0.0.img"
[debug] [2023-12-20 12:43:06] Soc type: "d13x"
[debug] [2023-12-20 12:43:06] Board type: "demo88-nor"
[debug] [2023-12-20 12:43:06] Image version: "1.0.0"
[debug] [2023-12-20 12:43:06] Storage type: "spi-nor"
[debug] [2023-12-20 12:43:06] Storage ID: ""
[debug] [2023-12-20 12:43:06] Meta count: "4" 

[debug] [2023-12-20 12:43:06] Refresh the partition tree ...
[debug] [2023-12-20 12:43:06]   Part name: image.target.spl , size: 96272 
[debug] [2023-12-20 12:43:06]   Part name: image.target.os , size: 96784 

[error] [2023-12-20 12:43:09] uart_conn_mgr_thread()431:              uart_conn_mgr_thread: Got 00

[debug] [2023-12-20 12:43:09] WinEvent: Some devnode changed

[debug] [2023-12-20 12:43:12] WinEvent: Some devnode changed

[debug] [2023-12-20 12:43:12] WinEvent: Some devnode changed
[error] [2023-12-20 12:43:14] uart_conn_mgr_thread()431:              uart_conn_mgr_thread: Got 00
[debug] [2023-12-20 12:43:18] Current connect type: 0
[debug] [2023-12-20 12:43:18] There are "1" device available

[debug] [2023-12-20 12:43:18] Try to connect the ArtInChip device ...
[debug] [2023-12-20 12:43:18] Try to get Usb device hd info...
[debug] [2023-12-20 12:43:18] Boot device1: "0"
[debug] [2023-12-20 12:43:18] Boot device2: "0"
[debug] [2023-12-20 12:43:18] The status of ArtInChip device:  true
[debug] [2023-12-20 12:43:22] Release Serial resource
[debug] [2023-12-20 12:43:23] Current connect type: 1
[debug] [2023-12-20 12:43:23] Release usb resource
[debug] [2023-12-20 12:43:23] Scan the available Serial Device ...

[debug] [2023-12-20 12:43:23] Current serial dev: ""
[debug] [2023-12-20 12:43:23] Current serial dev: "COM4"
[debug] [2023-12-20 12:43:24] Start burn online ...
[debug] [2023-12-20 12:43:24] Progress range: 0 ~  294912

[debug] [2023-12-20 12:43:24] Burn Image file "E:/ArtinChip/baremetal/output/d13x_demo88-nor_baremetal_helloworld/images/d13x_demo88-nor_v1.0.0.img" ...

[debug] [2023-12-20 12:43:24] Try to connect  ""
[error] [2023-12-20 12:43:24] libuart_open()520:                      Failed to open COM device.
[warn ] [2023-12-20 12:43:24] Failed to open  ""
[error] [2023-12-20 12:43:24] Failed to open ArtInChip device
[debug] [2023-12-20 12:43:24] Update "fail_cnt" of "2023-12-20"
[debug] [2023-12-20 12:43:33] Current connect type: 0
[debug] [2023-12-20 12:43:33] Release Serial resource
[debug] [2023-12-20 12:43:33] There are "1" device available

[debug] [2023-12-20 12:43:33] Try to connect the ArtInChip device ...
[debug] [2023-12-20 12:43:33] Try to get Usb device hd info...
[debug] [2023-12-20 12:43:33] Boot device1: "0"
[debug] [2023-12-20 12:43:33] Boot device2: "0"
[debug] [2023-12-20 12:43:33] The status of ArtInChip device:  true
[debug] [2023-12-20 12:43:35] Start burn online ...
[debug] [2023-12-20 12:43:35] Progress range: 0 ~  294912

[debug] [2023-12-20 12:43:35] Burn Image file "E:/ArtinChip/baremetal/output/d13x_demo88-nor_baremetal_helloworld/images/d13x_demo88-nor_v1.0.0.img" ...


[debug] [2023-12-20 12:43:35] Meta 0 image.updater.spl , size 96272 ...
[debug] [2023-12-20 12:43:35] Blocksize 4 , chunk 1048576 * 0 , rest 96272
[debug] [2023-12-20 12:43:35] Offset: 4096 Size: 96272
[debug] [2023-12-20 12:43:35]  Dev "1:3" Send the rest data 96272
[error] [2023-12-20 12:43:35] aicupg_trans_recv_pkt()208:             CSW size 0, Pipe error(-9)
[error] [2023-12-20 12:43:35] aicupg_cmd_send_fwc_data_final()704:    Recv resp failed, expect 16, got 0
[debug] [2023-12-20 12:43:35] Don't check the result of image.updater.spl

[debug] [2023-12-20 12:43:35] Meta 1 image.info , size 2048 ...
[error] [2023-12-20 12:43:35] aicupg_trans_send_pkt()80:              CBW tag 0xb9, size 0, Input/Output Error(-1)
[error] [2023-12-20 12:43:35] aicupg_cmd_get_hwinfo()85:              Send command failed. ret = 0, siz = 16
[debug] [2023-12-20 12:43:35] Wait to reconnect dev "1:3"
[debug] [2023-12-20 12:43:35] QTime("12:43:35.710") Wait for Dev "1:3" ready

[debug] [2023-12-20 12:43:35] WinEvent: Some devnode changed

[debug] [2023-12-20 12:43:35] WinEvent: Some devnode changed
[warn ] [2023-12-20 12:43:35] Set upg work mode: 0
[debug] [2023-12-20 12:43:35] Blocksize 1 , chunk 1048576 * 0 , rest 2048
[debug] [2023-12-20 12:43:35] Offset: 0 Size: 2048
[debug] [2023-12-20 12:43:35]  Dev "1:3" Send the rest data 2048

[debug] [2023-12-20 12:43:35] Meta 2 image.target.spl , size 96272 ...

[debug] [2023-12-20 12:43:36] WinEvent: Some devnode changed
[debug] [2023-12-20 12:43:36] Blocksize 2048 , chunk 1048576 * 0 , rest 96272
[debug] [2023-12-20 12:43:36] Offset: 102400 Size: 96272
[debug] [2023-12-20 12:43:36]  Dev "1:3" Send the rest data 98304

[debug] [2023-12-20 12:43:36] Meta 3 image.target.os , size 96784 ...
[debug] [2023-12-20 12:43:36] Blocksize 2048 , chunk 1048576 * 0 , rest 96784
[debug] [2023-12-20 12:43:36] Offset: 200704 Size: 96784
[debug] [2023-12-20 12:43:36]  Dev "1:3" Send the rest data 98304
[warn ] [2023-12-20 12:43:36] Invalid progress position:  "294928"

[debug] [2023-12-20 12:43:36] Burn online successfully!
[debug] [2023-12-20 12:43:36] Reboot the device ...
[error] [2023-12-20 12:43:36] aicupg_trans_recv_pkt()182:             CBW size 0, Pipe error(-9)
[debug] [2023-12-20 12:43:36] Update "success_cnt" of "2023-12-20"

[debug] [2023-12-20 12:43:36] WinEvent: Some devnode changed
[debug] [2023-12-20 12:43:36] No device available

[debug] [2023-12-20 12:43:37] WinEvent: Some devnode changed
[debug] [2023-12-20 12:43:37] No device available

[debug] [2023-12-20 12:43:38] WinEvent: Some devnode changed
[debug] [2023-12-20 12:43:38] No device available

[debug] [2023-12-20 12:44:18] WinEvent: Some devnode changed
[debug] [2023-12-20 12:44:18] There are "1" device available

[debug] [2023-12-20 12:44:18] Try to connect the ArtInChip device ...
[debug] [2023-12-20 12:44:18] Try to get Usb device hd info...

[debug] [2023-12-20 12:44:18] WinEvent: Some devnode changed
[debug] [2023-12-20 12:44:18] Boot device1: "0"
[debug] [2023-12-20 12:44:18] Boot device2: "0"
[debug] [2023-12-20 12:44:18] There are "1" device available
[debug] [2023-12-20 12:44:18] The status of ArtInChip device:  true
[debug] [2023-12-20 12:44:56] Start burn online ...
[debug] [2023-12-20 12:44:56] Progress range: 0 ~  294912

[debug] [2023-12-20 12:44:56] Burn Image file "E:/ArtinChip/baremetal/output/d13x_demo88-nor_baremetal_helloworld/images/d13x_demo88-nor_v1.0.0.img" ...


[debug] [2023-12-20 12:44:56] Meta 0 image.updater.spl , size 96272 ...
[debug] [2023-12-20 12:44:56] Blocksize 4 , chunk 1048576 * 0 , rest 96272
[debug] [2023-12-20 12:44:56] Offset: 4096 Size: 96272
[debug] [2023-12-20 12:44:56]  Dev "1:3" Send the rest data 96272
[error] [2023-12-20 12:44:57] aicupg_trans_recv_pkt()208:             CSW size 0, Pipe error(-9)
[error] [2023-12-20 12:44:57] aicupg_cmd_send_fwc_data_final()704:    Recv resp failed, expect 16, got 0
[debug] [2023-12-20 12:44:57] Don't check the result of image.updater.spl

[debug] [2023-12-20 12:44:57] Meta 1 image.info , size 2048 ...
[error] [2023-12-20 12:44:57] aicupg_trans_send_pkt()80:              CBW tag 0x132, size 0, Input/Output Error(-1)
[error] [2023-12-20 12:44:57] aicupg_cmd_get_hwinfo()85:              Send command failed. ret = 0, siz = 16
[debug] [2023-12-20 12:44:57] Wait to reconnect dev "1:3"
[debug] [2023-12-20 12:44:57] QTime("12:44:57.542") Wait for Dev "1:3" ready

[debug] [2023-12-20 12:44:57] WinEvent: Some devnode changed

[debug] [2023-12-20 12:44:57] WinEvent: Some devnode changed

[debug] [2023-12-20 12:44:57] WinEvent: Some devnode changed
[warn ] [2023-12-20 12:44:57] Set upg work mode: 0
[debug] [2023-12-20 12:44:57] Blocksize 1 , chunk 1048576 * 0 , rest 2048
[debug] [2023-12-20 12:44:57] Offset: 0 Size: 2048
[debug] [2023-12-20 12:44:57]  Dev "1:3" Send the rest data 2048

[debug] [2023-12-20 12:44:57] Meta 2 image.target.spl , size 96272 ...
[debug] [2023-12-20 12:44:57] Blocksize 2048 , chunk 1048576 * 0 , rest 96272
[debug] [2023-12-20 12:44:57] Offset: 102400 Size: 96272
[debug] [2023-12-20 12:44:57]  Dev "1:3" Send the rest data 98304

[debug] [2023-12-20 12:44:57] Meta 3 image.target.os , size 96784 ...
[debug] [2023-12-20 12:44:57] Blocksize 2048 , chunk 1048576 * 0 , rest 96784
[debug] [2023-12-20 12:44:57] Offset: 200704 Size: 96784
[debug] [2023-12-20 12:44:57]  Dev "1:3" Send the rest data 98304
[warn ] [2023-12-20 12:44:57] Invalid progress position:  "294928"

[debug] [2023-12-20 12:44:57] Burn online successfully!
[debug] [2023-12-20 12:44:57] Reboot the device ...
[error] [2023-12-20 12:44:57] aicupg_trans_recv_pkt()182:             CBW size 0, Pipe error(-9)
[debug] [2023-12-20 12:44:58] Update "success_cnt" of "2023-12-20"

[debug] [2023-12-20 12:44:58] WinEvent: Some devnode changed
[debug] [2023-12-20 12:44:58] No device available

[debug] [2023-12-20 12:45:32] Try to scan the current disk device ...
[debug] [2023-12-20 12:45:37] No device available
[debug] [2023-12-20 12:45:46] Http request: http://aitestserver.artmem.com:8080/api/get_last_version?app_id=1
[error] [2023-12-20 12:45:46] Http request error: QNetworkReply::HostNotFoundError
[debug] [2023-12-20 12:45:49] Http request: http://aitestserver.artmem.com:8080/api/get_last_version?app_id=1
[error] [2023-12-20 12:45:49] Http request error: QNetworkReply::HostNotFoundError
[debug] [2023-12-20 12:45:50] Http request: http://aitestserver.artmem.com:8080/api/get_last_version?app_id=1
[error] [2023-12-20 12:45:50] Http request error: QNetworkReply::HostNotFoundError

[debug] [2023-12-20 12:46:06] WinEvent: Some devnode changed
[debug] [2023-12-20 12:46:06] There are "1" device available

[debug] [2023-12-20 12:46:06] Try to connect the ArtInChip device ...

[debug] [2023-12-20 12:46:06] WinEvent: Some devnode changed
[debug] [2023-12-20 12:46:06] Try to get Usb device hd info...
[debug] [2023-12-20 12:46:06] Boot device1: "0"
[debug] [2023-12-20 12:46:06] Boot device2: "0"
[debug] [2023-12-20 12:46:06] There are "1" device available
[debug] [2023-12-20 12:46:06] The status of ArtInChip device:  true
[debug] [2023-12-20 12:46:07] Start burn online ...
[debug] [2023-12-20 12:46:07] Progress range: 0 ~  294912

[debug] [2023-12-20 12:46:07] Burn Image file "E:/ArtinChip/baremetal/output/d13x_demo88-nor_baremetal_helloworld/images/d13x_demo88-nor_v1.0.0.img" ...


[debug] [2023-12-20 12:46:07] Meta 0 image.updater.spl , size 96272 ...
[debug] [2023-12-20 12:46:07] Blocksize 4 , chunk 1048576 * 0 , rest 96272
[debug] [2023-12-20 12:46:07] Offset: 4096 Size: 96272
[debug] [2023-12-20 12:46:07]  Dev "1:3" Send the rest data 96272
[error] [2023-12-20 12:46:08] aicupg_trans_recv_pkt()208:             CSW size 0, Pipe error(-9)
[error] [2023-12-20 12:46:08] aicupg_cmd_send_fwc_data_final()704:    Recv resp failed, expect 16, got 0
[debug] [2023-12-20 12:46:08] Don't check the result of image.updater.spl

[debug] [2023-12-20 12:46:08] Meta 1 image.info , size 2048 ...
[error] [2023-12-20 12:46:08] aicupg_trans_send_pkt()80:              CBW tag 0x1ab, size 0, Input/Output Error(-1)
[error] [2023-12-20 12:46:08] aicupg_cmd_get_hwinfo()85:              Send command failed. ret = 0, siz = 16
[debug] [2023-12-20 12:46:08] Wait to reconnect dev "1:3"
[debug] [2023-12-20 12:46:08] QTime("12:46:08.186") Wait for Dev "1:3" ready

[debug] [2023-12-20 12:46:08] WinEvent: Some devnode changed

[debug] [2023-12-20 12:46:08] WinEvent: Some devnode changed
[warn ] [2023-12-20 12:46:08] Set upg work mode: 0

[debug] [2023-12-20 12:46:08] WinEvent: Some devnode changed
[debug] [2023-12-20 12:46:08] Blocksize 1 , chunk 1048576 * 0 , rest 2048
[debug] [2023-12-20 12:46:08] Offset: 0 Size: 2048
[debug] [2023-12-20 12:46:08]  Dev "1:3" Send the rest data 2048

[debug] [2023-12-20 12:46:08] Meta 2 image.target.spl , size 96272 ...
[debug] [2023-12-20 12:46:08] Blocksize 2048 , chunk 1048576 * 0 , rest 96272
[debug] [2023-12-20 12:46:08] Offset: 102400 Size: 96272
[debug] [2023-12-20 12:46:08]  Dev "1:3" Send the rest data 98304

[debug] [2023-12-20 12:46:08] Meta 3 image.target.os , size 96784 ...
[debug] [2023-12-20 12:46:08] Blocksize 2048 , chunk 1048576 * 0 , rest 96784
[debug] [2023-12-20 12:46:08] Offset: 200704 Size: 96784
[debug] [2023-12-20 12:46:08]  Dev "1:3" Send the rest data 98304
[warn ] [2023-12-20 12:46:08] Invalid progress position:  "294928"

[debug] [2023-12-20 12:46:08] Burn online successfully!
[debug] [2023-12-20 12:46:08] Reboot the device ...
[error] [2023-12-20 12:46:08] aicupg_trans_recv_pkt()182:             CBW size 0, Pipe error(-9)
[debug] [2023-12-20 12:46:08] Update "success_cnt" of "2023-12-20"

[debug] [2023-12-20 12:46:08] WinEvent: Some devnode changed
[debug] [2023-12-20 12:46:08] No device available
[debug] [2023-12-20 12:46:56] Current file path: "E:/ArtinChip/baremetal/output/d13x_demo88-nor_baremetal_helloworld/images/d13x_demo88-nor_v1.0.0.img"
[debug] [2023-12-20 12:47:08] Parse the image header from "E:/ArtinChip/luban-lite/output/d13x_demo88-nor_baremetal_helloworld/images/d13x_demo88-nor_v1.0.0.img"
[debug] [2023-12-20 12:47:08] Soc type: "d13x"
[debug] [2023-12-20 12:47:08] Board type: "demo88-nor"
[debug] [2023-12-20 12:47:08] Image version: "1.0.0"
[debug] [2023-12-20 12:47:08] Storage type: "spi-nor"
[debug] [2023-12-20 12:47:08] Storage ID: ""
[debug] [2023-12-20 12:47:08] Meta count: "4" 

[debug] [2023-12-20 12:47:08] Refresh the partition tree ...
[debug] [2023-12-20 12:47:08]   Part name: image.target.spl , size: 125968 
[debug] [2023-12-20 12:47:08]   Part name: image.target.os , size: 122320 


[debug] [2023-12-20 12:47:12] WinEvent: Some devnode changed
[debug] [2023-12-20 12:47:12] There are "1" device available

[debug] [2023-12-20 12:47:12] Try to connect the ArtInChip device ...

[debug] [2023-12-20 12:47:12] WinEvent: Some devnode changed
[debug] [2023-12-20 12:47:12] Try to get Usb device hd info...
[debug] [2023-12-20 12:47:12] Boot device1: "0"
[debug] [2023-12-20 12:47:12] Boot device2: "0"
[debug] [2023-12-20 12:47:12] There are "1" device available
[debug] [2023-12-20 12:47:12] The status of ArtInChip device:  true
[debug] [2023-12-20 12:47:22] Start burn online ...
[debug] [2023-12-20 12:47:22] Progress range: 0 ~  376832

[debug] [2023-12-20 12:47:22] Burn Image file "E:/ArtinChip/luban-lite/output/d13x_demo88-nor_baremetal_helloworld/images/d13x_demo88-nor_v1.0.0.img" ...


[debug] [2023-12-20 12:47:22] Meta 0 image.updater.spl , size 125968 ...
[debug] [2023-12-20 12:47:22] Blocksize 4 , chunk 1048576 * 0 , rest 125968
[debug] [2023-12-20 12:47:22] Offset: 4096 Size: 125968
[debug] [2023-12-20 12:47:22]  Dev "1:3" Send the rest data 125968
[error] [2023-12-20 12:47:22] aicupg_trans_recv_pkt()208:             CSW size 0, Pipe error(-9)
[error] [2023-12-20 12:47:22] aicupg_cmd_send_fwc_data_final()704:    Recv resp failed, expect 16, got 0
[debug] [2023-12-20 12:47:22] Don't check the result of image.updater.spl

[debug] [2023-12-20 12:47:22] Meta 1 image.info , size 2048 ...
[error] [2023-12-20 12:47:22] aicupg_trans_send_pkt()80:              CBW tag 0x232, size 0, Input/Output Error(-1)
[error] [2023-12-20 12:47:22] aicupg_cmd_get_hwinfo()85:              Send command failed. ret = 0, siz = 16
[debug] [2023-12-20 12:47:22] Wait to reconnect dev "1:3"
[debug] [2023-12-20 12:47:22] QTime("12:47:22.967") Wait for Dev "1:3" ready

[debug] [2023-12-20 12:47:22] WinEvent: Some devnode changed

[debug] [2023-12-20 12:47:23] WinEvent: Some devnode changed

[debug] [2023-12-20 12:47:23] WinEvent: Some devnode changed
[warn ] [2023-12-20 12:47:23] Set upg work mode: 0
[debug] [2023-12-20 12:47:23] Blocksize 1 , chunk 1048576 * 0 , rest 2048
[debug] [2023-12-20 12:47:23] Offset: 0 Size: 2048
[debug] [2023-12-20 12:47:23]  Dev "1:3" Send the rest data 2048

[debug] [2023-12-20 12:47:23] Meta 2 image.target.spl , size 125968 ...
[debug] [2023-12-20 12:47:23] Blocksize 2048 , chunk 1048576 * 0 , rest 125968
[debug] [2023-12-20 12:47:23] Offset: 131072 Size: 125968
[debug] [2023-12-20 12:47:23]  Dev "1:3" Send the rest data 126976

[debug] [2023-12-20 12:47:23] Meta 3 image.target.os , size 122320 ...
[debug] [2023-12-20 12:47:23] Blocksize 2048 , chunk 1048576 * 0 , rest 122320
[debug] [2023-12-20 12:47:23] Offset: 258048 Size: 122320
[debug] [2023-12-20 12:47:23]  Dev "1:3" Send the rest data 122880
[warn ] [2023-12-20 12:47:23] Invalid progress position:  "377872"

[debug] [2023-12-20 12:47:23] Burn online successfully!
[debug] [2023-12-20 12:47:23] Reboot the device ...
[error] [2023-12-20 12:47:23] aicupg_trans_send_pkt()104:             CSW tag 0x268, size 0, Pipe error(-9)
[debug] [2023-12-20 12:47:23] Update "success_cnt" of "2023-12-20"

[debug] [2023-12-20 12:47:23] WinEvent: Some devnode changed
[debug] [2023-12-20 12:47:23] No device available

离线

#1 2023-12-21 10:37:00

ArtInChip
会员
注册时间: 2023-11-11
已发帖子: 215
积分: 221

Re: 烧录失败问题

用最新的1.3.4的工具试试

离线

楼主 #2 2023-12-21 14:16:31

sjshe3326
会员
注册时间: 2020-10-19
已发帖子: 125
积分: 69.5

Re: 烧录失败问题

@ ArtInChip  1.34 工具哪里下?
换了个空的FLASH又可以下了 奇怪。

离线

#3 2023-12-21 21:21:41

ArtInChip
会员
注册时间: 2023-11-11
已发帖子: 215
积分: 221

Re: 烧录失败问题

sjshe3326 说:

@ ArtInChip  1.34 工具哪里下?
换了个空的FLASH又可以下了 奇怪。


在gitee 工具里面

离线

#4 2024-01-23 11:37:23

Gentlepig
会员
注册时间: 2018-10-24
已发帖子: 1,363
积分: 1323.5

Re: 烧录失败问题

我也遇到了类似问题,gitee上下载的1.36,板子是d133cbs, w25q128, 编译时,lunch 4, m, lunch6, m.

第一次烧录需要39s。
现在每次烧录是2s,显示成功了,但是我修改源码,在application/os/helloword/main.c,加入了while(1)循环,里面加了些rt_kprintf()语句,然后调用rt_thread_delay(1000),觉得应该是每秒打印信息,结果烧录后却没有。
感觉只是执行了第一次烧录的程序,后来的烧录显示成功,但实际上没烧录进去...

int main(void)
{
#ifdef AIC_AB_SYSTEM_INTERFACE
    char target[32] = { 0 };

    aic_ota_status_update();
    aic_get_rodata_to_mount(target);
    printf("Mount APP in blk %s\n", target);

    if (dfs_mount(target, "/rodata", "elm", 0, 0) < 0)
        printf("Failed to mount elm\n");
#endif
    while(1)
    {
        // rt_kprintf("-------------------");
        // rt_kprintf("app started.");
        // rt_kprintf("-------------------");
        printf("-------------------");
        printf("app started.");
        printf("-------------------");
        rt_thread_delay(1000);
        rt_thread_delay(1000);
    }
    return 0;
}

ps显示线程列表,看到有gt911和alarmsvc线程,找到这两个的启动相关注释掉:

// INIT_DEVICE_EXPORT(rt_hw_gt911_port);
// INIT_PREV_EXPORT(rt_alarm_system_init);

结果烧录后,ps里还能看到这两个.

启动信息如下:

tinySPL [Built on Jan 22 2024 08:57:26]
[W] usbh_get_connect_id()107 usb 0 port change wait failed.
[E] main()137 Not find udisk.
Reboot action: Warm-Reset, reason: External-Reset
Firmware Component:
    name:      image.info
    partition:
    attr:      required
    Media:     RAM(0)
qspi0 freq (input): 100000000Hz
qspi0 freq ( bus ): 50000000Hz
qspi0 freq ( bus ): 100000000Hz
Firmware Component:
    name:      image.target.spl
    partition: spl
    attr:      mtd;required
    Media:     SPI_NOR(3)
Firmware Component:
    name:      image.target.os
    partition: os
    attr:      mtd;required
    Media:     SPI_NOR(3)
Firmware Component:
    name:      image.target.rodata
    partition: rodata
    attr:      mtd;optional
    Media:     SPI_NOR(3)
Going to reboot ...

Pre-Boot Program ... (2023-11-14 13:46:14)
                                          SPINOR

tinySPL [Built on Jan 20 2024 14:53:02]
[W] usbh_get_connect_id()107 usb 0 port change wait failed.
[E] main()137 Not find udisk.
qspi0 freq (input): 100000000Hz
qspi0 freq ( bus ): 50000000Hz
qspi0 freq ( bus ): 100000000Hz
Selecting default config 'Luban-lite firmware'
spl read: 691324 byte, 32423 us -> 20822 KB/s
 153713 : Run APP

     _         _   ___        ___ _     _
    / \   _ __| |_|_ _|_ __  / __| |__ (_)_ __
   / _ \ | '__| __|| || '_ \| |  | '_ \| | '_ \
  / ___ \| |  | |_ | || | | | |__| | | | | |_) |
 /_/   \_\_|   \__|___|_| |_|\___|_| |_|_| .__/
                                         |_|

Welcome to ArtInChip Luban-Lite 1.0 [Built on Jan 20 2024 14:53:25]
qspi0 freq (input): 100000000Hz
qspi0 freq ( bus ): 50000000Hz
01-01 09:03:50 I/SFUD: Flash ID: 0xef4018
01-01 09:03:50 I/SFUD: Find a Winbond flash chip. Size is 16777216 bytes.
qspi0 freq (input): 100000000Hz
qspi0 freq ( bus ): 100000000Hz
01-01 09:03:50 I/SFUD: norflash0 flash device is initialize success.
01-01 09:03:50 I/SFUD: Probe SPI flash norflash0 by SPI device qspi01 success.
01-01 09:03:50 I/touch: rt_touch init success
01-01 09:03:50 I/gt911: touch device gt911 init success
[I] aic_find_panel()56 find panel driver : panel-lvds
[I] aicfb_probe()809 fb0 allocated at 0x40010360
[I] hal_ge_init()320 cmd queue hal, cmdq buffer size = 2048
[I] hal_ge_init()377 dither line phys :0X040268c00
[I] hal_ge_init()385 hal_ge_init() end
[I] aic_sdmc_clk_init()543 SDMC1 sclk: 49500 KHz, parent clk 792000 KHz
01-01 09:03:50 I/SDMC: SDMC1 BW 1, sclk 49500 KHz, clk 400 KHz(399 KHz), div 2-62

[I] aic_sdmc_probe()636 SDMC1 driver loaded
01-01 09:03:50 I/WDT: ArtInChip WDT loaded
packages/third-party/littlefs/lfs.c:1210:error: Corrupted dir pair at {0x0, 0x1}
01-01 09:03:50 E/DFS: mount fs[lfs] on /data failed.

01-01 09:03:50 E/DFS: mount fs[elm] on /sdcard failed.

01-01 09:03:50 E/DFS: mount fs[elm] on /sdcard failed.

Reboot action: Watchdog-Reset, reason: Command-Reboot

Startup time: 0.442 sec
info: cmd ring buf size:1920
info: cmd ring buf size:1920
01-01 09:03:50 E/gt911: read id failed
id = GT526753
01-01 09:03:50 E/gt911: read info failed
range_x = 0
range_y = 0
point_num = 101
aic /> 01-01 09:03:50 I/SDMC: SDMC1 BW 1, sclk 49500 KHz, clk 400 KHz(399 KHz), div 2-62

01-01 09:03:51 E/gt911: read info failed

aic /> ps
thread           pri  status      sp     stack size max used left tick  error
---------------- ---  ------- ---------- ----------  ------  ---------- ---
gt911             25  suspend 0x000001d8 0x00001000    17%   0x00000004 OK
LVGL              20  ready   0x000003a8 0x00008000    09%   0xfffff88f OK
tshell            20  running 0x000003b8 0x00001000    23%   0x00000009 OK
mmcsd_detect      22  suspend 0x00000218 0x00002000    10%   0x0000000d OK
alarmsvc          10  suspend 0x000001d8 0x00000800    23%   0x00000005 OK
tidle0            31  ready   0x000001b8 0x00000400    46%   0x00000002 OK
timer              4  suspend 0x00000198 0x00000200    79%   0x00000008 OK
aic />
RT-Thread shell commands:
list_fd          - list file descriptor
ulog_filter      - Show ulog filter settings
ulog_kw          - Set ulog global filter keyword
ulog_tag         - Set ulog global filter tag
ulog_lvl         - Set ulog global filter level.
ulog_tag_lvl     - Set ulog filter level by different tag.
ulog_be_lvl      - Set ulog filter level by different backend.
sensor           - sensor test function
sensor_polling   - Sensor polling mode test function
sensor_int       - Sensor interrupt mode test function
sensor_fifo      - Sensor fifo mode test function
fal              - FAL (Flash Abstraction Layer) operate.
tail             - print the last N - lines data of the given file
echo             - echo string to file
df               - disk free
umount           - Unmount device from file system
mount            - mount <device> <mountpoint> <fstype>
mkfs             - format disk with file system
mkdir            - Create the DIRECTORY.
pwd              - Print the name of the current working directory.
cd               - Change the shell working directory.
rm               - Remove(unlink) the FILE(s).
cat              - Concatenate FILE(s)
mv               - Rename SOURCE to DEST.
cp               - Copy SOURCE to DEST.
ls               - List information about the FILEs.
free             - Show the memory usage in the system.
ps               - List threads in the system.
help             - RT-Thread shell help.
list             - list objects
list_device      - list device in system
list_timer       - list timer in system
list_mempool     - list memory pool in system
list_memheap     - list memory heap in system
list_msgqueue    - list message queue in system
list_mailbox     - list mail box in system
list_mutex       - list mutex in system
list_event       - list event in system
list_sem         - list semaphore in system
list_thread      - list thread
version          - show RT-Thread version information
clear            - clear the terminal screen
mem_test         - memory test: mem_test address_hex size_hex
reboot           - Reboot the system
f                - run a function
m                - modify memory
p                - print memory
arecord          - record voice to a wav file
aplay            - play wav file
top              - cpu usage
dma_dump         - Dump DMA register. Argument: channel_num
efuse            - efuse command
wdt_status       - Show the status of Watchdog
aicupg           - Reboot to the upgrade mode
list_irq         - list system irq
adc              - adc [option]
pin              - pin [option]
pwm              - pwm [option]
lptimer_dump     - soft lptimer dump
pm_dump          - dump power management status
pm_run           - switch power management run mode
pm_module_delay  - module request delay sleep
pm_module_reques - request power management mode
pm_module_releas - release power management mode count
pm_module_releas - release module power mode
pm_request       - request power management mode
pm_release_all   - release power management mode count
pm_release       - release power management mode
list_alarm       - list alarm info
date             - get date and time or set (local timezone) [year month day hour min sec]
sf               - SPI Flash operate
ge_format        - ge format test
ge_fill          - ge fill test
ge_bitblt        - ge bitblit test
ge_rotate        - ge rotate test
pic_test         - picture decode test
ge_dither        - ge dithe test
ge_scan_order    - ge scan test
ge_alpha_blendin - ge alpha test
ge_scale         - ge scale test
pic_crop_test    - pic crop test

aic /> 

烧录信息如下:

[debug] Software Version: "1.3.6"
[debug] Machine Name: "DESKTOP-HQF1R40"
[debug] System Name: "Windows 10 (10.0)"
[debug] CPU Architecture: "x86_64" 

[debug] Parse the image header from "F:/MCU/ArtinChip/luban-lite/output/d13x_demo88-nor_rt-thread_helloworld/images/d13x_demo88-nor_v1.0.0.img"
[debug] Soc type: "d13x"
[debug] Board type: "demo88-nor"
[debug] Image version: "1.0.0"
[debug] Storage type: "spi-nor"
[debug] Storage ID: ""
[debug] Meta count: "5" 

[debug] Refresh the partition tree ...
[debug] Part name: image.target.spl , size: 130320 
[debug] Part name: image.target.os , size: 698716 
[debug] Part name: image.target.rodata , size: 2093056 

[debug] Current connect type: 0
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] There are "1" device available

[debug] Try to connect the ArtInChip device "1:3-1" ...

[debug] WinEvent: Some devnode changed
[debug] There are "1" device available
[debug] Try to get Usb device hd info...
[debug] Get Usb device hd info success
[debug] The status of ArtInChip device: true
[debug] Start burn online ...
[debug] Progress range: 0 ~ 3055616

[debug] Burn Image file "F:/MCU/ArtinChip/luban-lite/output/d13x_demo88-nor_rt-thread_helloworld/images/d13x_demo88-nor_v1.0.0.img" ... 

[debug] Meta 0 image.updater.spl , size 130320 ...
[debug] Blocksize 4 , chunk 1048576 * 0 , rest 130320
[debug] Offset: 4608 Size: 130320
[debug] Dev "1:3-1" Send the rest data 130320
[error] aicupg_trans_recv_pkt()208: CSW size 0, Pipe error(-9)
[error] aicupg_cmd_send_fwc_data_final()777: Recv resp failed, expect 16, got 0
[debug] Don't check the result of image.updater.spl

[debug] Meta 1 image.info , size 2048 ...
[error] aicupg_trans_send_pkt()80: CBW tag 0x51, size 0, Pipe error(-9)
[error] aicupg_cmd_get_hwinfo()106: Send command failed. ret = 0, siz = 16
[debug] Wait to reconnect dev "1:3-1"
[debug] QTime("02:21:30.613") Wait for Dev "1:3-1" ready

[debug] WinEvent: Some devnode changed

[debug] WinEvent: Some devnode changed

[debug] WinEvent: Some devnode changed
[warn ] Set upg work mode: 0
[debug] Blocksize 1 , chunk 1048576 * 0 , rest 2048
[debug] Offset: 0 Size: 2048
[debug] Dev "1:3-1" Send the rest data 2048

[debug] Meta 2 image.target.spl , size 130320 ...
[debug] Blocksize 2048 , chunk 1048576 * 0 , rest 130320
[debug] Offset: 135680 Size: 130320
[debug] Dev "1:3-1" Send the rest data 130320

[debug] Meta 3 image.target.os , size 698716 ...
[debug] Blocksize 2048 , chunk 1048576 * 0 , rest 698716
[debug] Offset: 266752 Size: 698716
[debug] Dev "1:3-1" Send the rest data 698716

[debug] Meta 4 image.target.rodata , size 2093056 ...
[debug] Blocksize 2048 , chunk 1048576 * 1 , rest 1044480
[debug] Offset: 967168 Size: 2093056
[debug] Dev "1:3-1" Send chunk 0 ...
[debug] Dev "1:3-1" Send the rest data 1044480

[debug] Burn online successfully!
[debug] Insert statistic of "2024-01-23"
[debug] Reboot the device ...
[error] aicupg_trans_send_pkt()104: CSW tag 0xbe, size 0, Pipe error(-9)

[debug] WinEvent: Some devnode changed
[debug] No device available

最近编辑记录 Gentlepig (2024-01-23 11:52:11)

离线

#5 2024-01-23 14:40:04

Gentlepig
会员
注册时间: 2018-10-24
已发帖子: 1,363
积分: 1323.5

Re: 烧录失败问题

usb烧录时,会有这两个报错:

[debug] Meta 0 image.updater.spl , size 130320 ...
[debug] Blocksize 4 , chunk 1048576 * 0 , rest 130320
[debug] Offset: 4608 Size: 130320
[debug] Dev "1:3-1" Send the rest data 130320
[error] aicupg_trans_recv_pkt()208: CSW size 0, Pipe error(-9)
[error] aicupg_cmd_send_fwc_data_final()777: Recv resp failed, expect 16, got 0
[debug] Don't check the result of image.updater.spl

[debug] Meta 1 image.info , size 2048 ...
[error] aicupg_trans_send_pkt()80: CBW tag 0x654, size 0, Pipe error(-9)
[error] aicupg_cmd_get_hwinfo()106: Send command failed. ret = 0, siz = 16
[debug] Wait to reconnect dev "1:3-1"
[debug] QTime("06:35:22.073") Wait for Dev "1:3-1" ready

-------------------------------

怀疑是spi的问题。

看了下,spi0的cs,wp,hold三个管脚各接10k电阻上拉到3.3V。spi线没有走灯长,不过spi flash离d133很近,线走的不长。
我以为是spi0设置速度的问题,看了下,默认是100M最大速度,我修改成了1M最大速度,没效果。

-------------------------------

怀疑是ldo电压的问题。

又看论坛其他网友又通过配置ldo1x和ldo18解决的,看了下默认配置,默认打开ldo18(7)关闭ldo1x的。
修改为,打开ldo1x(4),打开ldo18(3),没效果。
修改为,关闭ldo1x,打开ldo18(3),没效果。
修改为,关闭ldo1x,关闭ldo18,无没效果。
我板子是有独立的dc/dc电路提供1.8V和1.1V的,基本是参考官方的那个图纸画的。

最近编辑记录 Gentlepig (2024-01-23 15:00:51)

离线

#6 2024-01-23 16:21:24

tangloong
会员
注册时间: 2023-04-11
已发帖子: 212
积分: 191

Re: 烧录失败问题

@Gentlepig
不知道我买的SY8088iaac 有问题还是怎么的 有两片1.8V有问题,之前3.3V 好好的,也坏掉了

均出现烧录失败的问题 都是供电导致的

离线

#7 2024-01-23 17:03:32

Gentlepig
会员
注册时间: 2018-10-24
已发帖子: 1,363
积分: 1323.5

Re: 烧录失败问题

tangloong 说:

@Gentlepig
不知道我买的SY8088iaac 有问题还是怎么的 有两片1.8V有问题,之前3.3V 好好的,也坏掉了

均出现烧录失败的问题 都是供电导致的

你遇到的烧录失败,是烧录时就提示失败?还是烧录提示成功,运行其实还是之前程序?

我用的也是sy8088,嘉立创贴的。我这部分dc/dc电路,和其他板子上的布局差不多。其他板子都能正常运行的。
这个d133板子到手后,我也是先测量了各路电压正常后,才开始烧录程序的。

---------------------------------------

用示波器测量了下,dc/dc 1.1V纹波相当的大,是负载太重或者太轻?。目前关闭了芯片自身的ldo18和ldo1x输出。

最近编辑记录 Gentlepig (2024-01-23 17:31:57)

离线

#8 2024-01-24 10:25:22

Gentlepig
会员
注册时间: 2018-10-24
已发帖子: 1,363
积分: 1323.5

Re: 烧录失败问题

我将1.1V dc/dc的使能管脚的电阻去掉,此时dc/dc应该不工作了,测量1.1V这里,测试出1.2V电压,但是不稳定,应该是启动后按配置关闭ldo1x输出,然后反复重启。
让芯片进入boot状态,此时1.2V稳定了,那么怀疑是boot状态,默认ldo1x输出1.2V。而我的dc/dc供电是1.1V,这样上电时,dc/dc输出有1.2V电压,让dc/dc没稳定工作,造成了很大的纹波?

另,几个默认配置,都是关闭LDO1X,打开LDO18,而且LDO18配置为7,查手册,7对应是1.92V,3才是1.80V。
另,虽然LDO1X默认没打开,但是打开后,默认配置为6,6对应1.20V, 4才对应1.10V.

猜测,boot状态下,ldo1x和ldo18都是打开的,而且电压是1.20V和1.92V,都比推荐的外部供电电压值高。

----------------------------------------------------------

我将dc/dc1.1V使能,更改电阻使输出变为1.2V。结果上电后,虽然能进系统,但是示波器测量1.2V还是有很大的纹波。
烧录功能虽然显示success,但实际运行的还是之前的程序。

------------------------------------------------------

3.3V  纹波410mV
1.8V 纹波170mV
1.2V 纹波410mV

dc/dc电路布局有问题?我测量了下之前画的t113-s3板子,3路dc/dc电路输出纹波大概在130mV左右。都没这么高。
两个板子的dc/dc部分,都是用的sy8088,布局基本没变。

以上情况,是两个板子都用同一个usb供电时测得的。

最近编辑记录 Gentlepig (2024-01-24 11:26:57)

离线

#9 2024-01-24 15:30:30

Gentlepig
会员
注册时间: 2018-10-24
已发帖子: 1,363
积分: 1323.5

Re: 烧录失败问题

记录一下,另一块板子,第一次烧录,用了26秒,烧录时也有上边那两个报错,看样子这两个报错不影响烧录。

[debug] Software Version: "1.3.6"
[debug] Machine Name: "DESKTOP-HQF1R40"
[debug] System Name: "Windows 10 (10.0)"
[debug] CPU Architecture: "x86_64" 

[debug] Parse the image header from "F:/MCU/ArtinChip/luban-lite/output/d13x_demo88-nor_rt-thread_helloworld/images/d13x_demo88-nor_v1.0.0.img"
[debug] Soc type: "d13x"
[debug] Board type: "demo88-nor"
[debug] Image version: "1.0.0"
[debug] Storage type: "spi-nor"
[debug] Storage ID: ""
[debug] Meta count: "5" 

[debug] Refresh the partition tree ...
[debug] Part name: image.target.spl , size: 130320 
[debug] Part name: image.target.os , size: 699868 
[debug] Part name: image.target.rodata , size: 2093056 

[debug] Current connect type: 0
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some device arrival or removed 32768

[debug] WinEvent: Some devnode changed
[debug] No device available
[debug] Current file path: "F:/MCU/ArtinChip/luban-lite/output/d13x_demo88-nor_rt-thread_helloworld/images/d13x_demo88-nor_v1.0.0.img"
[debug] Parse the image header from "F:/MCU/ArtinChip/luban-lite/output/d13x_demo88-nor_rt-thread_helloworld/images/d13x_demo88-nor_v1.0.0.img"
[debug] Soc type: "d13x"
[debug] Board type: "demo88-nor"
[debug] Image version: "1.0.0"
[debug] Storage type: "spi-nor"
[debug] Storage ID: ""
[debug] Meta count: "5" 

[debug] Refresh the partition tree ...
[debug] Part name: image.target.spl , size: 130320 
[debug] Part name: image.target.os , size: 699740 
[debug] Part name: image.target.rodata , size: 2093056 


[debug] WinEvent: Some devnode changed
[debug] There are "1" device available

[debug] Try to connect the ArtInChip device "1:3-2" ...
[debug] Try to get Usb device hd info...

[debug] WinEvent: Some devnode changed
[debug] There are "1" device available
[debug] Get Usb device hd info success
[debug] The status of ArtInChip device: true
[debug] Start burn online ...
[debug] Progress range: 0 ~ 3055616

[debug] Burn Image file "F:/MCU/ArtinChip/luban-lite/output/d13x_demo88-nor_rt-thread_helloworld/images/d13x_demo88-nor_v1.0.0.img" ... 

[debug] Meta 0 image.updater.spl , size 130320 ...
[debug] Blocksize 4 , chunk 1048576 * 0 , rest 130320
[debug] Offset: 4608 Size: 130320
[debug] Dev "1:3-2" Send the rest data 130320
[error] aicupg_trans_recv_pkt()208: CSW size 0, Pipe error(-9)
[error] aicupg_cmd_send_fwc_data_final()777: Recv resp failed, expect 16, got 0
[debug] Don't check the result of image.updater.spl

[debug] Meta 1 image.info , size 2048 ...
[error] aicupg_trans_send_pkt()80: CBW tag 0x51, size 0, Pipe error(-9)
[error] aicupg_cmd_get_hwinfo()106: Send command failed. ret = 0, siz = 16
[debug] Wait to reconnect dev "1:3-2"

[debug] WinEvent: Some devnode changed
[debug] QTime("07:28:38.930") Wait for Dev "1:3-2" ready

[debug] WinEvent: Some devnode changed

[debug] WinEvent: Some devnode changed
[warn ] Set upg work mode: 0
[debug] Blocksize 1 , chunk 1048576 * 0 , rest 2048
[debug] Offset: 0 Size: 2048
[debug] Dev "1:3-2" Send the rest data 2048

[debug] Meta 2 image.target.spl , size 130320 ...
[debug] Blocksize 2048 , chunk 1048576 * 0 , rest 130320
[debug] Offset: 135680 Size: 130320
[debug] Dev "1:3-2" Send the rest data 130320

[debug] Meta 3 image.target.os , size 699740 ...
[debug] Blocksize 2048 , chunk 1048576 * 0 , rest 699740
[debug] Offset: 266752 Size: 699740
[debug] Dev "1:3-2" Send the rest data 699740

[debug] Meta 4 image.target.rodata , size 2093056 ...
[debug] Blocksize 2048 , chunk 1048576 * 1 , rest 1044480
[debug] Offset: 967168 Size: 2093056
[debug] Dev "1:3-2" Send chunk 0 ...
[debug] Dev "1:3-2" Send the rest data 1044480
[error] aicupg_trans_send_pkt()104: CSW tag 0xaa, size 0, Pipe error(-9)
[error] aicupg_cmd_send_fwc_data_update()741: Send out data length is not expected. ret = 0
[error] Dev "1:3-2" Failed to send data 1044480
[error] Dev "1:3-2" Failed to send 1044480
[debug] Update "fail_cnt" of "2024-01-24"

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

-----------------------------------------

第一次下载的程序里,main函数里我加入了while循环里面定时打印信息,在串口可以看到。
修改了程序,把这部分注释掉,编译,再次下载,花费了38秒,显示烧录成功。
但是调试口这里,启动后,无法输入命令。

烧录信息:

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] There are "1" device available

[debug] Try to connect the ArtInChip device "1:3-2" ...
[debug] Try to get Usb device hd info...
[debug] Get Usb device hd info success
[debug] The status of ArtInChip device: true

[debug] WinEvent: Some devnode changed
[debug] There are "1" device available
[debug] Start burn online ...
[debug] Progress range: 0 ~ 3055616

[debug] Burn Image file "F:/MCU/ArtinChip/luban-lite/output/d13x_demo88-nor_rt-thread_helloworld/images/d13x_demo88-nor_v1.0.0.img" ... 

[debug] Meta 0 image.updater.spl , size 130320 ...
[debug] Blocksize 4 , chunk 1048576 * 0 , rest 130320
[debug] Offset: 4608 Size: 130320
[debug] Dev "1:3-2" Send the rest data 130320
[error] aicupg_trans_recv_pkt()208: CSW size 0, Pipe error(-9)
[error] aicupg_cmd_send_fwc_data_final()777: Recv resp failed, expect 16, got 0
[debug] Don't check the result of image.updater.spl

[debug] Meta 1 image.info , size 2048 ...
[error] aicupg_trans_send_pkt()80: CBW tag 0xfc, size 0, Pipe error(-9)
[error] aicupg_cmd_get_hwinfo()106: Send command failed. ret = 0, siz = 16
[debug] Wait to reconnect dev "1:3-2"
[debug] QTime("07:34:42.769") Wait for Dev "1:3-2" ready

[debug] WinEvent: Some devnode changed

[debug] WinEvent: Some devnode changed

[debug] WinEvent: Some devnode changed
[warn ] Set upg work mode: 0
[debug] Blocksize 1 , chunk 1048576 * 0 , rest 2048
[debug] Offset: 0 Size: 2048
[debug] Dev "1:3-2" Send the rest data 2048

[debug] Meta 2 image.target.spl , size 130320 ...
[debug] Blocksize 2048 , chunk 1048576 * 0 , rest 130320
[debug] Offset: 135680 Size: 130320
[debug] Dev "1:3-2" Send the rest data 130320

[debug] Meta 3 image.target.os , size 699804 ...
[debug] Blocksize 2048 , chunk 1048576 * 0 , rest 699804
[debug] Offset: 266752 Size: 699804
[debug] Dev "1:3-2" Send the rest data 699804

[debug] Meta 4 image.target.rodata , size 2093056 ...
[debug] Blocksize 2048 , chunk 1048576 * 1 , rest 1044480
[debug] Offset: 967168 Size: 2093056
[debug] Dev "1:3-2" Send chunk 0 ...
[debug] Dev "1:3-2" Send the rest data 1044480

[debug] Burn online successfully!
[debug] Update "success_cnt" of "2024-01-24"
[debug] Reboot the device ...

[debug] WinEvent: Some devnode changed
[debug] No device available
[error] aicupg_trans_send_pkt()104: CSW tag 0x169, size 0, Pipe error(-9)

启动信息:

Pre-Boot Program ... (2023-11-14 13:46:14)
                                          SPINOR

tinySPL [Built on Jan 24 2024 07:25:45]
[W] usbh_get_connect_id()107 usb 0 port change wait failed.
[E] main()137 Not find udisk.
qspi0 freq (input): 100000000Hz
qspi0 freq ( bus ): 50000000Hz
qspi0 freq ( bus ): 100000000Hz
Selecting default config 'Luban-lite firmware'
spl read: 699248 byte, 32788 us -> 20826 KB/s
 151691 : Run APP

     _         _   ___        ___ _     _
    / \   _ __| |_|_ _|_ __  / __| |__ (_)_ __
   / _ \ | '__| __|| || '_ \| |  | '_ \| | '_ \
  / ___ \| |  | |_ | || | | | |__| | | | | |_) |
 /_/   \_\_|   \__|___|_| |_|\___|_| |_|_| .__/
                                         |_|

Welcome to ArtInChip Luban-Lite 1.0 [Built on Jan 24 2024 07:26:41]
qspi0 freq (input): 1000000Hz
qspi0 freq ( bus ): 50000000Hz
01-01 08:05:25 I/SFUD: Flash ID: 0xef4018
01-01 08:05:25 I/SFUD: Find a Winbond flash chip. Size is 16777216 bytes.
qspi0 freq (input): 1000000Hz
qspi0 freq ( bus ): 1000000Hz
01-01 08:05:25 I/SFUD: norflash0 flash device is initialize success.
01-01 08:05:25 I/SFUD: Probe SPI flash norflash0 by SPI device qspi01 success.
[I] aic_find_panel()56 find panel driver : panel-lvds
[I] aicfb_probe()809 fb0 allocated at 0x40010360
[I] hal_ge_init()320 cmd queue hal, cmdq buffer size = 2048
[I] hal_ge_init()377 dither line phys :0X040268c00
[I] hal_ge_init()385 hal_ge_init() end
[I] aic_sdmc_clk_init()543 SDMC1 sclk: 49500 KHz, parent clk 792000 KHz
01-01 08:05:25 I/SDMC: SDMC1 BW 1, sclk 49500 KHz, clk 400 KHz(399 KHz), div 2-62

[I] aic_sdmc_probe()636 SDMC1 driver loaded
01-01 08:05:25 I/WDT: ArtInChip WDT loaded
packages\third-party\littlefs\lfs.c:1210:error: Corrupted dir pair at {0x0, 0x1}
01-01 08:05:25 E/DFS: mount fs[lfs] on /data failed.

01-01 08:05:25 E/DFS: mount fs[elm] on /sdcard failed.

01-01 08:05:25 E/DFS: mount fs[elm] on /sdcard failed.

Reboot action: Warm-Reset, reason: External-Reset

Startup time: 0.366 sec
info: cmd ring buf size:1920
info: cmd ring buf size:1920
can't find device:gt911
aic /> 01-01 08:05:25 I/SDMC: SDMC1 BW 1, sclk 49500 KHz, clk 400 KHz(399 KHz), div 2-62

-----------------------------------

又反复烧录了几次,这个第二块板,均能正常烧录,烧录时间一般在38秒左右。
板子有3路dc/dc供电,boot及app配置里,均关掉了ldo1x和ldo18的输出。
usb供电,测量3.3V,1.8V, 1.1V,纹波都有点大,在400mV左右,这次画板dc/dc电路部分没处理好。

--------------------------------------

第一块板,更换两个w25q128,又可以正常烧录了,反复烧录了几个img文件,都能成功每次烧录也大都时30多秒。
不知道之前失败的原因了。
换下来的w25q128, 换到了个另一个单片机板上,可以正常擦除。

还有个问题,我用putty连的板子的调试口,如果打开putty串口的情况下,重启板子,比如reboot命令,或烧写程序,有很大机率putty串口无法输入。重新插拔usb转ttl则大概率变回可能输入的状态。而且,当插拔usb转ttl时,aiburn调试记录有信息:

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some device arrival or removed 32772

[debug] WinEvent: Some device arrival or removed 32772

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some device arrival or removed 32768

[debug] WinEvent: Some devnode changed
[debug] No device available

[debug] WinEvent: Some device arrival or removed 32768

最近编辑记录 Gentlepig (2024-01-24 17:22:49)

离线

#10 2024-01-26 11:55:32

Gentlepig
会员
注册时间: 2018-10-24
已发帖子: 1,363
积分: 1323.5

Re: 烧录失败问题

之前有问题的第一块板,昨天和其他一块单片机板调换了w25q128,调换后,d133可以正常烧录了,另一块单片机板,也可以通过命令读取flash型号,可以擦除flash。
然后这块d133板,昨天又调试lcd和can功能,反复烧录了很多次。今天上午也能烧录来着,临近中午,突然不能烧录了,和之前一样,2秒下载完成,显示成功,实际未烧录进去。
因为之前换下来的那个w25q128可以在其他板子上正常工作,就把该w25q128整片擦除后,又换回到这个板子上了。结果,还是2秒烧录...

------------------------------------------

目前手头两块板,第一块板:来回换过2次w25q128,目前无法正常烧录。
1.2V纹波较大,400mV, 3.3V纹波也比较大,但是看频率没1.2V那么多尖刺。1.8V纹波很小,100mV多些。

第二块板,始终未更换过w25q128,一直可以正常烧录。
3路电压都有较大纹波,大概400mV左右,只是1.2V纹波的尖刺更频繁,1.8V和3.3V尖刺明显少很多。

两块板应该烧录的都是相同的镜像文件。

最近编辑记录 Gentlepig (2024-01-26 14:06:42)

离线

#11 2024-01-26 15:09:24

Gentlepig
会员
注册时间: 2018-10-24
已发帖子: 1,363
积分: 1323.5

Re: 烧录失败问题

既然这个板子无法烧录成功,就打算用rtt的sf命令擦除flash。结果没成功:

aic /> sf bench yes
Erasing the sf_cmd 16777216 bytes data, waiting...
Erase benchmark success, total time: 0.000S.
Writing the sf_cmd 16777216 bytes data, waiting...
Write benchmark success, total time: 5.279S.
Reading the sf_cmd 16777216 bytes data, waiting...
Data check ERROR! Please check you flash by other command.
Read sf_cmd failed, already rd for 0 bytes, read 256 each time
Read benchmark has an error. Error code: 3.
This flash operate has an error. Error code: 3.
aic />

查看flash状态寄存器:

aic /> sf status
The sf_cmd flash status register current value is 0xFC.
aic />

查手册,倒数第二位是写保护位,目前是0,未开启写保护。

通过sf read可以读flash内容:

Read the sf_cmd flash data success. Start from 0x00000000, size is 1000. The data is:
Offset (h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
[00000000] 41 49 43 20 45 3C 01 11 01 00 01 00 10 3B 00 00 AIC E<.......;..
[00000010] 00 00 00 00 00 00 00 00 00 00 10 30 00 01 10 30 ...........0...0
[00000020] 00 00 00 00 00 00 00 00 00 3B 00 00 10 00 00 00 .........;......
[00000030] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[00000040] C0 39 00 00 B0 00 00 00 00 01 00 00 B0 38 00 00 .9...........8..
[00000050] 00 3C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .<..............
[00000060] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[00000070] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[00000080] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[00000090] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[000000A0] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[000000B0] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[000000C0] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[000000D0] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[000000E0] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[000000F0] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[00000100] 50 42 50 20 98 D1 9D DD 97 02 00 00 93 82 82 0F PBP ............
[00000110] 23 A0 82 00 23 A2 92 00 23 A4 22 01 23 A6 32 01 #...#...#.".#.2.
[00000120] 23 A8 42 01 23 AA 52 01 23 AC 62 01 23 AE 72 01 #.B.#.R.#.b.#.r.
[00000130] 23 A0 82 03 23 A2 92 03 23 A4 A2 03 23 A6 B2 03 #...#...#...#...
[00000140] 23 A8 22 02 23 AA 12 02 23 AC A2 02 23 AE B2 02 #.".#...#...#...

通过sf write写,写0或者写0xff,再读出来,还是上边这些数据。
写不成功,但又没开启写保护,奇怪了。

---------------------------------------------------


有问题的这个板子,通过rtt的sf status命令,可以读spi flash的状态寄存器,是0xFC,而另一个正常的板子,读出来是0x00.
通过sf status 0  0 将状态寄存器也改为0x00,然后就可以正常烧录了。

这是解决办法,问题的原因不明。另,如果烧录的不是rtt版本的程序,不知道该用什么办法来解决了。

最近编辑记录 Gentlepig (2024-01-26 16:49:27)

离线

#12 2024-01-26 16:31:28

Gentlepig
会员
注册时间: 2018-10-24
已发帖子: 1,363
积分: 1323.5

Re: 烧录失败问题

示波器测量spi的cs管脚,发现一直有波形,而另一块板子,spc_cs一直是高电平的。
之前下载的是nor_xip程序?

------------------------------------

发现另一块可以正常烧录程序的板子,spi flash状态寄存器是:0x00

aic /> sf probe qspi01
01-01 08:01:09 I/SFUD: Flash ID: 0xef4018
01-01 08:01:09 I/SFUD: Find a Winbond flash chip. Size is 16777216 bytes.
01-01 08:01:09 I/SFUD: sf_cmd flash device is initialize success.
01-01 08:01:09 I/SFUD: Probe SPI flash sf_cmd by SPI device qspi01 success.
16 MB sf_cmd is current selected device.
aic /> sf status
The sf_cmd flash status register current value is 0x00.
aic />

通过sf status 0 0这个命令,将问题板的spi flash状态寄存器也修改为0x00,就可以继续烧录了。
问题原因不明,rtt环境下可以通过这个方法解决。裸机环境下就不知道怎么解决了。

最近编辑记录 Gentlepig (2024-01-27 09:37:25)

离线

#13 2024-02-07 12:32:18

tangloong
会员
注册时间: 2023-04-11
已发帖子: 212
积分: 191

Re: 烧录失败问题

有时候提示烧录失败,程序也会运行成功!换了新flash就不再提示烧录失败了!由此可以判断烧录提示失败有可能flash造成的,
0ec996fd174af779e660e759453c773.png6090a6c8ec7aa029b9a9ed9adab54e8.png

离线

#14 2024-02-07 12:33:43

tangloong
会员
注册时间: 2023-04-11
已发帖子: 212
积分: 191

Re: 烧录失败问题

tangloong 说:

@Gentlepig
不知道我买的SY8088iaac 有问题还是怎么的 有两片1.8V有问题,之前3.3V 好好的,也坏掉了

均出现烧录失败的问题 都是供电导致的

这个是焊接问题 虚焊导致的,板子都没问题了

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn