ambiot / ambd_sdk

Release SDK for AmebaD
110 stars 57 forks source link

Failed to make mp #23

Closed gingerologist closed 2 years ago

gingerologist commented 2 years ago

I successfully executed make all in lp and hp project folder, according to application note. But make mp failed. I cannot figure out why.

Any suggestions?

(omitted)

/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../toolchain/linux/asdk-6.4.1/linux/newlib/bin/arm-none-eabi-ar rvs lib_user.a /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/project/library/lib_user_test.o  
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../toolchain/linux/asdk-6.4.1/linux/newlib/bin/arm-none-eabi-ar: creating lib_user.a
a - /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/project/library/lib_user_test.o
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../toolchain/linux/asdk-6.4.1/linux/newlib/bin/arm-none-eabi-objcopy --strip-debug lib_user.a
mv -f lib_user.a /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/lib/application
make[4]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/project/library'
make[4]: Entering directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/project/src'
make[5]: Entering directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/src/src_hp'
rm -f main.o
rm -f main.d
rm -f main.i
rm -f main.s
rm -f main.su
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../toolchain/linux/asdk-6.4.1/linux/newlib/bin/arm-none-eabi-gcc -march=armv8-m.main+dsp  -mthumb  -mcmse  -mfloat-abi=hard -mfpu=fpv5-sp-d16 -g -gdwarf-3 -nostartfiles -nodefaultlibs -nostdlib -Os -D__FPU_PRESENT -gdwarf-3 -fstack-usage -fdata-sections -ffunction-sections -nostartfiles -nostdlib -Wall -Wpointer-arith -Wstrict-prototypes -Wundef -Wno-write-strings -Wno-maybe-uninitialized --save-temps -c -MMD -MP -Wextra -I. -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/os -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/os/freertos -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/os/freertos/freertos_v10.2.0/Source/include/ -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/os/freertos/freertos_v10.2.0/Source/portable/GCC/RTL8721D_HP/non_secure -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/os/freertos/freertos_v10.2.0/Source/portable/GCC/RTL8721D_HP/secure -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/soc/realtek/amebad/cmsis/ -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/soc/realtek/amebad/cmsis/device -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/soc/realtek/amebad/cmsis-dsp/Source -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/soc/realtek/amebad/fwlib/include -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/soc/realtek/amebad/fwlib/rom_map_hp -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/soc/realtek/amebad/app/monitor/include -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/soc/realtek/amebad/app/xmodem -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/soc/realtek/amebad/swlib/include -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/soc/realtek/amebad/swlib/string -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/soc/realtek/amebad/misc -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/soc/realtek/amebad/swlib/os_dep/include/ -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/soc/realtek/amebad/swlib/os_dep/../ -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/soc/realtek/amebad/swlib/string -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../inc/inc_hp -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/platform -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/network -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/network/include -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/audio -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/test -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/example -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/utilities -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/drivers/si -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/audio -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/audio/faac/include -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/audio/faac/libfaac -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/audio/faac -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/audio/haac -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/audio/hmp3 -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/audio/g711 -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/audio/speex -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/audio/speex/speex -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/audio/fdk-aac -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/audio/fdk-aac/libSYS/include -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/example/media_framework -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/media -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/media/samples -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/media/mmfv2 -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/media/rtp_codec -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/drivers/wlan/realtek/include -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/drivers/wlan/realtek/src/hci -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/drivers/wlan/realtek/src/osdep -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/drivers/wlan/realtek/src/hal -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/drivers/wlan/realtek/src/hal/phydm -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/drivers/wlan/realtek/src/hal/rtl8721d -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/drivers/wlan/realtek/wlan_ram_map/rom -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/drivers/wlan/realtek/src/core/option -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/network -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/network/lwip/lwip_v2.0.2/src/include -idirafter /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/network/lwip/lwip_v2.0.2/src/include/lwip -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/network/lwip/lwip_v2.0.2/src/include/netif -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/network/lwip/lwip_v2.0.2/port/realtek -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/network/lwip/lwip_v2.0.2/port/realtek/freertos -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/at_cmd -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/rtw_wpa_supplicant/src -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/rtw_wpa_supplicant/src/crypto -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/os/os_dep/include/ -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/drivers/inic/rtl8721d -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/network/rtsp -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/network/ssl/polarssl-1.3.8/include -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/network/ssl/ssl_ram_map/rom -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/network/ssl/mbedtls-2.4.0/include -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/network/ssl/mbedtls_ram_map/rom -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/amazon/amazon-freertos/lib/include/private -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/azure/azure-iot-sdk/c-utility/inc -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/azure/azure-iot-sdk/c-utility/pal/inc -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/azure/azure-iot-sdk/c-utility/pal/generic -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/azure/azure-iot-sdk/c-utility/pal/linux -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/azure/azure-iot-sdk/c-utility/adapters -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/azure/azure-iot-sdk/deps/azure-macro-utils-c/inc -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/azure/azure-iot-sdk/deps/uhttp/inc -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/azure/azure-iot-sdk/deps/umock-c/inc -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/azure/azure-iot-sdk/iothub_client/inc -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/azure/azure-iot-sdk/uamqp/inc -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/azure/azure-iot-sdk/umqtt/inc -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/azure/azure-iot-sdk/iothub_client/inc/internal -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/azure/azure-iot-sdk/deps/parson -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/azure/azure-iot-sdk/provisioning_client/inc -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/azure/azure-sdk-for-c/sdk/inc -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/mbed/targets/hal/rtl8721d/ -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/mbed/targets/hal/rtl8721d/include -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/mbed/api/ -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/mbed/hal/ -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/mbed/hal_ext/ -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/baidu/libduer-device/external/mbedtls-port  -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/apple/WACServer/External/Curve25519 -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/apple/WACServer/External/GladmanAES -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/apple/homekit/crypto/chacha -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/apple/homekit/crypto/poly1305 -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/apple/homekit/crypto/ed25519 -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/apple/homekit/crypto/ed25519/core -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/apple/homekit/crypto/sha512 -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/file_system/fatfs/r0.10c/include -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/file_system/fatfs -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/file_system/ftl -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/file_system/dct -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/baidu/libduer-device/framework/core -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/baidu/libduer-device/framework/include -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/application/baidu/duerapp/include -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/ui/emwin/emWinLibrary/include -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/ui/emwin/Sample/rtl8721d/Config -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/ui/emwin/Sample/rtl8721d/hal  -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/bluetooth/realtek/sdk/example/bt_config -DCONFIG_PLATFORM_8721D -DCONFIG_USE_MBEDTLS_ROM_ALG -DCONFIG_FUNCION_O0_OPTIMIZE -DDM_ODM_SUPPORT_TYPE=32 -DCONFIG_BT_MP -DCONFIG_MP_INCLUDED -I/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../src/src_hp./ main.c  -o main.o
echo "=============================================================" \
       >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/ram_size.txt;\
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../toolchain/linux/asdk-6.4.1/linux/newlib/bin/arm-none-eabi-size -t main.o >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/ram_size.txt;\
for i in  main.o ; do \
    echo $i >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/obj_list.txt;\
     cp -f  $i /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/build/ram;\
    done \

