[Cloud] hidden bug fixes [AliOS-Things 2.0.0] esp8266 platform compiler linkkitapp project encountered firmware burned

First Tucao say: Alios-Things 1.3.3 and version 2.0.0 is really the big difference before, just fill in the pit 1.3.3, which has cropped 2.0.0, alas, continue to fill the pit ......

Shenru, Shenru, Shen Ru ......

 

app / example / linkkitapp firmware compiled:

# @ Link pin sweet aos esp8266

After compilation execution

# Aos upload link pin @ esp8266

出错如下:
aos-cube version: 0.2.60
[INFO]: Target: linkkitapp@esp8266
[INFO]: Currently in aos_sdk_path: '/home/yunyin/ubuntu/Ubuntu_Project/AliOSThings_2.0.0/aliosThings_living'
scons: Reading SConscript files ...
[INFO]: Scons to upload!args:{'APPLICATION': 'linkkitapp', 'COMMAND': 'upload', 'BOARD': 'esp8266'}

[INFO]: Target: linkkitapp@esp8266
[INFO]: Currently in aos_sdk_path: '/home/yunyin/ubuntu/Ubuntu_Project/AliOSThings_2.0.0/aliosThings_living'


--- Available ports:
---  1: /dev/ttyS0           'ttyS0'
---  2: /dev/ttyUSB0         'CP2102 USB to UART Bridge Controller'
--- Enter port index or full name: 2
[INFO]: Running cmd:
    'esptool.py --chip esp8266 --port /dev/ttyUSB0 --baud 921600 write_flash --flash_size detect 0x0 /home/yunyin/ubuntu/Ubuntu_Project/AliOSThings_2.0.0/aliosThings_living/platform/mcu/esp8266/bsp/boot_v1.7_921600.bin 0x3fc000 /home/yunyin/ubuntu/Ubuntu_Project/AliOSThings_2.0.0/aliosThings_living/platform/mcu/esp8266/bsp/esp_init_data_default.bin 0x3fe000 /home/yunyin/ubuntu/Ubuntu_Project/AliOSThings_2.0.0/aliosThings_living/platform/mcu/esp8266/bsp/blank.bin 0x1000 /home/yunyin/ubuntu/Ubuntu_Project/AliOSThings_2.0.0/aliosThings_living/out/linkkitapp@esp8266/binary/[email protected]'
usage: esptool write_flash [-h] [--flash_freq {keep,40m,26m,20m,80m}]
                           [--flash_mode {keep,qio,qout,dio,dout}]
                           [--flash_size FLASH_SIZE]
                           [--spi-connection SPI_CONNECTION] [--no-progress]
                           [--verify] [--compress | --no-compress]
                           <address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: '/home/yunyin/ubuntu/Ubuntu_Project/AliOSThings_2.0.0/aliosThings_living/out/linkkitapp@esp8266/binary/[email protected]'
---host_os:Linux64
[ERROR]: Firmware upload failed!

[AliOS-Things] ERROR: "s" returned error code 255.
[AliOS-Things] ERROR: Command "s c o n s   - f   / h o m e / y u n y i n / u b u n t u / U b u n t u _ P r o j e c t / A l i O S T h i n g s _ 2 . 0 . 0 / a l i o s T h i n g s _ l i v i n g / b u i l d / u c u b e . p y   C O M M A N D = u p l o a d   A P P L I C A T I O N = l i n k k i t a p p   B O A R D = e s p 8 2 6 6" in "/home/yunyin/ubuntu/Ubuntu_Project/AliOSThings_2.0.0/aliosThings_living"
---
 

Modification method:

# vim ./build/site_scons/upload/esp8266.json

Modified as follows, I was ESP8266 32Mbit modules:

{
    "cmd": [
        "esptool.py",
        "--chip",
        "esp8266",
        "--port",
        "@PORT@",
        "--baud",
        "921600",
        "--before",
        "default_reset",
        "--after",
        "hard_reset",
        "write_flash",
        "-z",
        "--flash_mode",
        "dout",
        "--flash_freq",
        "40m",
        "--flash_size",
        "4MB-c1",

        "0x0",
        "@AOSROOT@/platform/mcu/esp8266/bsp/boot_v1.7_921600.bin",
        "0x3fc000",
        "@AOSROOT@/platform/mcu/esp8266/bsp/esp_init_data_default.bin",
        "0x3fe000",
        "@AOSROOT@/platform/mcu/esp8266/bsp/blank.bin",
        "0x1000",
        "@AOSROOT@/out/@TARGET@/binary/@[email protected]"
    ]
}

完成后,再重新执行

# Aos upload link pin @ esp8266

 

 

Recommended full IOT Technology Forum: www.iotqa.cn

Guess you like

Origin blog.csdn.net/yunyin_link/article/details/82793163