你好
我正在使用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的默认设置是否适合我?
先感谢您
设备:
Hibobspam@free.fr.,
您可以尝试使用外部水晶振荡器,以确保您使用的XTAL正常工作吗?此外,我建议您使用默认修剪值并检查引导序列是否正确启动。如果您在SDK中完成了任何修改,请您告诉我吗?
谢谢,PM_DIALOG.
你好
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.
你能告诉我吗?
- workaround so I use only RC clocks
- 两个时钟的硬件设计要求,所以我准备我的运行2?
Thank you
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.
你好
我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
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.
你好
我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。
先感谢您
你好
你能告诉我吗?that ECS-160-10-33-AGM-TR is working with DA14683 ?
先感谢您
Hibobspam@free.fr.,
为延迟道歉。你能澄清你的问题吗?问题是如果修剪值是正确的或者如何更改修剪值?关于ECS-160-10-33-AGM-TR XTAL的第二个问题,我们从未在我们的设计中使用这种类型的晶体振荡器。根据其规格,10P负载电容会很好,但ESR位于高侧,最大驱动器电源位于边缘。我建议您从DA14683数据表检查16MHz晶体振荡器的推荐操作条件。您将看到ECS-160-10-33-AGM-TR在我们规范的边缘,但这可能不是一个问题,这种类型的XTAL可能与DA14683合作。此外,您可以看一下我们在开发板中使用的晶体振荡器。
谢谢,PM_DIALOG.
你好
我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.
先感谢您
我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指定它应该是最小值)
先感谢您
一个小细节:1v4不是powered up. 0V.
我t seems that the problem is not in the XTAL part !
To be continued...
Hibobspam@free.fr.,
我强烈建议您查看自定义板的所有电源轨道。可能,晶体振荡器可能不是导致您的董事会无法正常工作的原因。此外,您的董事会的一般审查将非常有帮助,以便清除事项.2
谢谢,PM_DIALOG.
你好,
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.
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.
你好
您能否请向我确认注释23在D14683设备规范V2.2中的重要性,说明石英的PDRV应至少为100μW?
The USB demo board have a quartz that is maximum 100µW.
先感谢您
Hibobspam@free.fr.,
根据DA14683数据表,您可以选择可以处理至少100μW的驱动级别的晶体。
谢谢,PM_DIALOG.
你好
我刚刚收到了我的三张电路板。
我do confirm that
- IQD 009709,32.768KHz,7PF
and
- IQD 064296, 16MHz, 8pF
- ECS-160-10-33-AGM-TR,16MHz,10PF
DA14683还可以。
Hibobspam@free.fr.,
Glad that your new designed boards are full functional and thanks for letting me know.
谢谢,PM_DIALOG.
你好,对话框专家。我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.
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.