Switch from DA14680 to DA14682

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support。We’ll be fixing bugs / optimising the searching and tagging over the coming days.
16 posts / 0 new
Last post
Ghschwab.
Offline
Last seen:6 months 3 weeks ago
Joined:2016-07-25 10:54
Switch from DA14680 to DA14682

Hi,

for a slight redesign of an existing project, we wanted to switch to DA14682 from DA14680. First, I tried to program the hardware from the existing SmartSnippets Studio (v1.6.3.981) with SDK 1.0.10. As I received errors while trying to program, I downloaded the newer SDK (1.0.14) and imported the corresponding scripts. The first time I tried to program, it showed the device selection, and after selecting the correct processor, I was able to program the device. However, when trying to debug the project, I always get stuck in the reset handler.

当试图程序和调试旧设备(DA14680), I can't get the device selection to come up. The script 'program_qspi_config.bat' can be found under the scripts project, but it does not appear under external tools.

我还尝试使用更新版本的SmartSnippets Studio(v2.0.14.1748),但我无法让项目编译在这里。

My questions are:

- Do I need the newer SDK to program and debug the DA14682?

- How can I get the device selection for the programming script to come up?

- Do I need the newer version of SmartSnippets to work with the DA14682?

Thank you,

Gunther Schwab

Device:
PM_Dialog
Offline
Last seen:16 hours 56 min ago
Staff
Joined:2018-02-08 11:03
Hi ghschwab,

Hi ghschwab,

For the DA1468x product family, theDA1468x SDK1.0.14.1081andSmartSnippets Studio V1.6.3 for Windows OSare recommended to be used.

Did you import the python scripts on your workspace? Would it be possible to share some screenshots, so that I can understand your configuration?

You could also follow theUM-B-047: DA1468x Getting Started with the Development Kit

谢谢,PM_Dialog

Ghschwab.
Offline
Last seen:6 months 3 weeks ago
Joined:2016-07-25 10:54
Hi,

Hi,

感谢您的回答!

I am attaching screenshots to show the IDE version and the SDK.

I had only imported "scripts", not "python scripts". The necessary scripts do appear now. However, when trying to program the processor, I get the message that A file in the JLink path cannot be found. I didn't really change anything there. How do I set the JLink path?

谢谢,

Gunther

Attachment:
PM_Dialog
Offline
Last seen:16 hours 56 min ago
Staff
Joined:2018-02-08 11:03
Hi ghschwab,

Hi ghschwab,

Do you have a custom board, or you are using any of our DKs?

Could you please re-install the tool and try it with a clean SDK directory? Please delete the .metadata folder too.

谢谢,PM_Dialog

Ghschwab.
Offline
Last seen:6 months 3 weeks ago
Joined:2016-07-25 10:54
Hi,

Hi,

thank you for your response.

与此同时,我重新安装了所有内容并从干净的板岩开始。我能够导入项目并立即编译。

I am also able to program the device, but when trying to debug it, it hangs in the Reset Handler in the file "startup_AMRCM0.S". We have a custom board.

Do you have any recommendations what I could try?

该软件用DA14680在先前版本的板上工作。除了编程时选择正确的芯片,是否有其他步骤可以切换到DA14682?

Thank you,

Gunther

PM_Dialog
Offline
Last seen:16 hours 56 min ago
Staff
Joined:2018-02-08 11:03
Hi ghschwab,

Hi ghschwab,

If you run the project without the debugger attached, is it running properly? Are you using any of the SDK examples?

Would it be possible to share a screenshot?

谢谢,PM_Dialog

Ghschwab.
Offline
Last seen:6 months 3 weeks ago
Joined:2016-07-25 10:54
Hi,

Hi,

it does not seem to be running completely right, as I can't see the bluetooth device advertising.

On the previous hardware wir the DA14680, it works fine.

I am not using an SDK example, as this is our custom hardware, and we had the software running fine on the previous hardware.

Are there any other steps necessary to switch to the DA14682?

I am attaching a screenshot of the debugger.

谢谢,

Gunther

Attachment:
PM_Dialog
Offline
Last seen:16 hours 56 min ago
Staff
Joined:2018-02-08 11:03
Hi ghschwab,

Hi ghschwab,

Could you please if the HW designs guidelines documents (link is provided below) had been followed when the schematics/PCB was being developed, as this sounds like a hardware related issue?

此外,您是否构建了DA14682配置项目?

//www.wsdof.com/sites/default/files/an-b-061_da1468x_application_hardware_design_guidelines_v1.9.pdf

谢谢,PM_Dialog

Ghschwab.
Offline
Last seen:6 months 3 weeks ago
Joined:2016-07-25 10:54
Hi,

Hi,

