DA14683 - 16MHz Clock does not start

⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程https://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
21个帖子/ 0新
最后一篇
bobspam@free.fr
离线
Last seen:2 months 2 weeks ago
加入:2018-06-20 08:07
DA14683 - 16MHz Clock does not start

Hello

一世am developing a hardware board using DA14683 and I just received a first prototype from production.
一世managed to start a binary file using SEGGER j-link EDU up to the Cortex-M based on free_rtos retarget sample code.
The boot sequence is executed properly until :

sys_clock_mgr.c:397
while (!hw_cpm_is_xtal16m_started()) { // Block until XTAL16M starts

我设计了我的硬件板
一世QD 064296
- 16MHz
- ESR 70欧姆
- 负载电容8pf(2pf小于推荐值,但仍然在4-10pf的范围内)
- Frequency Tolerance 20ppm
- 频率稳定20ppm
- Drive Level 100µW
The Quartz has been soldered as close a possible to the CPU using symmetric 4.1mm length wiring.

Can you give me some procedure to debug step by step the 16MHz clock so I can figure out if default settings of the SDK are appropriate for me ?

谢谢in advance

Device:
PM_Dialog
离线
Last seen:2 hours 41 min ago
职员
加入:2018-02-08 11:03
嗨bobspam@free.fr,

你好bobspam@free.fr

Can you please try to use an external crystal oscillator in order to make sure that the XTAL that you are using is working correctly? Also, I would suggest you to use the default trim values and check if the boot sequence starts correctly. Can you please let me know if you have done any modifications in the SDK?

谢谢那PM_Dialog

bobspam@free.fr
离线
Last seen:2 months 2 weeks ago
加入:2018-06-20 08:07
Hello

Hello

谢谢你的第一个答案。

我试图运行Freertos_Retarget未修改。它不是依赖于外部硬件,因此它应该允许我验证我正在使用的DA14683的最小行为。我的硬件设计非常基本,两个例外:所有外部IO都是3.3V(闪光灯和外设)。

VBAT is measured by the JTAG probe at 3.7V during the tests.

我不能使用外部时钟。它不在我的PCB上有线。我试图使用范围触摸振荡器的垫,但探头的内部电容与石英本身相同的数量级,所以我非常确定它应该产生不稳定的结果。

我尚未开始更改修剪值。考虑到振荡器我使用的是2PF在推荐的10PF下方,修剪功能应该非常有用,以获得稳定和准确的东西。

  • 一世tried Eclipse env under Windows using latest SDK for DA14683 without modification
    • JTAG ENV需要重新配置,以便识别我的硬件。特别是硬件复位经常发送,并且DA1468x切割到JTAG的链接。
    • 首先使用J-Link Commander。我设法正常启动J-Link Env,从而维护GDB服务器打开。
    • After that I am able to run the app step by step and end-up in hw_watchdog_handle_int before system is blocked in the infinite loop of hw_cpm_is_xtal16m_started
  • 一世also tried compiled app under linux using a newer version of GCC debugged using Segger Ozone
    • 在等式中,整体行为更加直接。
    • 我没有在堆栈开头设置0xDeadBeef,但臭氧可以在启动汇编代码的开头捕获断点。
    • 代码执行,直到它等待HW_CPM_IS_XTAL16M_STARTED
    • in this conf, I tried to avoid the verification of XTAL16M that never ends in system init but then the freertos does not start its scheduler and breakpoints in tasks are not reached meaning that the system is not started properly.
  • 一世checked my 32K cristal. It is unfortunately out of spec, Load capacitance is 12.5pF while accepted range is 6-9pF.
    • 我试图使用lp_clk_rcx配置,但结果是相同的。
  • 我终于通过删除所有校准相关的功能来修改SDK以使用32K RC和16M RC进行原型。
    • 我以这种方式达到了Freertos任务,但问题继续使用外围设备init。

Can you please confirm to me
- 解决方法所以我只使用RC时钟
- hardware design requirements for both clocks so I prepare my Run 2 ?

谢谢

PM_Dialog
离线
Last seen:2 hours 41 min ago
职员
加入:2018-02-08 11:03
嗨bobspam@free.fr,

你好bobspam@free.fr

如果我理解正确,您提到您使用的使用规格晶体振荡器。你能告诉我你使用哪个水晶振荡器?您问题的发布可能原因是由于Xtals。要使用RC16,您应该使用sysclk_rc16更改system_init()函数中的cm_sys_clk_init()和cm_sys_clk_set()的sysclk_xxtal16m输入。虽然,代码在main()函数之前堆栈,所以使用RC16我假设不会修复您的问题。顺便说一下,你可以检查它并让我知道。

谢谢那PM_Dialog

bobspam@free.fr
离线
Last seen:2 months 2 weeks ago
加入:2018-06-20 08:07
Hello

Hello

    我目前正在使用
  • 一世QD 064296, 16MHz, 8pF
  • 一世QD 009678, 32.768kHz, 12pF
    我刚订购
  • ECS-160-10-33-AGM-TR,16MHz,10PF
  • 一世QD 009709, 32.768kHz, 7pF

To replace them.

一世will try to start changing the 32k quartz to see if the trimming function is able to stabilize the 16MHz/8pF. If it does not then I will change the 16MHz too.

如果我设法仅使用RC振荡器,我会通知您。BSP时钟Init功能主要基于16M时钟,因此我必须深入了解代码。

谢谢

PM_Dialog
离线
Last seen:2 hours 41 min ago
职员
加入:2018-02-08 11:03
嗨bobspam@free.fr,

你好bobspam@free.fr

拜托,让我保持联系,让我知道是否有其他问题。如果您发现上述任何答案有用请标记其中一个接受。

谢谢那PM_Dialog

bobspam@free.fr
离线
Last seen:2 months 2 weeks ago
加入:2018-06-20 08:07
Hello

Hello

我设法改变了32K Quartz,我确认IQD 009709,32.768KHz,7PF与DA14683一起使用。
一世still did not changed 16M quartz and the result is still the same. 16MHz does not start.

这个石英位于规格内,所以修剪功能应该能够稳定它。

您能否向我确认修剪功能可用于补偿缺少的16MHz时钟的2PF?
一世n my case, the 0x50000002 / CLK_FREQ_TRIM_REG is equal to 0x200.

谢谢in advance

bobspam@free.fr
离线
Last seen:2 months 2 weeks ago
加入:2018-06-20 08:07
Hello

Hello

您能否向我确认ECS-160-10-33-AGM-TR正在使用DA14683?

谢谢in advance

PM_Dialog
离线
Last seen:2 hours 41 min ago
职员
加入:2018-02-08 11:03
嗨bobspam@free.fr,

你好bobspam@free.fr

延迟道歉。你能澄清your question? The question is if the trim value is correct or how you can change the trim value? Regarding your second question for the ECS-160-10-33-AGM-TR XTAL, we have never used this type of crystal oscillator in our designs. According to its specifications, the 10p load capacitance would be good, but the ESR is on the high side and the max drive power is on the edge. I would suggest you to check the recommended operating conditions for the 16MHz crystal oscillator from the DA14683 datasheet. You will see that the ECS-160-10-33-AGM-TR is on the edge of our specification, but this might not be an issue and this type of XTAL might be working with DA14683. Also, you can have a look at the crystal oscillator that we are using in our development boards.

谢谢那PM_Dialog

bobspam@free.fr
离线
Last seen:2 months 2 weeks ago
加入:2018-06-20 08:07
Hello

Hello

我有三张董事会:
- one with IQD 064296, 16MHz, 8pF
- 两个与ECS-160-10-33-AGM-TR,16MHz,10PF

它们都没有使用默认BSP设置。

My question might be some wise advice to solve this issue because I am loosing a lot of time (ie settings / quartz reference)

我不能使用RC16作为“救援”,因为UART信号不是正确定时,我的应用程序不起作用。

谢谢in advance

bobspam@free.fr
离线
Last seen:2 months 2 weeks ago
加入:2018-06-20 08:07
我花时间比较

我花时间比较各种石英,我不了解你的评论,说明石英是在规范的边缘。

Please find attach some details about the quartz. The ECS-160-10-33-AGM-TR specs are very close to the 7M-16.000MEEQ-T used on the USB demo board. In particular they both have a Max Pdrv of 100µW (while note 23 of DS v2.2 specify that it should be a minimum)

谢谢in advance

bobspam@free.fr
离线
Last seen:2 months 2 weeks ago
加入:2018-06-20 08:07
One small detail : 1V4 is not

一个小细节:1V4没有通电。0V。
似乎问题不在XTAL部分中!

待续...

PM_Dialog
离线
Last seen:2 hours 41 min ago
职员
加入:2018-02-08 11:03
嗨bobspam@free.fr,

你好bobspam@free.fr

一世would strongly recommend you to check all the power rails of you custom board. Probably, the crystal oscillator might not be the cause why your board is not working. Also, a general review of your board would be very helpful in order to clear the things out.2

谢谢那PM_Dialog

bobspam@free.fr
离线
Last seen:2 months 2 weeks ago
加入:2018-06-20 08:07
你好,

你好,

不幸的是,我的3个板都没有所有的电源轨。

我只有一个有1.4伏的人,我确实确认IQD 064296 16MHz,8PF正在运作。
振荡具有250mV振幅稳定。直流偏移350mV。这不是一个完美的窦波形。
我必须与演示板进行比较,以更好地遵守其与DA14683的遵守情况。

感谢您的帮助。

PM_Dialog
离线
Last seen:2 hours 41 min ago
职员
加入:2018-02-08 11:03
嗨bobspam@free.fr,

你好bobspam@free.fr

将您的定制栏与我们的Dev-kits进行比较是值得的。如果您有任何其他后续问题,请创建一个新的论坛线程。

谢谢那PM_Dialog

bobspam@free.fr
离线
Last seen:2 months 2 weeks ago
加入:2018-06-20 08:07
Hello

Hello

Can you please confirm to me the importance of Note 23 in D14683 Device Specification v2.2 stating that the Pdrv of the Quartz should be at least 100µW ?

USB演示板具有最大100μW的石英。

谢谢in advance

PM_Dialog
离线
Last seen:2 hours 41 min ago
职员
加入:2018-02-08 11:03
嗨bobspam@free.fr,

你好bobspam@free.fr

According to the DA14683 datasheet, you select a crystal which can handle a drive level of at least of 100µW.

谢谢那PM_Dialog

bobspam@free.fr
离线
Last seen:2 months 2 weeks ago
加入:2018-06-20 08:07
Hello

Hello

一世just received my three boards from production again.

我确认了
- IQD 009709, 32.768kHz, 7pF

- IQD 064296,16MHz,8PF
- ECS-160-10-33-AGM-TR, 16MHz, 10pF

are OK with DA14683.

PM_Dialog
离线
Last seen:2 hours 41 min ago
职员
加入:2018-02-08 11:03
嗨bobspam@free.fr,

你好bobspam@free.fr

很高兴您的新设计板充满了功能性,谢谢让我知道。

谢谢那PM_Dialog

Sparta
离线
Last seen:1年1个月前
加入:2016-03-14 14:22
您好,对话专家。一世

您好,对话专家。我收到了DA14683上的女儿板。尝试实现BLE_ADV example。当尝试调试时,我看到ble_perpherial_start困扰着。什么是可能的原因。

PM_Dialog
离线
Last seen:2 hours 41 min ago
职员
加入:2018-02-08 11:03
嗨斯巴达,

嗨斯巴达,

请在调试模式下运行它,并指出代码卡住的位置?此外,我建议您创建一个新的论坛帖子,因为这一个与您的问题无关。

谢谢那PM_Dialog