Basic application build and debug

Hi All,
I have build an example from SDK for RTL8720DN chip, but not dev board.

During the build I have faced with many small bugs related with permissions for .sh and .py files.
But there are some problems still exist:
Traceback (most recent call last):
File “/home//ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/code_analyze.py”, line 480, in
obj_list_gen()
File “/home//project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/code_analyze.py”, line 19, in obj_list_gen
num = len(item)
TypeError: object of type ‘filter’ has no len()

After that I connected chip to JLink 9 debugger.
There are next connections:
Chip | JLINK
VDD → VDD
GND → GND
PB3 → SWD CLK
PB27 → SWD DATA
Server was started fine.

Then ‘make setup GDB_SERVER=jlink’

And finally I tried to load by ‘make flash’
It can’t find some files.
Load flash loader.
/home//ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/gnu_utility/gnu_script/rtl_gdb_flash_write.txt:27: Error in sourced command file:
gnu_utility/gnu_script/target_FPGA.axf: No such file or directory.

So, the build is wrong. I doesn’t copy necessary files.

For first stage what files must be copped manual to start minimal debug?
**I don’t see .ld file for RTL820DN. Is it rlx8721d ?

@Tuxford

thanks for raising this issue. The cause has been found, you can refer to this commit for the missing files.

1 Like