⚠️
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.
21 posts / 0 new
Last post
bobspam@free.fr.
Offline
最后一次露面:2个月3周前
乔ined:2018-06-20 08:07
DA14683 - 16MHz时钟不会启动

你好

我正在使用DA14683开发硬件板,我刚从生产中收到了第一个原型。
我设法使用Segger J-Link EDU基于Free_RTOS Retrarget示例代码启动二进制文件。
引导顺序正确执行,直到:

sys_clock_mgr.c:397
而(!hw_cpm_is_xtal16m_started()){//块,直到xtal16m开始

我designed my hardware board using
IQD 064296.
- 16MHz.
- ESR 70 Ohms
- Load Capacitance 8pF (2pF less than recommended values, but still in the range of 4-10pF)
- 频率公差20ppm
- Frequency Stability 20ppm
- 驱动级别100μW
使用对称的4.1mm长度接线,Quartz已焊接到CPU的可能性。

你能给我一些程序来调试步骤16MHz时钟,所以我可以弄清楚SDK的默认设置是否适合我?

先感谢您

关键词:
设备:
PM_DIALOG.
Offline
最后一次露面:1天5小时前
Staff
乔ined:2018-02-08 11:03
Hi bobspam@free.fr,

Hibobspam@free.fr.,

您可以尝试使用外部水晶振荡器,以确保您使用的XTAL正常工作吗?此外,我建议您使用默认修剪值并检查引导序列是否正确启动。如果您在SDK中完成了任何修改,请您告诉我吗?

谢谢,PM_DIALOG.

bobspam@free.fr.
Offline
最后一次露面:2个月3周前
乔ined:2018-06-20 08:07
你好

你好

Thank you for your first answer.

我am trying to run the freertos_retarget unmodified. It is not so much dependant to external hardware so it should allow me to validate minimal behavior of the DA14683 I am using. My hardware design is very basic with two exceptions : all external IO are 3.3V (flash and peripherals).

VBAT通过JTAG探针在测试期间的3.7V下测量。

我can not use external clock. It is not wired on my PCB. I tried to touch pads of the oscillator using a scope but internal capacitance of the probe is of the same order of magnitude than the quartz itself so I am pretty sure that it should produce erratic results.

我did not yet started to change trim values. Considering that the oscillator I am using is 2pF below the recommended 10pF, the trimming function should be very useful to get something stable and accurate.

  • 我在Windows下尝试了Eclipse Env,使用最新的SDK用于DA14683而无需修改
    • JTAG env need to be reconfigured so my hardware is recognized. In particular hardware reset are sent very often and the DA1468x cut link to the JTAG.
    • 首先使用J-Link指挥官。我能开始properly the j-link env and thus maintain gdb server opened.
    • 之后,我能够在HW_CPM_IS_IS_XXTAL16M_STARTED的无限循环中阻止系统阻止的HW_WATCHDOG_HANDLE_INT中运行应用程序
  • 我还尝试了使用exgger臭氧调试的新版本的Linux编译应用程序
    • the overall behaviour is more straightforward without eclipse in the equation.
    • 我did not set the 0xdeadbeef at the beginning of the stack but ozone manage to catch breakpoints at the beginning of startup assembly code.
    • code execute until it waits for hw_cpm_is_xtal16m_started
    • 在这个conf中,我试图避免验证xtal16m,从未在系统init中结束,但是freertos未启动其调度程序,并且没有达到任务中的断点,这意味着系统无法正常启动系统。
  • 我检查了我的32kcristal。遗憾的是,载荷电容为12.5pf,而接受范围为6-9pf。
    • 我tried to use LP_CLK_RCX config but the result is the same.
  • 我finally modified SDK to use 32k RC and 16M RC for my prototype by removing all calibration related features.
    • 我reached the freertos tasks in this way but troubles continues with peripherals init.

你能告诉我吗?
- workaround so I use only RC clocks
- 两个时钟的硬件设计要求,所以我准备我的运行2?

Thank you

PM_DIALOG.
Offline
最后一次露面:1天5小时前
Staff
乔ined:2018-02-08 11:03
Hi bobspam@free.fr,

Hibobspam@free.fr.,

我f I understood correctly, you mentioned that you are using out of specs crystal oscillators. Could you please let me know which crystal oscillators are you using? The post possible reason for your issue is due to the XTALs. In order to use the RC16, you should change the sysclk_XTAL16M input of cm_sys_clk_init() and cm_sys_clk_set() in system_init() function with sysclk_RC16. Although, the code gets stack before the main() functions, so using the RC16 I suppose that will not fix your issue. By the way you could check it and let me know.

谢谢,PM_DIALOG.

bobspam@free.fr.
Offline
最后一次露面:2个月3周前
乔ined:2018-06-20 08:07
你好

你好

    我am currently using
  • IQD 064296,16MHz,8PF
  • IQD 009678,32.768KHz,12PF
    我just ordered
  • ECS-160-10-33-AGM-TR, 16MHz, 10pF
  • IQD 009709,32.768KHz,7pf

替换它们。

我将尝试开始更改32K石英以查看修剪功能是否能够稳定16MHz / 8PF。如果它没有,那么我也会改变16MHz。

我will keep you informed if I manage to use only RC oscillators. BSP clock init functions are mainly based on 16M clock so I have to look deeper into the code.

Thanks

PM_DIALOG.
Offline
最后一次露面:1天5小时前
Staff
乔ined:2018-02-08 11:03
Hi bobspam@free.fr,

Hibobspam@free.fr.,

Please, keep me in touch and let me know if you have any other issues. If you found any of the above answers useful please mark one of them as accepted.

谢谢,PM_DIALOG.

bobspam@free.fr.
Offline
最后一次露面:2个月3周前
乔ined:2018-06-20 08:07
你好

你好

我managed to change 32k quartz and I do confirm that IQD 009709, 32.768kHz, 7pF works with DA14683.
我仍然没有改变16米石英,结果仍然是一样的。16MHz无法启动。

This quartz is inside the spec so trimming function should be able to stabilize it.

Can you confirm to me that trimming function can be used to compensate the missing 2pF of the 16MHz clock ?
在我的情况下,0x50000002 / clk_freq_trim_reg等于0x200。

先感谢您

bobspam@free.fr.
Offline
最后一次露面:2个月3周前
乔ined:2018-06-20 08:07
你好

你好

你能告诉我吗?that ECS-160-10-33-AGM-TR is working with DA14683 ?

先感谢您

PM_DIALOG.
Offline
最后一次露面:1天5小时前
Staff
乔ined:2018-02-08 11:03
Hi bobspam@free.fr,

Hibobspam@free.fr.,

为延迟道歉。你能澄清你的问题吗?问题是如果修剪值是正确的或者如何更改修剪值?关于ECS-160-10-33-AGM-TR XTAL的第二个问题,我们从未在我们的设计中使用这种类型的晶体振荡器。根据其规格,10P负载电容会很好,但ESR位于高侧,最大驱动器电源位于边缘。我建议您从DA14683数据表检查16MHz晶体振荡器的推荐操作条件。您将看到ECS-160-10-33-AGM-TR在我们规范的边缘,但这可能不是一个问题,这种类型的XTAL可能与DA14683合作。此外,您可以看一下我们在开发板中使用的晶体振荡器。

谢谢,PM_DIALOG.

bobspam@free.fr.
Offline
最后一次露面:2个月3周前
乔ined:2018-06-20 08:07
你好

你好

我have three boards :
- 与IQD 064296,16MHz,8PF的一个
- two with ECS-160-10-33-AGM-TR, 16MHz, 10pF

None of them works using default BSP settings.

我的问题可能是解决这个问题的一些明智的建议,因为我正在失去大量时间(即设置/石英参考)

我can not use the RC16 as a "rescue" because UART signals are not timed properly and my application does not work.

先感谢您

bobspam@free.fr.
Offline
最后一次露面:2个月3周前
乔ined:2018-06-20 08:07
我took time to compare

我took time to compare various quartz and I do not understand your comment stating that the quartz is on the edge of the specification.

请查看有关Quartz的一些详细信息。ECS-160-10-33-AGM-TR规范非常接近USB演示板上的7M-16.000Meeq-T。特别是它们都有100μW的最大PDRV(而DS V2.2的注释23指定它应该是最小值)

先感谢您

bobspam@free.fr.
Offline
最后一次露面:2个月3周前
乔ined:2018-06-20 08:07
一个小细节:1v4不是

一个小细节:1v4不是powered up. 0V.
我t seems that the problem is not in the XTAL part !

To be continued...

PM_DIALOG.
Offline
最后一次露面:1天5小时前
Staff
乔ined:2018-02-08 11:03
Hi bobspam@free.fr,

Hibobspam@free.fr.,

我强烈建议您查看自定义板的所有电源轨道。可能,晶体振荡器可能不是导致您的董事会无法正常工作的原因。此外,您的董事会的一般审查将非常有帮助,以便清除事项.2

谢谢,PM_DIALOG.

bobspam@free.fr.
Offline
最后一次露面:2个月3周前
乔ined:2018-06-20 08:07
你好,

你好,

Unfortunately, none of my 3 boards have all power rails available.

我only have one that have 1.4V available and I do confirm that IQD 064296 16MHz, 8pF is working.
The oscillation is stable with 250mV amplitude. DC offset of 350mV. It is not a perfect sinus waveform.
我will have to compare with demo board to have a better idea of its compliance with the DA14683.

Thank you for your help.

PM_DIALOG.
Offline
最后一次露面:1天5小时前
Staff
乔ined:2018-02-08 11:03
Hi bobspam@free.fr,

Hibobspam@free.fr.,

我t would be worth to compare your custom board with our Dev-Kits. If you have any other follow-up questions, please create a new forum thread.

谢谢,PM_DIALOG.

bobspam@free.fr.
Offline
最后一次露面:2个月3周前
乔ined:2018-06-20 08:07
你好

你好

您能否请向我确认注释23在D14683设备规范V2.2中的重要性,说明石英的PDRV应至少为100μW?

The USB demo board have a quartz that is maximum 100µW.

先感谢您

PM_DIALOG.
Offline
最后一次露面:1天5小时前
Staff
乔ined:2018-02-08 11:03
Hi bobspam@free.fr,

Hibobspam@free.fr.,

根据DA14683数据表,您可以选择可以处理至少100μW的驱动级别的晶体。

谢谢,PM_DIALOG.

bobspam@free.fr.
Offline
最后一次露面:2个月3周前
乔ined:2018-06-20 08:07
你好

你好

我刚刚收到了我的三张电路板。

我do confirm that
- IQD 009709,32.768KHz,7PF
and
- IQD 064296, 16MHz, 8pF
- ECS-160-10-33-AGM-TR,16MHz,10PF

DA14683还可以。

PM_DIALOG.
Offline
最后一次露面:1天5小时前
Staff
乔ined:2018-02-08 11:03
Hi bobspam@free.fr,

Hibobspam@free.fr.,

Glad that your new designed boards are full functional and thanks for letting me know.

谢谢,PM_DIALOG.

斯巴达
Offline
最后一次露面:1 year 1 month ago
乔ined:2016-03-14 14:22
你好,对话框专家。我

你好,对话框专家。我received daughter board on DA14683. Try to implement ble_adv example. When try to debug I see that ble_peripherial_start stucks. What can be the reason of that.

PM_DIALOG.
Offline
最后一次露面:1天5小时前
Staff
乔ined:2018-02-08 11:03
Hi Sparta,

Hi Sparta,

Could you please run it in debug mode and indicate where the code gets stuck? Also, I would suggest you to create a new forum post, as this one is not related with your issue.

谢谢,PM_DIALOG.