嗨,伙计们,我一直在尝试使用DA14531的Pro Devkit尝试无尽麻烦。这是确切设备的Digikey链接:
https://www.digikey.com/short/z1pc4f.
Basically, the USB connection seems to be extremely unstable. LED D4 is always blinking on the PCB, and I can hear the USB connecting and disconnecting constantly.
On a few occasions the board has connected, but then it will suddenly disconnect minutes later for no discernable reason (I don't even have to be near it).
我怀疑董事会没有正确焊接,或者在板上电源可能出了问题。USB 5V电源稳定,但其他用品似乎非常粗略,尤其是DA14531降压供应,其在100-200mV大约约100-200mV左右。
它没有帮助这个Dev板的文档非常令人困惑 - 事实上,我发现许多图表都是错误的。此外,不同的文档显示了相同任务的不同和矛盾的连接。这是我不确定的主要原因,这么久是PCB是否有缺陷。
在一个ON的一个场合,其中一段时间后,我设法获取了闪烁的代码示例运行。当然,这是在发现1-Wire UART的教程图之后不正确,我必须阅读完整的原理图,并为自己弄清楚正确的接线。
关于的小可能accurate存在文件,你能指向他们吗?
Obviously I will deal with Digikey to get a fresh and hopefully operational devkit.
Hi cmarcus,
新年快乐,感谢您在公共BLE论坛上发布。
Could you let me know if followed theUM-B-117: DA14531 Getting Started with the Pro Development Kit (HTML)from our website? This tutorial is showing how to use the Pro-DK with our SDK example. Is the HW configuration correct?
那么,主要问题是USB不断地连接和断开连接?你是如何验证的?例如,如果你使用Windows操作系统的SmartSnippets工具箱V5.0.14, the Dk is being disconnected continuously ?
PS : Changing the device selection from DA14581 to DA14531 in the initial post.
Thanks, PM_Dialog
我确实遵循这一点guide.
The USB stability is the main issue. Every 1-2 seconds, the D4 LED on the board flashes for an instant, and I hear the USB connect/disconnect sound on my PC.
无论我做什么(即再保险gardless of motherboard settings and regardless of the DA14531 module being plugged/unplugged), the USB simply refuses to start up properly. It doesn't matter if I have the software open or not. Occassionally, the USB would connect for no reason. For example, I left my computer for 5 minutes and at some point it just decided to connect. Then seconds later it disconnects again, without me doing anything.
如果我刚刚挥舞着附近的空气,我注意到了可疑的事情,就像USB一样会断开连接。对我来说,这表明焊接接头失败(即浮动输入,检测来自我的身体的电场)。目视检查没有找到任何东西。
Hi cmarcus,
Given that the DA14531 is flashed with the Blinky example, it is expected that the D5 LED is blinking continually, as this is the functionality of this peripheral example. It doesn’t mean the USB connection is unstable. According 6.0.14.1114\projects\target_apps\peripheral_examples\blinky SDK example, the application is toggling the P0_9. This pins I connected with the D5 LED on the Pro-DK. Please try to erase the SPI flash, and then you will see the LED stops blinking.
之后,我建议刷新任何SDK BLE示例6.0.14.1114 \ projects \ target_apps \ ble_examples。
Thanks, PM_Dialog
The LED flashing is the D4 LED, which according to your own schematics is the USB indicator.
Hi cmarcus,
抱歉混淆 - 可能我错误地阅读了它,这就是我为LED D5发布的原因。让我看看这一点,我会尽快回复你。
Thanks, PM_Dialog
Hi again,
So I got a new replacement Devkit from Digikey, and the USB now works correctly. I am able to program Blinky with no issues using SPI Flash.
Now I am trying to do the next step for my project - loading the code onto an I2C EEPROM using the SmartSnippets Toolbox.
我精确地遵循I2C设置的AN-B-072中的指令。
Here's the log output from SmartSnippets Toolbox:
I push the button "SW1/RESET" when prompted but nothing happens, and after a few second it times out as shown in the log.
I have attached some pictures of my setup and a circuit diagram for clarity.
Hi cmarcus
The SST does not support any flash capabilities by default. When the “Connect” button is pressed through the tool, a small firmware is downloaded into the DA14531 : flash_programmer_531.bin in case of UART and jtag_programmer_531.bin in case of JTAG.
Both binaries are generated be the 6.0.14.1114\utilities\flash_programmer project of the SDK.
。。\SmartSnippetsToolbox\SmartSnippetsToolbox5.0.14\common_resources\SupportPackages\DA1453x\toolbox_resources\common
In both cases, the SCL and SDA in the SST Board setup should be configured in P0_2 and P0_3.
请告诉我们结果。
Thanks, PM_Dialog
Thank you for the detailed instructions, it is greatly appreciated! I feel we are close to making this work. Here's my current status:
I have followed your instructions, and I am now able to press "Connect" and successfully load the firmware. Here's the log for that:
接下来,我试图“刻录并验证”的.bin文件为blinky示例:
我也试图使用“读取32kb”读取内存:
在阅读您的指示时,我假设在这两种情况下,SST板设置中的SCL和SDA应在P0_2和P0_3中配置。“。
I mostly tried to do it with SCL=P0_4 and SDA=P0_3. When I tried it with P0_2 and P0_3 I got the following error which I assume means an incorrect wiring:
So, what does error 00000001 mean?
我再次附加了我当前设置的照片。
我注意到了一个可疑的point... sometimes when I do "Connect", I don't need to press the "SW1/RESET" button. It just instantly says "Reset detected". I wonder if this is a normal behavior?
I also tried swapping the SDA/SCL connections on the EEPROM breadboard, just in case I had them backwards. I got exactly the same error "00000001". So I guess this error is indicating a general I2C failure?
Do I need to provide pull-up resistors on the I2C bus, like on the breadboard?
是的!我终于搞定了它!
所以它结果我做过need to provide external pullups on SDA/SCL. According to the datasheet, DA14531 has internal 25k pullups but these were not strong enough. I put my own 3.9k pullups on the lines, and now everything works.
我在i2c总线上从我的示波器上附加了照片。
所以,我有1个最后一个问题。在“刻录和验证”之后,我必须拔掉+重新安装USB以获取DA14531引导加载程序从EEPROM运行和加载程序。我不想一直不重新推销USB。
Is there a way to reset the DA14531 in software, so that the bootloader will run? Without physically messing with the board?
我确实尝试在刻录并验证后按下SW1 / RESET按钮,它没有任何操作(不会导致引导程序运行)。
Hi cmarcus,
You should be able to reset the Pro-Dk by pressing the SW1/RESET push button. If this does not reset the chip, please check if the HW reset functionality is disabled in the firmware - GPIO_Disable_HW_Reset(). If yes, please comment this out.
Thanks, PM_Dialog