Giter Site home page Giter Site logo

ambd_sdk's Introduction

Welcome to Ameba IoT site on GitHub

Realtek Ameba IoT supports a large variety of open-source projects, including SDKs, HDKs, solutions, components, and tools. Also, third parties contributions are included. This Ameba IoT eco system aims to help developers to study tranding technology and turn their innovation ideas into real. All Ameba IoT official opensource software are available on this GitHub site. The following link leads to all Ameba IoT open-source projects. Repository link.

Solutions

Frameworks and SDKs

Standard SDK Development

Arduino SDK Development

MicroPython SDK Development

Forum

Documents

Social Media

🏠 To learn about all products and services from Realtek Ameba IoT, please visit our official website Ameba IoT Homepage.

ambd_sdk's People

Contributors

ambiot avatar booketball avatar jane-zeng avatar liangxcai avatar m-ichae-l avatar s10143806h avatar xidameng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ambd_sdk's Issues

Ping延迟问题

测试发现连上Wi-Fi后, 不进行TCP通信, ping延迟基本在80ms左右
使用ATPT指令间隔50ms持续发送数据, ping延迟能稳定在5ms内, 想问下这是什么原因导致的.
数据如下:
来自 192.168.1.222 的回复: 字节=32 时间=55ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=69ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=85ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=98ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=90ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=85ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=93ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=99ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=103ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=17ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=3ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=2ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=25ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=23ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=30ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=2ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=2ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=2ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=2ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=5ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=3ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=4ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=2ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=4ms TTL=255
来自 192.168.1.222 的回复: 字节=32 时间=2ms TTL=255

1.0及1.0.1 sdk测试结果一致

自定义mesh模型

自定义蓝牙mesh模型,但是注册后好像得不到调用,无法进入自定义的data_receive函数,总是进入
generic on off server receive回调函数

I2C Slave API fails to recognize the master's final NACK in slave-to-master transmissions

The issue happens when the RTL872x acts as an I2C slave transmitting data to a remote master. The I2C Specification states that a master-receiver must signal the end of the transfer by issuing a NACK to the slave-transmitter. The slave device must recognize this NACK and use it to leave the transmission state – even if the master read fewer bytes than were stored in the slave's Tx FIFO.

In the Ameba D SDK the slave transmission is performed by I2C_SlaveWrite(). In the RTL872x the master's NACK is signaled by the RX_DONE interrupt flag. Unfortunately I2C_SlaveWrite() fails to check this flag, hence does never detect the end of the transmission, which prevents it from returning properly.

The problem can be solved in I2C_SlaveWrite() by changing the final

while((I2C_CheckFlagState(I2Cx, BIT_IC_STATUS_TFE)) == 0);

for

while(((I2C_CheckFlagState(I2Cx, BIT_IC_STATUS_TFE)) == 0) &&
    ((I2Cx->IC_RAW_INTR_STAT & BIT_IC_RAW_INTR_STAT_RX_DONE) == 0));

I2Cx->IC_CLR_INTR;

See full discussion here: https://forum.amebaiot.com/t/rtl8720dn-as-i2c-slave/407/16

Regards

Failed to wake up the chip in tickless

I tried to make the chip enter sleep mode and wake up, the chip could enter sleep mode but failed to wake up.

Here is the code of main.c, actually I copied this code from official example to my KM4_project. The example path is ambd_sdk/project/realtek_amebaD_va0_example/example_sources/PMC/raw/pm_tickless/src/main.c

#include "ameba_soc.h"
#include "main.h"

#if defined(CONFIG_WIFI_NORMAL) && defined(CONFIG_NETWORK)
extern VOID wlan_network(VOID);
#endif

static u32 app_loguart_suspend(u32 expected_idle_time, void *param)
{
	// For peripherals that need turned off before sleep, call disable or deinit peripheral here
	DiagPrintf("app_loguart_suspend\n");

	return TRUE;
}

