How to flash KL720 in Ubuntu 18
I am trying to setup kl720 board .
Till now I have installed Install libusb-1.0.0-dev,cmake, andbuild-essential.
I have also installed the requirement kl720_sdk\firmware\utils\requirements.txt
I get "Uart port open fail" output when I run python3 flash_programmer.py
please let me know how to flash in ubuntu 18 using uart
Tagged:
The discussion has been closed due to inactivity. To continue with the topic, please feel free to post a new discussion.
Comments
Hi William
Connect KL720 uart0 , ubuntu command "lsusb" will show "ID 0403:6010 Future Technology Devices International, Ltd FT2232C/D/H Dual UART/FIFO IC"
The com port name in ubuntu should be "ttyUSB0"
d$ dmesg | grep tty
[ 0.062939] printk: console [tty0] enabled
[ 0.768034] 00:05: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 3.862863] usb 3-2: FTDI USB Serial Device converter now attached to ttyUSB0
[ 3.863635] usb 3-2: FTDI USB Serial Device converter now attached to ttyUSB1
COM_ID = 0
KERNEL=="ttyUSB*",ATTRS{idVendor}=="0403",ATTRS{idProduct}=="6010",MODE="0777",GROUP="dialout"
After reboot ubuntu, uart port should be work.
p@ubuntu:~/kneron/kl720_sdk/utils/flash_programmer/nand$ python3 flash_programmer.py -v fw_mozart_flash_programmer_auto_210130_nand.bin
dev_init try...
Uart port open ttyUSB...
Device init successfully
Please press reset button!!
Reset done!!
b'BOOT MODE: Manual'
b'1. SPI-NOR'
b'2. SPI-NAND'
b'3. USB'
b'4. UART(Xmodem)'
........
BR
Pow
Thanks a lot !!!!
I am able to flash kl720 in ubuntu18