I will check the hardware guidelines once again, but I assume they were followed, as everything worked fine on the previous hardware.

I checked the build configurations of a sample project (peripherals_demo) for both the DA14680 and the DA14682, but I can't find a difference. Can you maybe point me to the adjustments that need to be made to build for the DA14682?

谢谢,

Gunther

Ghschwab.
Offline
Last seen:6 months 3 weeks ago
Joined:2016-07-25 10:54
Hi,

Hi,

we also went through the hardware guidelines again, we are sure that we followed everything. I am attaching a excerpt from our circuit diagram, could you please check if you find anything thats wrong?

谢谢,

Gunther

Attachment:
PM_Dialog
Offline
Last seen:16 hours 56 min ago
Staff
Joined:2018-02-08 11:03
Hi ghschwab,

Hi ghschwab,

Let me check the schematic and I’ll get back to you shortly.

谢谢,PM_Dialog

Ghschwab.
Offline
Last seen:6 months 3 weeks ago
Joined:2016-07-25 10:54
Hi,

Hi,

I have an update. I came across the DA14681 to DA14683 Porting Guide and followed the steps. Also, I was able to verify that the same issue appeared on a standard daughter board, so it is not hardware related.

I was able to make the changes as described in the Porting Guide, but now the project won't build. Here are the errors:

Building target: BIAvi+_device.elf
Invoking: Cross ARM C Linker
C:\Dialog_SDKS\DA1468x_DA15xxx_SDK_1.0.14.1081\DA1468x_DA15xxx_SDK_1.0.14.1081\sdk\interfaces\ble_stack\DA14683-00-Debug\libble_stack_da14683_00.a(rom_patch.o): In function `patched_hci_command_handler':
/home/build/workspace/sdk680/release_build_manual/artifacts/tmp/blex_stack/sdk/interfaces/ble_stack/da14683-00-release/../src/rom_patch/rom_patch.c:1721:未定义的参考`hci_command_handler'
。/sdk/ble/src/stack/plf/black_orca/src/arch/main/ble/arch_main.o: In function `ble_platform_initialization':
C:/Dialog_SDKS/DA1468x_DA15xxx_SDK_1.0.14.1081/DA1468x_DA15xxx_SDK_1.0.14.1081/sdk/interfaces/ble/src/stack/plf/black_orca/src/arch/main/ble/arch_main.c:931: undefined reference to `BLE_TX_DESC_DATA_USER'
C:/Dialog_SDKS/DA1468x_DA15xxx_SDK_1.0.14.1081/DA1468x_DA15xxx_SDK_1.0.14.1081/sdk/interfaces/ble/src/stack/plf/black_orca/src/arch/main/ble/arch_main.c:931: undefined reference to `BLE_TX_DESC_CNTL_USER'
C:/Dialog_SDKS/DA1468x_DA15xxx_SDK_1.0.14.1081/DA1468x_DA15xxx_SDK_1.0.14.1081/sdk/interfaces/ble/src/stack/plf/black_orca/src/arch/main/ble/arch_main.c:931: undefined reference to `LLM_LE_ADV_DUMMY_IDX'
C:/dialog_sdks/da1468x_da15xxx_sdk_1.0.14.1081/da1468x_da15xxx_sdk_1.0.14.1081/sdk/interfaces/ble/src/stack/plf/clack_orca/src/arch/main/ble/arch_main.c:931:未定义引用给`llm_le_scan_con_req_adv_dir_idx'
C:/Dialog_SDKS/DA1468x_DA15xxx_SDK_1.0.14.1081/DA1468x_DA15xxx_SDK_1.0.14.1081/sdk/interfaces/ble/src/stack/plf/black_orca/src/arch/main/ble/arch_main.c:931: undefined reference to `LLM_LE_SCAN_RSP_IDX'
C:/dialog_sdks/da1468x_da15xxx_sdk_1.0.14.1081/da1468x_da15xxx_sdk_1.0.14.1081/sdk/interfaces/ble/src/stack/plf/black_orca/src/arch/main/ble/arch_main.c:931:未定义的参考`llm_le_adv_idx'
C:/Dialog_SDKS/DA1468x_DA15xxx_SDK_1.0.14.1081/DA1468x_DA15xxx_SDK_1.0.14.1081/sdk/interfaces/ble/src/stack/plf/black_orca/src/arch/main/ble/arch_main.c:931: undefined reference to `rom_hci_cmd_desc_root_tab'
。/sdk/ble/src/stack/plf/black_orca/src/arch/main/ble/jump_table.o:(.rodata.rom_func_addr_table_var+0x10c): undefined reference to `llc_le_length_conn_init_func'
。/sdk/ble/src/stack/plf/black_orca/src/arch/main/ble/jump_table.o:(.rodata.rom_func_addr_table_var+0x128): undefined reference to `smpc_public_key_exchange_start_func'
。/sdk/ble/src/stack/plf/black_orca/src/arch/main/ble/jump_table.o:(.rodata.rom_func_addr_table_var+0x12c): undefined reference to `smpc_dhkey_calc_ind_func'
./sdk/ble/src/stack/plf/black_orca/src/arch/main/ble/jump_table.o::(.rodata.rom_func_addr_table_var+0x130):未定义的参考`smpm_ecdh_key_create_func'
collect2.exe:错误:LD返回1个退出状态
制作:*** [biavi + _device.elf]错误1

