Hi,
I have a new Ameba RTL8195AM Board.
And I clone the example from GitHub - ambiot/amb1_sdk: SDK for Ameba1.
I’ve read the document UM0096 Realtek Ameba-1 build environment setup - gcc.pdf. And successfully built the .bin files.
The OpenOCD is installed and running, but I encountered a flash problem as following:
~/amb1_sdk/project/realtek_ameba1_va0_example/GCC-RELEASE$ make flash
if [ ! -d ../../../tools/arm-none-eabi-gcc/4_8-2014q3 ] ; then tar -jxf ../../../tools/arm-none-eabi-gcc/gcc-arm-none-eabi-4_8-2014q3-20140805-linux.tar.bz2 -C ../../../tools/arm-none-eabi-gcc/ ; mv ../../../tools/arm-none-eabi-gcc/gcc-arm-none-eabi-4_8-2014q3 ../../../tools/arm-none-eabi-gcc/4_8-2014q3 ; fi
make[1]: Entering directory '/home/walker/Downloads/ITM1100/01_amb1_sdk/project/realtek_ameba1_va0_example/GCC-RELEASE'
cp ../../../component/soc/realtek/8195a/misc/gcc_utility//target_NORMALB.axf ../../../component/soc/realtek/8195a/misc/gcc_utility//target_NORMAL.axf
chmod 777 ../../../component/soc/realtek/8195a/misc/gcc_utility//target_NORMAL.axf
chmod +rx ../../../component/soc/realtek/8195a/misc/gcc_utility//SetupGDB_NORMAL.sh
../../../component/soc/realtek/8195a/misc/gcc_utility//SetupGDB_NORMAL.sh
...
/home/walker/Downloads/ITM1100/01_amb1_sdk/project/realtek_ameba1_va0_example/GCC-RELEASE
./application/Debug/bin/ram_all.bin
size 349348 --> 0x554A4
../../../tools/arm-none-eabi-gcc/4_8-2014q3/bin//arm-none-eabi-gdb -x ../../../component/soc/realtek/8195a/misc/gcc_utility//rtl_gdb_flash_write.txt
GNU gdb (GNU Tools for ARM Embedded Processors) 7.6.0.20140731-cvs
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-linux-gnu --target=arm-none-eabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
0x00000000 in ?? ()
Notification of completion for asynchronous execution commands is off.
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00000100 msp: 0x1ffffffc
0x40000040: 00fcc702
0x40005000: 0000000d
-------------------------------
RamFileSize: 554a4
-------------------------------
Loading section .rom.text, size 0x30c64 lma 0x0
Loading section .rom.rodata, size 0x12b8c lma 0x30c68
The OpenOCD output:
~/amb1_sdk/project/realtek_ameba1_va0_example/GCC-RELEASE$ ./run_openocd.sh
Found openocd running, Kill it
./run_openocd.sh: 9: kill: Illegal number: walker
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
adapter speed: 10 kHz
adapter_nsrst_delay: 200
cortex_m reset_config sysresetreq
ameba1_init
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 1.0
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 10 kHz
Info : SWD DPIDR 0x2ba01477
Info : rtl8195a.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection on tcp/3333
undefined debug reason 7 - target needs reset
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00000100 msp: 0x1ffffffc
0x40000040: 00fcc702
0x40005000: 0000000d