make[5]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/src/src_hp'
make[4]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/project/src'
make[3]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/project'
make[3]: Entering directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/application'
make[4]: Entering directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/application/xmodem'
echo "=============================================================" \
       >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/ram_size.txt;\
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../toolchain/linux/asdk-6.4.1/linux/newlib/bin/arm-none-eabi-size -t xmodem.o uart_fw_update.o >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/ram_size.txt;\
for i in  xmodem.o uart_fw_update.o ; do \
    echo $i >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/obj_list.txt;\
     cp -f  $i /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/build/ram;\
    done \

make[4]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/application/xmodem'
#@make -C azure all
#@make -C azure_emb all
#@make -C airkiss all
make[3]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/application'
#@make -C cmsis-dsp all
make[2]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make'
========= linker img2_ns start =========
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../toolchain/linux/asdk-6.4.1/linux/newlib/bin/arm-none-eabi-gcc -L/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../toolchain/linux/asdk-6.4.1/linux/newlib/lib/ -L/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/lib/ -T/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/build/rlx8721d.ld  -Os -march=armv8-m.main+dsp -mthumb -mcmse -mfloat-abi=hard -mfpu=fpv5-sp-d16 -nostartfiles -specs nosys.specs -Wl,--gc-sections -Wl,--warn-section-align -Wl,-Map=text.map  -Wl,--cref -Wl,--build-id=none -save-temps  -Wl,--no-enum-size-warning  -Wl,--warn-common -o target_img2.axf ./build/ram/*.o   /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/lib/application/lib_cmsis_dsp.a /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/lib/application/lib_httpc.a /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/lib/application/lib_httpd.a /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/lib/application/lib_mdns.a /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/lib/application/lib_websocket.a /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/lib/application/lib_tftp.a /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/lib/application/lib_dct.a /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/lib/application/lib_coap.a /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/lib/application/lib_eap.a /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/lib/application/lib_pmc_hp.a /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/lib/application/lib_wlan_mp.a /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/lib/application/lib_wps.a  -lm -lstdc++
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/toolchain/linux/asdk-6.4.1/linux/newlib/bin/../lib/gcc/arm-none-eabi/6.4.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .ram_image2.data by 4 bytes
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/toolchain/linux/asdk-6.4.1/linux/newlib/bin/../lib/gcc/arm-none-eabi/6.4.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .ram_image2.bss by 16 bytes
./build/ram/atcmd_wifi.o: In function `fATWx':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/at_cmd/atcmd_wifi.c:545: undefined reference to `rltk_get_security_mode_full'
./build/ram/atcmd_wifi.o: In function `fATWE':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/at_cmd/atcmd_wifi.c:1740: undefined reference to `rltk_coex_set_wifi_slot'
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/at_cmd/atcmd_wifi.c:1742: undefined reference to `rltk_coex_set_wlan_slot_random'
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/at_cmd/atcmd_wifi.c:1746: undefined reference to `rltk_coex_set_wlan_slot_preempting'
./build/ram/atcmd_wifi.o: In function `fATWC':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/at_cmd/atcmd_wifi.c:1177: undefined reference to `rltk_wlan_channel_switch_announcement_is_enable'
./build/ram/wifi_conf.o: In function `wifi_link_err_parse':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/wifi_conf.c:395: undefined reference to `rltk_wlan_get_link_err'
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/wifi_conf.c:455: undefined reference to `rltk_wlan_set_link_err'
./build/ram/wifi_conf.o: In function `wifi_connect_local':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/wifi_conf.c:236: undefined reference to `rltk_wlan_set_wpa_mode'
./build/ram/wifi_conf.o: In function `wifi_connect_bssid_local':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/wifi_conf.c:297: undefined reference to `rltk_wlan_set_wpa_mode'
./build/ram/wifi_conf.o: In function `wifi_autoreconnect_thread':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/wifi_conf.c:3341: undefined reference to `rltk_wlan_get_saved_bssid'
./build/ram/wifi_conf.o: In function `wifi_get_band_type':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/wifi_conf.c:3917: undefined reference to `rtw_chip_band_type_check'
./build/ram/example_wlan_fast_connect.o: In function `wlan_init_done_callback':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/example/wlan_fast_connect/example_wlan_fast_connect.c:196: undefined reference to `g_reconnect_delay'
./build/ram/wifi_util.o: In function `wext_set_support_wpa3':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/wifi_util.c:157: undefined reference to `rtw_cmd_tsk_spt_wap3'
./build/ram/wifi_util.o: In function `wext_get_support_wpa3':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/wifi_util.c:163: undefined reference to `rtw_cmd_tsk_spt_wap3'
./build/ram/wifi_util.o: In function `wext_set_anti_interference':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/wifi_util.c:1530: undefined reference to `rtw_anti_interference_en'
./build/ram/wifi_util.o: In function `wext_set_ant_div_gpio':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/wifi_util.c:1539: undefined reference to `rtw_ant_div_gpio_ext'
./build/ram/wifi_util.o: In function `wext_set_bw40_enable':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/wifi_util.c:1565: undefined reference to `rtw_cbw40_enable'
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/wifi_util.c:1565: undefined reference to `rtw_bw_mode'
./build/ram/wifi_util.o: In function `wext_ap_switch_chl_and_inform':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/wifi_util.c:1689: undefined reference to `rtw_ap_switch_chl_and_inform'
./build/ram/wifi_util.o: In function `wext_set_powersave_mode':
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/wifi/wifi_util.c:1824: undefined reference to `rtw_power_mgnt'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:396: linker_image2_ns] Error 1
make[1]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk'
make: *** [Makefile:22: mp] Error 2
S10143806H commented 2 years ago

Dear @gingerologist,

Firstly, I am unable to reproduce your issue. May I know which version of SDK you are currently using?

Secondly, may I know what is the intention for you to use make mp? Since mp = mass product, which is for the company to generate a batch of products.

If you wish to have this feature in your SDK, feel free to check this page: How to get features not included in the open-source SDKs? How to get NDA (internal) SDK?.

Thanks

gingerologist commented 2 years ago

Sorry that I didn't clarify my build environment. I work on Ubuntu LTS 20.04. Linux Environment. Several problems are encountered.

First, there is no script to assign all .sh files executable permissions. Second, several python scripts contains carriage return, and I replaced some of them with newline using sed. Then I encountered the problem described here.

I followed the instruction in AN0400. The first step, make all in lp folder worked after I fixed the shell script executable permission problem. The second step, make all in hp folder also worked with similar permission fix. But the third step, make mp does not work. Also, I am not sure whether this step is necessary or not, since it is only mentioned in AN0400, but not mentioned in other online docs. Correct me if I am wrong.

gingerologist commented 2 years ago

Furthermore, you don't need to repeat the exact problem. Could you give some advice what is the possible reason according to log output? It looks like a linker problem. Also it seems something is missing. But I totally has no idea what is missing, is it some header file auto generated? and which script file is responsible to generate those files? Shed me some light, thanks.

gingerologist commented 2 years ago

I am sure that I installed all dependencies mentioned in AN0400 document. Most of them are exactly the same, except one. The libncurses on my Ubuntu box is version 6, not 5. But I don't think it is related with the problem discussed here.

gingerologist commented 2 years ago

I git reset --hard the repository. Using git add --renormalize . to deal with all line endings. Then chmod a+x all .sh and .py files. After that make all in lp folder works. make all in hp folder also works. Finally make mp failed again. This time I noticed an error message right before ========= linker img2_ns start ========= banner.

Here is the log:

(omitted)
....
echo "=============================================================" \
       >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/ram_size.txt;\
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../toolchain/linux/asdk-6.4.1/linux/newlib/bin/arm-none-eabi-size -t main.o >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/ram_size.txt;\
for i in  main.o ; do \
    echo $i >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/obj_list.txt;\
     cp -f  $i /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/build/ram;\
    done \

make[5]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/src/src_hp'
make[4]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/project/src'
make[3]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/project'
make[3]: Entering directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/application'
make[4]: Entering directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/application/xmodem'
echo "=============================================================" \
       >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/ram_size.txt;\
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../toolchain/linux/asdk-6.4.1/linux/newlib/bin/arm-none-eabi-size -t xmodem.o uart_fw_update.o >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/ram_size.txt;\
for i in  xmodem.o uart_fw_update.o ; do \
    echo $i >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/obj_list.txt;\
     cp -f  $i /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/build/ram;\
    done \

make[4]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/application/xmodem'
#@make -C azure all
#@make -C azure_emb all
#@make -C airkiss all
make[3]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/application'
#@make -C cmsis-dsp all
make[2]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make'
/usr/bin/env: ‘python\r’: No such file or directory
========= linker img2_ns start =========
....
(omitted)

Any clue what is the possible cause of the error?

gingerologist commented 2 years ago

/usr/bin/env: ‘python\r’: No such file or directory this error could be removed if I convert all line endings to unix style using sed or dos2unix. But the linker error discussed here remained.

gingerologist commented 2 years ago

Dear @gingerologist,

Firstly, I am unable to reproduce your issue. May I know which version of SDK you are currently using?

Secondly, may I know what is the intention for you to use make mp? Since mp = mass product, which is for the company to generate a batch of products.

If you wish to have this feature in your SDK, feel free to check this page: How to get features not included in the open-source SDKs? How to get NDA (internal) SDK?.

Thanks

I just followed the instruction in AN0400. I totally have no idea whether make mp is mandatory or optional.

gingerologist commented 2 years ago

Dear @gingerologist,

Firstly, I am unable to reproduce your issue. May I know which version of SDK you are currently using?

Secondly, may I know what is the intention for you to use make mp? Since mp = mass product, which is for the company to generate a batch of products.

If you wish to have this feature in your SDK, feel free to check this page: How to get features not included in the open-source SDKs? How to get NDA (internal) SDK?.

Thanks

I just cloned this repository and followed the instructions in AN0400.

S10143806H commented 2 years ago

Sorry that I didn't clarify my build environment. I work on Ubuntu LTS 20.04. Linux Environment. Several problems are encountered.

Hi, thanks for providing the information. Please specify which version of SDK you are using now?

For the dev branch, the current SDK is still pending QC and it's in the development phase. Please check here if you wish to use a more stable version.

First, there is no script to assign all .sh files executable permissions. Second, several python scripts contains carriage return, and I replaced some of them with newline using sed. Then I encountered the problem described here.

For granting permission of the *.sh files, please follow the Readme.md in the screenshot: image

I followed the instruction in AN0400. The first step, make all in lp folder worked after I fixed the shell script executable permission problem. The second step, make all in hp folder also worked with similar permission fix. But the third step, make mp does not work. Also, I am not sure whether this step is necessary or not, since it is only mentioned in AN0400, but not mentioned in other online docs. Correct me if I am wrong.

Please do understand that, in AN0400, the image you build can be categorized as either Normal Image or MP Image. For personal users, just follow the instructions in 1.3.1 Normal Image image

S10143806H commented 2 years ago

Furthermore, you don't need to repeat the exact problem. Could you give some advice what is the possible reason according to log output? It looks like a linker problem. Also it seems something is missing. But I totally has no idea what is missing, is it some header file auto generated? and which script file is responsible to generate those files? Shed me some light, thanks.

HI @gingerologist , As I said, if you wish to use the FULL FUNCTIONAL SDK, please proceed to check this page: How to get features not included in the open-source SDKs? How to get NDA (internal) SDK? and sign the NDA. Currently, ambd_sdk is for open-source users, therefore the function is not fully supported here.

gingerologist commented 2 years ago

Sorry that I didn't clarify my build environment. I work on Ubuntu LTS 20.04. Linux Environment. Several problems are encountered.

Hi, thanks for providing the information. Please specify which version of SDK you are using now?

For the dev branch, the current SDK is still pending QC and it's in the development phase. Please check here if you wish to use a more stable version.

First, there is no script to assign all .sh files executable permissions. Second, several python scripts contains carriage return, and I replaced some of them with newline using sed. Then I encountered the problem described here.

For granting permission of the *.sh files, please follow the Readme.md in the screenshot: image

I followed the instruction in AN0400. The first step, make all in lp folder worked after I fixed the shell script executable permission problem. The second step, make all in hp folder also worked with similar permission fix. But the third step, make mp does not work. Also, I am not sure whether this step is necessary or not, since it is only mentioned in AN0400, but not mentioned in other online docs. Correct me if I am wrong.

Please do understand that, in AN0400, the image you build can be categorized as either Normal Image or MP Image. For personal users, just follow the instructions in 1.3.1 Normal Image image

Thank you very much for your patience. I am terribly sorry that I took it for granted the default branch of this repo is the release branch. I checked out the master branch after a fresh git clone and did the following:

  1. cd into project_lp
  2. chmod a+x $(find . -name "*.sh")
  3. make all and it succeeded.
  4. cd into project_mp
  5. chmod a+x $(find . -name "*.sh") (this seems enough, no need to chmod a+x to all .py files)
  6. make all and it succeeded either.
  7. finally, make mp in project_mp folder also succeeded.

Thank you so much for your support. I will read the document carefully.