static u32 app_loguart_resume(u32 expected_idle_time, void *param)
{
	// For peripherals that are turned off before sleep, call enable or init peripheral here
	DiagPrintf("app_loguart_resume\n");
	/*set km4 active time*/
	pmu_set_sysactive_time(5000);
	return TRUE;
}

/**
  * @brief  Main program.
  * @param  None
  * @retval None
  */
int main(void)
{
	/* init console */
	shell_recv_all_data_onetime = 1;

	InterruptRegister(IPC_INTHandler, IPC_IRQ, (u32)IPCM0_DEV, 10);
	InterruptEn(IPC_IRQ, 10);

	shell_init_rom(0, 0);	
	shell_init_ram();
	ipc_table_init();

	/* Register Log Uart Callback function */
	InterruptRegister((IRQ_FUN) shell_uart_irq_rom, UART_LOG_IRQ, (u32)NULL, 10);
	InterruptEn(UART_LOG_IRQ,10);

#if defined(CONFIG_WIFI_NORMAL) && defined(CONFIG_NETWORK)
	rtw_efuse_boot_write();

	wlan_network();
#endif
	/*set KM4 sleep type*/
	pmu_set_sleep_type(SLEEP_PG);
	/*acquire wakelock to avoid KM4 enter sleep mode*/
	pmu_acquire_wakelock(PMU_OS);
	
	pmu_register_sleep_callback(PMU_LOGUART_DEVICE, (PSM_HOOK_FUN)app_loguart_suspend, NULL, (PSM_HOOK_FUN)app_loguart_resume, NULL);

	/*release wakelock to allow KM4 enter sleep mode*/
	pmu_release_wakelock(PMU_OS);
	/* Enable Schedule, Start Kernel */
	vTaskStartScheduler();
}

The LOG_UART printed app_loguart_suspend which means the chip entered the sleep mode, but when I sent ENTER, the LOG_UART sent ENTER back without waking up the chip.
image

How could I wake up the chip?

Failed to make flash

OS: Ubuntu 20.04.4 LTS

In project_lp folder, make all succeeded. But make flash failed. with the following log:

