新手贴,请教大神


#1

你好,我用K-flash更新固件的时候,提示不能进入ISP模式,该如何处理?


#2

This happens from time to time. Sometimes I have to start kflash several times before it works, I even sometimes have to turn the board off and on again.

Or is this the same issue as discussed here?


#3

说明你的版型,使用的kflash版本


#4

@YHC
sorry for hijacking your question. If my responses are not what you want to know, please tell me and I will stop.

@Zepan
I couldn’t find a version number in kflash.py, but I downloaded it on 13th of februari. Is there some way I can determine the version? I did not do the stm firmware update, maybe that would help?

Example 1: no ISP:
[INFO] COM Port Selected Manually: /dev/ttyACM0
[INFO] Default baudrate is 115200 , later it may be changed to the value you set.
[INFO] Trying to Enter the ISP Mode…

[ERROR] No vaild Kendryte K210 found in Auto Detect, Check Your Connection or Specify One by-p /dev/ttyUSB0

Example 2: no flashing:
[INFO] COM Port Selected Manually: /dev/ttyACM0
[INFO] Default baudrate is 115200 , later it may be changed to the value you set.
[INFO] Trying to Enter the ISP Mode…
.
[INFO] Greeting Message Detected, Start Downloading ISP
[WARN] Use built-in ISP_PROG2, If you download firmware to flash failed, please use -i1
Downloading ISP: |██████████████████████████████████████████████████| 100.0%
[INFO] Booting From 0x80000000
[INFO] Wait For 0.3 second for ISP to Boot
[INFO] Boot to Flashmode Successfully
[INFO] Selected Baudrate: 2000000
[INFO] Selected Flash: On-Board
Traceback (most recent call last):
File “/home/j/bin/kendryte/kflash.py/kflash.py”, line 836, in
loader.init_flash(args.chip)
File “/home/j/bin/kendryte/kflash.py/kflash.py”, line 615, in init_flash
op, reason, text = FlashModeResponse.parse(self.recv_one_return())
File “/home/j/bin/kendryte/kflash.py/kflash.py”, line 373, in parse
if FlashModeResponse.Operation(op) == FlashModeResponse.Operation.ISP_DEBUG_INFO:
File “/usr/lib/python3.5/enum.py”, line 241, in call
return cls.new(cls, value)
File “/usr/lib/python3.5/enum.py”, line 476, in new
raise ValueError("%r is not a valid %s" % (value, cls.name))
ValueError: 194 is not a valid Operation

Example 3: no flashing:
[INFO] COM Port Selected Manually: /dev/ttyACM0
[INFO] Default baudrate is 115200 , later it may be changed to the value you set.
[INFO] Trying to Enter the ISP Mode…
.
[INFO] Greeting Message Detected, Start Downloading ISP
[WARN] Use built-in ISP_PROG2, If you download firmware to flash failed, please use -i1
Downloading ISP: |██████████████████████████████████████████████████| 100.0%
[INFO] Booting From 0x80000000
[INFO] Wait For 0.3 second for ISP to Boot
[INFO] Boot to Flashmode Successfully
[INFO] Selected Baudrate: 2000000
[INFO] Selected Flash: On-Board
Traceback (most recent call last):
File “/home/j/bin/kendryte/kflash.py/kflash.py”, line 836, in
loader.init_flash(args.chip)
File “/home/j/bin/kendryte/kflash.py/kflash.py”, line 615, in init_flash
op, reason, text = FlashModeResponse.parse(self.recv_one_return())
File “/home/j/bin/kendryte/kflash.py/kflash.py”, line 442, in recv_one_return
raise TimeoutError
main.TimeoutError


#5

Sipped M1,Kflash是V0.4.0