0
bbebmsa

问题1:

我看默认项目中使用 CONFIG_PLATFORM_8195A 为定义。

RTL8710使用 sdk-ameba1-v3.4b3_without_NDA IAR编译时,是否使用默认的设置就可以了?

---------------------------------

问题2:

IAR下使用CMSIS DAP调试下载时,出现一些提示,是否需要做什么?

主要的一些提示信息:

--------------------

Wed Mar 22, 2017 21:40:16: The downloaded program doesn't seem to match the expected memory layout of the target system:
Wed Mar 22, 2017 21:40:16: Some SFRs are placed outside known memory areas, or in memory areas designated as read-only or as RAM:
Wed Mar 22, 2017 21:40:16: Memory is specified as follows:
Wed Mar 22, 2017 21:40:17: Macro '__load_dram_param' already defined in D:\temp\sdk-ameba1-v3.4b3_without_NDA\project\realtek_ameba1_va0_example\EWARM-RELEASE7.8\..\..\..\component\soc\realtek\8195a\
Wed Mar 22, 2017 21:40:18: There were 4 warnings during the initialization of the debugging session.

========================

完整的debug log提示:

---------------------------

Wed Mar 22, 2017 21:34:35: IAR Embedded Workbench 7.80.4 (armproc.dll)
Wed Mar 22, 2017 21:34:35: Loaded macro file: D:\temp\sdk-ameba1-v3.4b3_without_NDA\project\realtek_ameba1_va0_example\EWARM-RELEASE7.8\..\..\..\component\soc\realtek\8195a\misc\iar_utility\common\
flashloader\FlashRTL8195aMP.mac
Wed Mar 22, 2017 21:34:35: Loading the CMSIS-DAP driver
Wed Mar 22, 2017 21:34:35: Probe: CMSIS-DAP probe SW module ver 1.12
Wed Mar 22, 2017 21:34:35: CMSIS-DAP enumerator: No access to device S/N.
Wed Mar 22, 2017 21:34:35: Probe: CMSIS-DAP S/N '' mapped to a number 00001.
Wed Mar 22, 2017 21:34:35: EARM v.4.14
Wed Mar 22, 2017 21:34:35: Emulation layer version 4.14
Wed Mar 22, 2017 21:34:35: Notification to core-connect hookup.
Wed Mar 22, 2017 21:34:35: Probe: ConnectSpec='MBED CMSIS-DAP::7-EB1EE0D-0-0000'.
Wed Mar 22, 2017 21:34:35: Connecting to TAP#0 DAP AHB-AP-CM port 0 (IDR=0x24770011).
Wed Mar 22, 2017 21:34:35: Recognized CPUID=0x412fc231 Cortex-M3 r2p1 arch ARMv7-M
Wed Mar 22, 2017 21:34:35: Debug resources: 6 instruction comparators, 4 data watchpoints.
Wed Mar 22, 2017 21:34:35: CPU status OK
Wed Mar 22, 2017 21:34:35: LowLevelReset(system, delay 200)
Wed Mar 22, 2017 21:34:36: CPU status - IN RESET
Wed Mar 22, 2017 21:34:36: CPU status OK
Wed Mar 22, 2017 21:34:36: ----- Prepare hardware for Flashloader -----
Wed Mar 22, 2017 21:34:37: 0x40000014=00000011
Wed Mar 22, 2017 21:34:38: Loaded debugee: D:\temp\sdk-ameba1-v3.4b3_without_NDA\project\realtek_ameba1_va0_example\EWARM-RELEASE7.8\..\..\..\component\soc\realtek\8195a\misc\iar_utility\common\
flashloader\FlashRTL8195aMP.out
Wed Mar 22, 2017 21:34:38: Target reset
Wed Mar 22, 2017 21:34:40: Unloaded macro file: D:\temp\sdk-ameba1-v3.4b3_without_NDA\project\realtek_ameba1_va0_example\EWARM-RELEASE7.8\..\..\..\component\soc\realtek\8195a\misc\iar_utility\common\
flashloader\FlashRTL8195aMP.mac
Wed Mar 22, 2017 21:34:40: Loaded macro file: D:\temp\sdk-ameba1-v3.4b3_without_NDA\project\realtek_ameba1_va0_example\EWARM-RELEASE7.8\..\..\..\component\soc\realtek\8195a\misc\iar_utility\common\
flashloader\FlashRTL8195aMP.mac
Wed Mar 22, 2017 21:34:40: ----- Prepare hardware for Flashloader -----
Wed Mar 22, 2017 21:34:41: 0x40000014=00000021
Wed Mar 22, 2017 21:34:42: Loaded debugee: D:\temp\sdk-ameba1-v3.4b3_without_NDA\project\realtek_ameba1_va0_example\EWARM-RELEASE7.8\..\..\..\component\soc\realtek\8195a\misc\iar_utility\common\
flashloader\FlashRTL8195aMP.out
Wed Mar 22, 2017 21:34:43: Target reset
Wed Mar 22, 2017 21:35:04: Unloaded macro file: D:\temp\sdk-ameba1-v3.4b3_without_NDA\project\realtek_ameba1_va0_example\EWARM-RELEASE7.8\..\..\..\component\soc\realtek\8195a\misc\iar_utility\common\
flashloader\FlashRTL8195aMP.mac
Wed Mar 22, 2017 21:35:04: Downloaded D:\temp\sdk-ameba1-v3.4b3_without_NDA\project\realtek_ameba1_va0_example\EWARM-RELEASE7.8\Debug\Exe\application.axf to flash memory.
Wed Mar 22, 2017 21:35:04: Loaded macro file: D:\temp\sdk-ameba1-v3.4b3_without_NDA\project\realtek_ameba1_va0_example\EWARM-RELEASE7.8\..\..\..\component\soc\realtek\8195a\misc\iar_utility\common\
preload.mac
Wed Mar 22, 2017 21:35:04: Loaded macro file: D:\temp\sdk-ameba1-v3.4b3_without_NDA\project\realtek_ameba1_va0_example\EWARM-RELEASE7.8\..\..\..\component\soc\realtek\8195a\misc\iar_utility\common\dram\
common.mac
Wed Mar 22, 2017 21:35:04: User Preload....
Wed Mar 22, 2017 21:35:04: driver type CMSIS-DAP or I-JET
Wed Mar 22, 2017 21:35:05: Loaded macro file: D:\temp\sdk-ameba1-v3.4b3_without_NDA\project\realtek_ameba1_va0_example\EWARM-RELEASE7.8\..\..\..\component\soc\realtek\8195a\misc\iar_utility\common\dram\
EM6A6165TS_7G.mac
Wed Mar 22, 2017 21:35:12: Loaded debugee: D:\temp\sdk-ameba1-v3.4b3_without_NDA\project\realtek_ameba1_va0_example\EWARM-RELEASE7.8\Debug\Exe\application.axf
Wed Mar 22, 2017 21:35:12: The downloaded program doesn't seem to match the expected memory layout of the target system:
Wed Mar 22, 2017 21:35:12: Some SFRs are placed outside known memory areas, or in memory areas designated as read-only or as RAM:
Wed Mar 22, 2017 21:35:12:   DFSR @ 0xE000ED30, 32 bits
Wed Mar 22, 2017 21:35:12:   DHCSR @ 0xE000EDF0, 32 bits
Wed Mar 22, 2017 21:35:12:   DCRSR @ 0xE000EDF4, 32 bits
Wed Mar 22, 2017 21:35:12:   DCRDR @ 0xE000EDF8, 32 bits
Wed Mar 22, 2017 21:35:12:   DEMCR @ 0xE000EDFC, 32 bits
Wed Mar 22, 2017 21:35:12:   and more...
Wed Mar 22, 2017 21:35:12: Memory is specified as follows:
Wed Mar 22, 2017 21:35:12:   0x00000000 - 0x003FFFFF  RAM
Wed Mar 22, 2017 21:35:12:   0x10000000 - 0x1FFFFFFF  RAM
Wed Mar 22, 2017 21:35:12:   0x30000000 - 0x30FFFFFF  RAM
Wed Mar 22, 2017 21:35:12:   0x40000000 - 0x41FFFFFF  RAM
Wed Mar 22, 2017 21:35:12:   0x42000000 - 0x43FFFFFF  RAM
Wed Mar 22, 2017 21:35:12:   0xE0000000 - 0xFFFFFFFF  RAM
Wed Mar 22, 2017 21:35:12: SFRs range from 0xE0000000 to 0xE00FFFFF
Wed Mar 22, 2017 21:35:12: LowLevelReset(hardware, delay 0)
Wed Mar 22, 2017 21:35:12: LowLevelReset(hardware, delay 1)
Wed Mar 22, 2017 21:35:12: LowLevelReset(software, delay 200)
Wed Mar 22, 2017 21:35:12: LowLevelReset(hardware, delay 0)
Wed Mar 22, 2017 21:35:12: LowLevelReset(hardware, delay 1)
Wed Mar 22, 2017 21:35:12: LowLevelReset(software, delay 200)
Wed Mar 22, 2017 21:35:12: LowLevelReset(system, delay 200)
Wed Mar 22, 2017 21:35:12: CPU status - IN RESET
Wed Mar 22, 2017 21:35:12: CPU status OK
Wed Mar 22, 2017 21:35:12: LowLevelReset(hardware, delay 1)
Wed Mar 22, 2017 21:35:12: Download completed.
Wed Mar 22, 2017 21:35:12: LowLevelReset(software, delay 200)
Wed Mar 22, 2017 21:35:13: Target reset
Wed Mar 22, 2017 21:35:13: INFO: Configuring trace using 'SWO,ETB' setting ...
Wed Mar 22, 2017 21:35:13: Probe: ConnectSpec='MBED CMSIS-DAP::7-EB1EE0D-0-0000'.
Wed Mar 22, 2017 21:35:13: Trace: Using detected ETMv3CM at address 0xe0041000
Wed Mar 22, 2017 21:35:13: Trace: Access to detected ETMv3CM(architecture=3.5) initialized (CONF=0x8c842000, CTRL=0xc10, IDR=0x4114f253)
Wed Mar 22, 2017 21:35:13: Probe: ConnectSpec='MBED CMSIS-DAP::7-EB1EE0D-0-0000'.
Wed Mar 22, 2017 21:35:13: INFO: SWO trace mode is not supported by the probe (use I-jet/I-jet-Trace probe) - trace is disabled.
Wed Mar 22, 2017 21:35:13: User Setup....
Wed Mar 22, 2017 21:35:13: LowLevelReset(hardware, delay 1)
Wed Mar 22, 2017 21:35:14: Macro '__load_dram_param' already defined in D:\temp\sdk-ameba1-v3.4b3_without_NDA\project\realtek_ameba1_va0_example\EWARM-RELEASE7.8\..\..\..\component\soc\realtek\8195a\
misc\iar_utility\common\dram\EM6A6165TS_7G.mac; definition found in D:\temp\sdk-ameba1-v3.4b3_without_NDA\project\realtek_ameba1_va0_example\EWARM-RELEASE7.8\..\..\..\component\soc\realtek\8195a\misc\
iar_utility\common\dram\EM6A6165TS_7G.mac ignored
Wed Mar 22, 2017 21:35:14: Loaded macro file: D:\temp\sdk-ameba1-v3.4b3_without_NDA\project\realtek_ameba1_va0_example\EWARM-RELEASE7.8\..\..\..\component\soc\realtek\8195a\misc\iar_utility\common\dram\
EM6A6165TS_7G.mac
Wed Mar 22, 2017 21:35:14: There were 4 warnings during the initialization of the debugging session.

sean 回答了