ma@ma:/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp$ make flash
make -C asdk gdb
make[1]: Entering directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk'
cp /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/gnu_utility/gnu_script/acut_loader/*  /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/gnu_utility/gnu_script/
cp: cannot stat '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/gnu_utility/gnu_script/acut_loader/*': No such file or directory
make[1]: *** [Makefile:310: gdb] Error 1
make[1]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk'
make: *** [Makefile:31: flash] Error 2

The cp command failed. I checked acut_loader folder. It is there but is virtually empty since only one .gitkeep file is inside. No other files. This certainly looks weird. Any suggestions?

Missing USB support

USB support appears to be missing from the SDK. The option is in menuconfig, but it you turn it on there is nothing for it to compile.

  1. Does CDC-ACM mode work to use tether mode to attach this chip to a host CPU? Does it work the same as tethering a phone?

  2. Is this tether mode implemented as a network bridge? In other words, do the Ameba and the attached host have distinct MAC and IP addresses? I need to be able to use this link to communicate between the host and the Ameba as well as providing internet access.

Failed to make mp

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

SDK会考虑接入阿里飞燕平台适配吗

我在makefile中看到有linkkit的编译选项,请问是否曾想过支持阿里飞燕平台?我目前正在使用这个SDK把阿里飞燕的蓝牙配网加入到SDK中,但是始终无法完成这个功能。阿里官方也曾经使用rtl8720dn开发过一套开发板,但是还没开始研究这个项目的时候好像这个系列就已经关停了,并且没有任何技术支持。官方开放的源码也逐渐混乱。

make flash failed in project_hp

I have connected the chip using command as tutorial said,
/opt/SEGGER/JLink/JLinkGDBServer -device cortex-m33 -if SWD -scriptfile AP2_KM4.JLinkScript -port 2335
image
But I failed to flash the chip in another terminal(project_hp)
image

how could I fix it?

@S10143806H Looking forward to your response!

make flash

OS Linux (Ubuntu 20)

When I run make flash it fails with next output:

make flash
make -C asdk gdb
make[1]: Entering directory '/home//ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk'
cp /home//ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/gnu_utility/gnu_script/acut_loader/* /home/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/gnu_utility/gnu_script/
cp: cannot stat '/home//ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/gnu_utility/gnu_script/acut_loader/*': No such file or directory
make[1]: *** [Makefile:311: gdb] Error 1
make[1]: Leaving directory '/home//ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk'

wifi promisc example incorrect.

1.when wifi enter promisc mode, frame is not only beacon frame.but in the example (wifi_promisc.c) cast to ieee80211_frame_info_t is incorrect. so type == RTW_RX_UNSUPPORT is incorrect.
2.how we can get rtw_rx_info_t data ?

promisc issue when in 5.8G band

When set wifi channel in 5.8G band. in the promisc_callback, userdata parameter type field is not correct,but in 2.4G band is correct.

Cannot compile on macOS.

When running make command, this error appeared.

cp ./ld/rlx8721d_img3_s.ld  /Users/chanchuansoo/Anuar/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/build/rlx8721d.ld
cat ./ld/rlx8721d_rom_symbol_acut_s.ld >> /Users/chanchuansoo/Anuar/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/build/rlx8721d.ld
Extract toolchain
mkdir -p darwin
tar -jxvf asdk/asdk-6.5.0-darwin-newlib-build-999+-10.13.tar.bz2 -C darwin/
tar: Error opening archive: Failed to open 'asdk/asdk-6.5.0-darwin-newlib-build-999+-10.13.tar.bz2'
make[2]: *** [all] Error 1
make[1]: *** [check_toolchain] Error 2
make: *** [all] Error 2```

Efuse/SWD/RSIP/memory questions

Hello,

I'm a developer @kontakt.io, we're developing a product based on the 8720DN.
I've got some questions about the chip which were not answered in the user manual / datasheet:

  1. User manual mentions AN0411 (efuse layout). Is the document available for download?
  2. How does the SWD password work? How do we disable SWD access to the processor?
  3. How do we enable RSIP? Where on the processor do we write the Initialization Vector (I've seen EFUSES only for the key)?
  4. The datasheet mentions extension SRAM in the (0x100E_0000~0x100F_FFFF) address range. How do we use it?

"When Bluetooth is disabled, more 64KB SRAM will be extended. This SRAM can also be accessed by both KM4 and KM0, up to 50MHz*32 bits."
UM401 RTL872xD Datasheet - 4.2.3 Extension SRAM section.

Please contact me directly if this data cannot be shared publicly.

Kind Regards,
Radek

Image Tool support for Linux

Hi all,

I'm wondering if there is any Image-Tool alternative for Linux (Ubuntu 20.04 LTS), to perform Device Fimrware Updates over UART.
I have a BW16 breakout board and am looking to load some firmware to leverage it for a project.

Thanks in advance!

Best regards,
Luis.

Build failed for IAR project

Fatal Error[Li001]: could not open file “C:\Users\PC-01\Desktop\New folder (2)\ambd_sdk-master\project\realtek_amebaD_va0_example\EWARM-RELEASE\ C:\Users\PC-01\AppData\Local\Temp\EW32C8.tmp 1
Debug\Exe\km0_image\lib_application_lp.a” (failed opening file: The system cannot find the file specified.

: iostream stream error)
Error while running Linker

Look like SDK for IAR project is missing for lib_application_lp.a, libbootloader_lp.a lib_application_hp.a, libbootloader_hp.a files.

Build wlan example failed

I try to build the example of wlan, but it build failed.
Path of example code: project\realtek_amebaD_va0_example\example_sources\wlan

Fail log:
./build/ram/main.o: In function 'main': /cygdrive/c/Users/rock_shen/Desktop/MCU/ambd_sdk/project/realtek_amebaD_va0_example/src/src_hp/main.c:19: undefined reference to 'ReRegisterPlatformLogUart' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:358: linker_image2_ns] Error 1 make[1]: Leaving directory '/cygdrive/c/Users/rock_shen/Desktop/MCU/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk' make: *** [Makefile:17: all] Error 2

It seems like ReRegisterPlatformLogUart function is not found in ambd_sdk.
Could anyone help check this issue?

wifi_scan_networks use of rtw_wakelock_timeout

The function calls rtw_wakelock_timeout with a 2s timeout to avoid suspend during a scan. This is an issue when you just need to scan a limited range (single channel), since the operation requires much less than the 2s of a full scan. Using a wakelock may be better, forcing the MCU to stay on only for the actual time required for the scan.

How to change compile level in GCC_RELEASE(hp)?

Description

I don't know how to change compile level in GCC_RELEASE(hp).

There're few ways I have been tried but all failed, test with a global vriable:

  • Changed all the Os to O0 in every related Makefile.
    image

  • Defined a global variable with __attribute__ ((optimize("O0"))), e.g., volatile char *s __attribute__ ((optimize("O0"))) = "Hello World string from KM4";, after flashing and entering gdb shell, tried to print the variable but no symbol
    image
    Once the variable is used, such as printf, DiagPrintf("The km4_string is : %s\n", s);it can keep away from being optimized,
    image

  • Surrounded the global vriable by pragma

    #pragma GCC push_options
    #pragma GCC optimize ("O0")
    char *s = "Hello World string from KM4";
    #pragma GCC pop_options

I also noted the compile option has been changed from "O2" to "Os" in Git 210714_317d518b to Git 210809_a30eac93 but I have no idea what to do.

Thanks in advance.

make flash fails: "....../acut_loader/*': No such file or directory"

when attempting to flash, unable to find the final items needed to flash. ran the following from a clean directory before attempting to flash:
git clone [email protected]:ambiot/ambd_sdk.git
git switch --detach V1.0.0
cd /ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/
find . -type f -iname "*.sh" -exec chmod +x {} + // this is to set all .sh scripts to executable
cd ./project_lp/
make setup
make all
cd ../project_hp/
make setup
make all
make mp

make flash
fails:

ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/gnu_utility/gnu_script/acut_loader/*': No such file or directory

full output:
"make -C asdk gdb
make[1]: Entering directory '/home/.../rtl/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk'
cp /home/.../rtl/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../project_lp/asdk/gnu_utility/gnu_script/acut_loader/* /home/.../rtl/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/gnu_utility/gnu_script/acut_loader/
cp: cannot stat '/home/.../rtl/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../project_lp/asdk/gnu_utility/gnu_script/acut_loader/*': No such file or directory
make[1]: *** [Makefile:536: gdb] Error 1
make[1]: Leaving directory '/home/.../rtl/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk'
make: *** [Makefile:31: flash] Error 2"

running OS UBUNTU 20.04

lsusb output:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04f2:b52c Chicony Electronics Co., Ltd Integrated Camera
Bus 001 Device 003: ID 8087:0a2b Intel Corp.
Bus 001 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC // this is what im using to talk to the board
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dependencies installed:
ubuntu:
sudo apt-get update
sudo apt-get install libc6-i386
sudo apt-get install libncurses5-dev
sudo apt-get install libncurses5:i386
sudo apt-get install libncurses5
sudo apt-get install make
sudo apt-get install bc
sudo apt-get install gawk

why is the acut_loader folder empty? Is there a step im missing?

Does Ameba-D SDK support USB CDC ACM?

I want to enable USB CDC ACM on our board, I refer to this document to build the example of example_usbd_cdc_acm_tp.
Document link:
component\soc\realtek\amebad\verification\usb_otg\usbd_cdc_acm_new\readme.txt

But it build failed.
amebad_build_failed

It seems like usbd.h is not found in ambd_sdk.
Could anyone help check this issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.