PS E:\PHY6222_TuyaOS-3.9.0-test\software\TuyaOS> & C:\Users\USER001\.tuya\venv\Scripts\python.exe .\build_app.py apps\tuyaos_demo_ble_peripheral tuyaos_demo_ble_peripheral 1.0.0 clean
5
DEMO_PATH: apps/tuyaos_demo_ble_peripheral
DEMO_NAME: tuyaos_demo_ble_peripheral
DEMO_FIRMWARE_VERSION: 1.0.0
BOARD_NAME: phy6222_ble
BUILD_COMMAND: clean
clean...
PS E:\PHY6222_TuyaOS-3.9.0-test\software\TuyaOS> cd e:\PHY6222_TuyaOS-3.9.0-test\software\TuyaOS\
PS E:\PHY6222_TuyaOS-3.9.0-test\software\TuyaOS> & C:\Users\USER001\.tuya\venv\Scripts\python.exe .\build_app.py apps\tuyaos_demo_ble_peripheral tuyaos_demo_ble_peripheral 1.0.0 
4
DEMO_PATH: apps/tuyaos_demo_ble_peripheral
DEMO_NAME: tuyaos_demo_ble_peripheral
DEMO_FIRMWARE_VERSION: 1.0.0
BOARD_NAME: phy6222_ble
BUILD_COMMAND: build
build-pre...
windows
Requirement already satisfied: intelhex in c:\users\user001\appdata\local\programs\python\python38\lib\site-packages (2.3.0)
WARNING: You are using pip version 21.1.1; however, version 23.3.1 is available.
You should consider upgrading via the 'c:\users\user001\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command.

SYN app TEMPLATE------------------------
Compare Some Files With Template:
>> ['.gitignore', 'build_app.py', 'ci_autobuild.sh', 'ci_autopack.sh', 'prepare.sh']
-> [Y] .gitignore is same
-> [Y] build_app.py is same
-> [Y] ci_autobuild.sh is same
-> [Y] ci_autopack.sh is same
-> [Y] prepare.sh is same

MY KCONFIG------------------------
INPUT:
    -------------------------------------
    project_path:     ./
    app_path:         apps/tuyaos_demo_ble_peripheral
    auto:             1
    -------------------------------------

    > Check ./apps/tuyaos_demo_ble_peripheral/tuya_iot.config exists
    > Copy ./apps/tuyaos_demo_ble_peripheral/tuya_iot.config To ./build/tuya_iot.config
    > Create HEAD_FILE = ./apps/tuyaos_demo_ble_peripheral/app_config.h

INPUT:
    -------------------------------------
    project_path:     E:/PHY6222_TuyaOS-3.9.0-test/software/TuyaOS
    app_path:         apps/tuyaos_demo_ble_peripheral
    vendor_name:      phy6222_ble
    output_path:      _output
    firmware_name:    tuyaos_demo_ble_peripheral
    firmware_version: 1.0.0
    -------------------------------------

CREATE:
    -> apps/apps/tuyaos_demo_ble_peripheral
    -> application_components
    -> application_components
    -> app libs
    -> components
        -> app_tuya_driver
        -> tal_ble_app_passthrough
        -> tal_ble_attach_ota
        -> tal_ble_beacon
        -> tal_ble_beacon_remoter
        -> tal_ble_bulkdata
        -> tal_ble_file
        -> tal_ble_iot_channel
        -> tal_ble_ota
        -> tal_ble_product_test
        -> tal_ble_protocol
        -> tal_ble_scene
        -> tal_ble_uart_common
        -> tal_ble_weather
        -> tal_bluetooth
        -> tal_driver
        -> tal_feature_ext_module
        -> tal_key
        -> tal_local_timer
        -> tal_oled
        -> tal_sdk_test
        -> tal_system
        -> tal_utc
        -> tal_util
    -> libs
    -> include
    -> adapter
    -> vendor/phy6222_ble/tkl
        -> drivers
        -> system
        -> utilities
        -> bluetooth
        -> zigbee
        -> security
        -> include
    -> output
    -> vendor/phy6222_ble/sdk
    -> tool

