Hello,
I am working on DA14681 development board - basic and trying to get RTT work.
I tried the ble_multi_link and peripherals_demo and I was able to get printf work with UART on COM port.
然后我试着freertos_rtt例子,”#define CONFIG_RTT' in custom_config_qspi.h.
After compiling and programmed with program_qspi_jtag_win, I connected the board using J-link Commander (v6.20a, parameter: CORTEX-M0, SWD, 4000Hz). In the J-link commander terminal, it showed:
================================================
Connecting to target via SWD
Found SW-DP with ID 0x0BB11477
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x04770021)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410CC200. Implementer code: 0x41 (ARM)
Found Cortex-M0 r0p0, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
Cortex-M0 identified.
J-Link>
================================================
Then I opened J-Link RTT viewer (v6.20a) and selected connect existing session with auto reconnect on. I saw following message in RTT viewer:
================================================
0> SEGGER J-Link V6.20a - Real time terminal output
0> SEGGER J-Link OB-SAM3U128 V1.0, SN=480059040
0> Process: JLink.exe
================================================
But I didn't see it prints the "#" characters.
Is there anything wrong with my procedure? Is there any setting do I need to change to make RTT work? Thanks.
Hi xiaojie,
Please for proper setup checkUM-B-044 "DA1468x Software Platform Reference" at pages 159-161from Documents tab at software Development Kit Section.
Note: For this demo code it is not needed to make any stack/heap size changes.
After that you should connect to J-Link RTT Viewer using the following configurations.
BR,
STS_Dialog.
Hello STS_Dialog,
Thanks a lot for your reply. I am able to get SystemView work and have output from RTT Viewer based on the information you provided.
I have another questions regarding this, in my eclipse welcome page, I don't see SystemViewer icon like the one showed in Figure.66 of the document you mentioned. Could you please tell me how to add it? Thanks.
Hi,
As far as your last query is concerned, please try to delete the.metadata在您保存SDK的目录中找到的文件夹。通过该动作,SmartSnippets Studio将其状态从内存中删除,并重新打开SmartSnippets Studio后,您将被要求再次设置它(正如您第一次所做的那样)。如果这不起作用,我会在我有其他事情建议的时候回到你身边(我已经要求我们的SDK团队和我等待他们的回复)
BR,
STS_Dialog.
Hello STS_Dialog,
I tried to delete the .metadata folder but still don't see Systemviewer button in the welcome page. Thanks.
Hi xiaojie,
Set as a directory of the created workspace a path that is located in the SDK itself (the .metadata folder should be inside the DA1468x_DA15xxx_SDK_1.0.10.1072 folder) and as soon as you open this file you should see the .metadata, binaries, config and all the rest of the folders of the SDK.
Thanks STS_dialog
Hi STS_dialog,
I deleted old .metadata folder in my workspace folder and copied config/ folder from SDK folder to my workspace folder. Now I can see Systemviewer button. Thanks a lot for your help.
Xiaojie
Hi Dialogue,
你有da14581的相应配置吗?看起来DA14581应该支持RTT,也适用于使用Cortex-M0?
Thanks for your attention,
uta_lc
嗨Uta_lc,
Well, on the 58x family the RTT printing is not officially supported, but from a quick test on the blinky project i could include the proper file of the RTT module (SEGGER_RTT.h and SEGGER_RTT.c) invoke the SEGGER_RTT_WriteString(0, "test\n"); and opening the RTT_Viewer and by providing to the RTT Control Block the proper address (check from the map file generated when you build the project) i could print data on the RTT_Viewer.
Thanks MT_dialog