What can I do about this?

谢谢,

Gunther

Ghschwab.
Offline
Last seen:6 months 3 weeks ago
Joined:2016-07-25 10:54
Hi,

Hi,

another update:

after selecting the correct rom.symbols file (not described in the guide), the project now compiles.

However, it still shows the exact same behaviour as in the beginning, it stops in the reset handler, both on our custom hardware and the daughter board. There still must be a configuration step missing.

PM_Dialog
Offline
Last seen:16 hours 56 min ago
Staff
Joined:2018-02-08 11:03
Hi ghschwab,

Hi ghschwab,

Thanks for the update. This sounds like a software related issue. Could you please give a try with one of the SDK1 examples? Are you able to replicate this? Additionally, could you please share a screenshot showing where the code freezes in the bug mode?

谢谢,PM_Dialog

Ghschwab.
Offline
Last seen:6 months 3 weeks ago
Joined:2016-07-25 10:54
Hi,

Hi,

I am able to get the peripherals_demo to run on the Dialog daughter board and our hardware. However, the pxp_reporter demo does not compile (see attached image).

The error message is:

Building target: pxp_reporter.elf
Invoking: Cross ARM C Linker
c:/diasemi/smartsnippetsstudio/gcc/4_9-2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot open linker script file C:\Users\GHSchwab.GFT\workspace_SmartSnippets_SDK1.0.14\pxp_reporter/DA14683-00-Debug_QSPI/mem.ld: Invalid argument

每次都是相同的,pureinals_demo works,pxp_reporter不编译,我们自己的软件将编译但未正确运行。

I am attaching a screenshot where our our app is stuck in the debugger.

I would be happy to send you a copy of the project, but it is too bit. Is there another way to send it to you?

谢谢,

Gunther

Attachment:
PM_Dialog
Offline
Last seen:16 hours 56 min ago
Staff
Joined:2018-02-08 11:03
Hi ghschwab,

Hi ghschwab,

此错误的最可能原因是因为安装程序未生成链接器脚本以使项目构建完成。在发生实际构建之前,SmartSnippets Studio(SST)应从MEM.LD.H文件生成链接器脚本,并在“构建文件夹中构建一个MEM.LD文件”。在您的情况下,上述文件永远不会构建,因此该工具无法找到mem.ld文件。这可能是由于几个原因,就像makefile.targets文件不在项目目录中,或缺少的配置等。似乎SSS的安装具有问题,或者您没有正确导入项目。请注意,SDK与SSS一起使用框中而无需任何其他配置。由于您已正确安装该工具,因此所有项目都应在框中编译。此外,您已看到的这种错误可能与您的工作区有关。我建议您按照以下步骤操作:

  1. Uninstall completely SSS and re-install it. Please follow step-by-step the section 1 SmartSnippets™ Installation in theUM-B-057 SmartSnippets Studio User Manual
  2. Please move the SDK out the C:/Users location – We have seen this cause issues with administrative rights. For example, create a fresh SDK directory located without any spaces: C:\Dialog\DA1468x_DA15xxx_SDK_1.0.14.1081
  3. 由于它是一个新的SDK目录,根文件夹不应包含.metadata。如果存在,请删除.metadata。
  4. Open the Smart Snippets Studio again and select a generic workspace
  5. The Project Explorer should be blank.
  6. Right click into the Project Explorer and navigate to:
    1. Import…
    2. General / Existing Projects into Workspace
    3. Press Next>
    4. From the Select root directory browse to C:\Dialog\ DA1468x_DA15xxx_SDK_1.0.14.1081
    5. Deselect all the projects and select only the prox_reporter and the python_scripts. Then press the finish button.
  7. 构建DA14682的项目 - (da14683-00-debug-qspi脚本)。
  8. When the build is finished, run the program_qspi_config script.
  9. Erase the QSPI Flash - erase_qspi_xxxx (through jtag or uart) script.
  10. Program the QSPI flash - program_qspi_xxxx (through jtag or uart) script.

谢谢,PM_Dialog