你好。我有个问题。
If i use, in a custom board, a 16MHz Crystal that respect the specifications but is different from the 16MHz Crystal used in the basic dev board, when I use the DSPS or the HID mouse firmware, I have to change the trimming value or other xtal16m registers or something in software, or I can use firmwares without problems?
The firmware is storage in and loaded from, an external flash mem.
谢谢。
设备:
Hi drumste,
的调整值XTAL16是由software in the reference designs and in the software examples. The value that is provided is an average value that dialog tested on the expert dev kits. That doesn't mean that this value will work with all crystal oscillators. If you would like to use the examples on other reference designs you would have to trim your crystal in order to be sure.
Thanks MT_dialog
Ok. I found the production test tool for trimming the crystal. I try it on the dev basic board for practise, but when I use the xtrim caltest, the output is status=26. I use a 1Hz square wave (duty cycle 50%) on the P1_1 of amplitude 3.3V.
What it mean?
I did the same test with my custom board but the problem is that the prodtest tool can't communicate with the prod_test.hex inside the module (status=9). In my custom board I use a 16MHz crystal with 50ppm of tolerance, 18pF of Load cap. and freq. stability of 30ppm. The type of crystal can be the problem?
对于prod_test.hex执行,它使用外部水晶或内部RC振荡器?
Hi drumste
您可以在文档UM-B-008:生产测试工具中找到生产测试工具的所有错误:返回代码。关于晶体XTAL16使用而不是内部RC振荡器。请查看数据表以检查16 MHz振荡器的推荐操作条件。晶体应该满足那些要求,我不认为晶体的类型应该产生差异,因为满足了推荐的操作条件。
Thanks MT_dialog
It's possible there is some kind of BLE module damage?
我用DSP配置文件分析了天线外的光谱,似乎乐队在蓝牙限制之外扩散。
I also try to insert a uart_write() inside the main loop of a DSPS and compare the experiment with the dev basic board: With the custom board the characters come outside the uart correctly but I can't find it with the android app. With the dev board, the characters don't come outside but I can find it with the android app.
I did other experiments and in everyone the custom board and the dev board had different behavior.
我以为问题可以是水晶的修剪,但我不能使用我的自定义板使用Prod_Test应用程序。
I also try to change the crystal with a identical one but the behaviors are the same.
另一种故障原因可能是来自天线的太高的反射功率吗?
Otherwise, there is some register that is important to set when the BLE is use in a custom board?
我的模块是da14580-01 1ncac而不是1ncad意味着什么?
Hi drumste,
There is no register that should be specifically be set when using a custom board, About the crystal you are using seems that the Load capacitance is high (18pF), also the frequency stability is quite high (30ppm), so the RF frequency could be off too much at extreme temperatures especially knowing that the XTAL could face non-optimal trimming, having an initial error of 10ppm (since the trimming capabily is guaranteed to trim +-40ppm Xtals and yours is +/-50ppm and possibly could not be optimally trimmed). So the large CL plus the possibly large negative tolerance could result in a large frequency offset. Also you have to consider the ESR of this XTAL and should not exceed 100Ohm. The conclusion is that the 580 should operate (if not in extreme temperatures) but the frequency could face a large offset in some case. Also since you dont get any advertising, the antenna sound like a good reason.
Thanks MT_dialog
你好。
我解决了主要问题:我在我的定制板的Buck电感位置焊接了一个错误的组件。解决了它,现在还有另一个问题:对话框HID鼠标配置文件正常运行(广告,配对和报告),但DSP配置文件不起作用。它不起作用意味着,如果我加载DSP配置文件的设备版本,我无法找到带有Android DSPS应用程序的设备。
这可能是这种行为的原因?
I remind you that I use a 16M crystal (the MA-506) with a freq. tolerance of 50ppm, freq. stability of 30ppm, 18pF of load capacitance and 40ohm ESR)
I also tryed to do the 16M crystal calibration with the prod_test tool, but the output status is 26 that is a "calibration out of range" error , but I don't understand exactly what it means and why it outputs this error. Probably the accuracy of the pulse? (I generated the pulse with an AGILENT 33120A arbitrary waveform generator, with a 1Hz square wave, 50% of duty cycle)
Hi,
1.对于修剪问题,您是否可以使用以下设置使用波形?
高:500.000 msec +/- 10 ppm(0.005毫秒)(<= 3.3 v)
Low: 10 msec +/- 1 msec (0V).
2.对于DSP问题,您是否可以检查固件是否正确在您的董事会上运行?你是怎么经营它的?通过JTAG将其加载到RAM或将其闪存到内存中?
Actually, for the test, I load the firmware through UART at 57.6 Kbit/s (pins P0_4 and P0_5). I don't use the jtag because I can't load the firmware through it.
At the end of the tests, in the normally use of the board, the firmware will be load by the external flash.
How can I check if the DSPS work properly?
我试图在Basic_dev_board和我的自定义板上运行DSP设备固件:使用Basic_Dev_Board,固件Rum正确,我可以用Android应用程序找到它,相反,与我的板上,我找不到它。
It is strange if we consider that the HID firmware work properly with both boards. It's possible there is difference in radio output power settings from HID and DSPS firmware? otherwise, it's possible that there is something in hardware that prevent the correct execution of DSPS? some settings? if not, you have idea about what can be the problem?
Hi,
你能做的事情是
检查您的下载过程是否正确。
Enable UART console print via UART2 to print messages out. Search for the keyword CFG_PRINTF in code base.