WRITE TO FILE...
build...
windows
Requirement already satisfied: intelhex in c:\users\user001\appdata\local\programs\python\python38\lib\site-packages (2.3.0)
WARNING: You are using pip version 21.1.1; however, version 23.3.1 is available.
You should consider upgrading via the 'c:\users\user001\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command.

SYN app TEMPLATE------------------------
Compare Some Files With Template:
>> ['.gitignore', 'build_app.py', 'ci_autobuild.sh', 'ci_autopack.sh', 'prepare.sh']
-> [Y] .gitignore is same
-> [Y] build_app.py is same
-> [Y] ci_autobuild.sh is same
-> [Y] ci_autopack.sh is same
-> [Y] prepare.sh is same
./project.json

MAKE
> clean .log
> copy json_file to .log
#1. fill the output dict
#2. fill the cmd dict
#3. fill flash cmd dict
#4. fill the src dict
#5. get var map
> AFTER MAKE CALL VENDOR PYTHON SCRIPTS...

BUILD
> [cmd]:UV4.exe -j0 -b ./.log/Demo.uvprojx  -o Demo.log
> wait about 2 min ...
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\MySoft\Keil\ARM\ARMCC\Bin'
Build target 'Target 1'
compiling app_dp_parser.c...
compiling app_key.c...
compiling tal_adc.c...
compiling tal_i2c.c...
compiling tal_gpio.c...
compiling app_led.c...
compiling tal_pwm.c...
compiling tal_spi.c...
compiling tal_ble_app_passthrough.c...
compiling app_product_test.c...
compiling tuya_ble_attach_ota_port.c...
compiling tuya_ble_protocol_callback.c...
compiling tal_ble_beacon.c...
compiling tuya_sdk_callback.c...
compiling tuya_ble_bulkdata.c...
compiling tuya_ble_attach_ota.c...
compiling tal_ble_beacon_remoter.c...
compiling tal_ble_file.c...
compiling tuya_ble_product_test_over_air.c...
compiling tuya_ble_bulkdata_demo.c...
compiling tuya_ble_iot_channel.c...
compiling tuya_ble_gatt_send_queue.c...
compiling tuya_ble_feature_accessory.c...
compiling tuya_ble_mem.c...
compiling tuya_ble_event.c...
compiling tuya_ble_ota.c...
compiling tuya_ble_main.c...
compiling tuya_ble_event_handler.c...
compiling tuya_ble_api.c...
compiling tuya_ble_mutli_tsf_protocol.c...
compiling tuya_ble_product_test.c...
compiling tuya_ble_queue.c...
compiling tal_rtc.c...
compiling tal_flash.c...
compiling tuya_ble_port.c...
compiling tal_uart.c...
compiling tuya_ble_data_handler.c...
compiling tuya_ble_uart_common.c...
compiling tal_watchdog.c...
compiling tuya_ble_storage.c...
compiling tuya_ble_scene.c...
compiling tuya_ble_weather.c...
compiling tal_ble_x_demo.c...
compiling tal_feature_ext_module.c...
compiling tal_bluetooth.c...
compiling tal_key.c...
compiling tal_local_timer.c...
compiling tal_memory.c...
compiling tal_sleep.c...
compiling tal_ota.c...
compiling tal_oled.c...
compiling tal_local_timer_storage.c...
compiling tal_system.c...
compiling tal_sw_timer.c...
compiling tal_log.c...
compiling tal_utc.c...
compiling tkl_rtc.c...
compiling tkl_adc.c...
compiling tkl_flash.c...
compiling tal_util.c...
compiling tkl_memory.c...
compiling tkl_gpio.c...
compiling tkl_i2c.c...
compiling tal_sdk_test.c...
compiling tkl_pwm.c...
compiling tkl_spi.c...
compiling tkl_watchdog.c...
compiling tkl_timer.c...
compiling tkl_sleep.c...
compiling tkl_uart.c...
compiling tuya_list.c...
compiling tkl_ota.c...
compiling tuya_queue.c...
compiling tuya_mem_heap.c...
compiling tkl_wakeup.c...
compiling tkl_system.c...
compiling osal_snv.c...
compiling key.c...
compiling timer.c...
compiling clock.c...
compiling uart.c...
compiling my_printf.c...
compiling main.c...
compiling pwm.c...
compiling tkl_bluetooth.c...
compiling gpio.c...
compiling pwrmgr.c...
compiling flash.c...
compiling i2c.c...
assembling startup_ARMCM0.s...
compiling SimpleBLEPeripheral_Main.c...
compiling adc.c...
compiling gap.c...
compiling watchdog.c...
compiling system_ARMCM0.c...
compiling gapgattserver.c...
compiling spi.c...
compiling jump_table.c...
compiling OSAL_SimpleBLEPeripheral.c...
compiling peripheral.c...
compiling simpleBLEPeripheral.c...
compiling gattservapp.c...
linking...
.\scatter_load.sct(9): warning: L6329W: Pattern *.o(_section_standby_code_) only matches removed unused sections.
.\scatter_load.sct(34): warning: L6329W: Pattern app_led.o(RO) only matches removed unused sections.
.\scatter_load.sct(35): warning: L6314W: No section matches pattern app_product_test.o(RO).
.\scatter_load.sct(39): warning: L6329W: Pattern tal_ble_ccm.o(RO) only matches removed unused sections.
.\scatter_load.sct(40): warning: L6314W: No section matches pattern tal_ble_hmac.o(RO).
.\scatter_load.sct(42): warning: L6314W: No section matches pattern tal_ble_sha1.o(RO).
.\scatter_load.sct(43): warning: L6314W: No section matches pattern tal_ble_sha256.o(RO).
.\scatter_load.sct(45): warning: L6329W: Pattern tal_xxtea.o(RO) only matches removed unused sections.
.\scatter_load.sct(51): warning: L6314W: No section matches pattern tal_ble_app_passthrough.o(RO).
.\scatter_load.sct(54): warning: L6329W: Pattern tal_ble_beacon.o(RO) only matches removed unused sections.
.\scatter_load.sct(55): warning: L6329W: Pattern tal_ble_beacon_remoter.o(RO) only matches removed unused sections.
.\scatter_load.sct(58): warning: L6314W: No section matches pattern tal_ble_file.o(RO).
.\scatter_load.sct(76): warning: L6314W: No section matches pattern tuya_ble_uart_common.o(RO).
.\scatter_load.sct(83): warning: L6314W: No section matches pattern tal_ble_x_demo.o(RO).
.\scatter_load.sct(84): warning: L6314W: No section matches pattern tal_feature_ext_module.o(RO).
.\scatter_load.sct(86): warning: L6329W: Pattern tal_local_timer.o(RO) only matches removed unused sections.
.\scatter_load.sct(87): warning: L6314W: No section matches pattern tal_local_timer_storage.o(RO).
.\scatter_load.sct(113): warning: L6329W: Pattern tuya_list.o(RO) only matches removed unused sections.
.\scatter_load.sct(115): warning: L6329W: Pattern tuya_queue.o(RO) only matches removed unused sections.
Program Size: Code=125080 RO-data=14580 RW-data=3504 ZI-data=26128
Finished: 0 information, 19 warning and 0 error messages.
FromELF: creating hex file...
After Build - User command #1: fromelf.exe .\Objects\Demo.axf --i32combined --output .\bin\Demo.hex
> build end, create final fw...
After Build - User command #2: .\bin\material\mk_hexf_bin.bat

E:\PHY6222_TuyaOS-3.9.0-test\software\TuyaOS\.log>.\bin\material\PhyPlusKit_v2.5.2a.exe -c -p .\bin\Demo.hex -b ..\vendor\phy6222_ble\sdk\phy62xx-sdk-v3\example\OTA\slboot\bin\slboot.hex -m SN -v 6222

E:\PHY6222_TuyaOS-3.9.0-test\software\TuyaOS\.log>python .\bin\material\ooo_bin.py .\bin\Demo_phy6222.hex16
Open hex file failed: .\bin\Demo_phy6222.hex16
Usage: ooo_bin.py fw.hex
Example: ooo_bin.py mesh_light.hex
".\Objects\Demo.axf" - 0 Error(s), 19 Warning(s).
Build Time Elapsed:  00:00:04
copy ./.log/bin/Demo_phy6222.hex16.bin -> UG
> build fail


--------------------------------------
Target not created, try -> 1
build fail
PS E:\PHY6222_TuyaOS-3.9.0-test\software\TuyaOS> 