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:
你好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
Hello
谢谢你的第一个答案。
我试图运行Freertos_Retarget未修改。它不是依赖于外部硬件,因此它应该允许我验证我正在使用的DA14683的最小行为。我的硬件设计非常基本,两个例外:所有外部IO都是3.3V(闪光灯和外设)。
VBAT is measured by the JTAG probe at 3.7V during the tests.
我不能使用外部时钟。它不在我的PCB上有线。我试图使用范围触摸振荡器的垫,但探头的内部电容与石英本身相同的数量级,所以我非常确定它应该产生不稳定的结果。
我尚未开始更改修剪值。考虑到振荡器我使用的是2PF在推荐的10PF下方,修剪功能应该非常有用,以获得稳定和准确的东西。
Can you please confirm to me
- 解决方法所以我只使用RC时钟
- hardware design requirements for both clocks so I prepare my Run 2 ?
谢谢
你好bobspam@free.fr那
如果我理解正确,您提到您使用的使用规格晶体振荡器。你能告诉我你使用哪个水晶振荡器?您问题的发布可能原因是由于Xtals。要使用RC16,您应该使用sysclk_rc16更改system_init()函数中的cm_sys_clk_init()和cm_sys_clk_set()的sysclk_xxtal16m输入。虽然,代码在main()函数之前堆栈,所以使用RC16我假设不会修复您的问题。顺便说一下,你可以检查它并让我知道。
谢谢那PM_Dialog
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时钟,因此我必须深入了解代码。
谢谢
你好bobspam@free.fr那
拜托,让我保持联系,让我知道是否有其他问题。如果您发现上述任何答案有用请标记其中一个接受。
谢谢那PM_Dialog
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
Hello
您能否向我确认ECS-160-10-33-AGM-TR正在使用DA14683?
谢谢in advance
你好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
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
我花时间比较各种石英,我不了解你的评论,说明石英是在规范的边缘。
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
一个小细节:1V4没有通电。0V。
似乎问题不在XTAL部分中!
待续...
你好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
你好,
不幸的是,我的3个板都没有所有的电源轨。
我只有一个有1.4伏的人,我确实确认IQD 064296 16MHz,8PF正在运作。
振荡具有250mV振幅稳定。直流偏移350mV。这不是一个完美的窦波形。
我必须与演示板进行比较,以更好地遵守其与DA14683的遵守情况。
感谢您的帮助。
你好bobspam@free.fr那
将您的定制栏与我们的Dev-kits进行比较是值得的。如果您有任何其他后续问题,请创建一个新的论坛线程。
谢谢那PM_Dialog
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
你好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
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.
你好bobspam@free.fr那
很高兴您的新设计板充满了功能性,谢谢让我知道。
谢谢那PM_Dialog
您好,对话专家。我收到了DA14683上的女儿板。尝试实现BLE_ADV example。当尝试调试时,我看到ble_perpherial_start困扰着。什么是可能的原因。
嗨斯巴达,
请在调试模式下运行它,并指出代码卡住的位置?此外,我建议您创建一个新的论坛帖子,因为这一个与您的问题无关。
谢谢那PM_Dialog