⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support。We’ll be fixing bugs / optimising the searching and tagging over the coming days.
12 posts / 0 new
Last post
cmarcus
Offline
Last seen:2个月2周前
Joined:2020-12-14 16:16
pro devkit问题

嗨,伙计们,我一直在尝试使用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.

设备:
PM_Dialog
Offline
Last seen:2天3小时前
Staff
Joined:2018-02-08 11:03
Hi cmarcus,

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

cmarcus
Offline
Last seen:2个月2周前
Joined:2020-12-14 16:16
我确实遵循这一点

我确实遵循这一点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一样会断开连接。对我来说,这表明焊接接头失败(即浮动输入,检测来自我的身体的电场)。目视检查没有找到任何东西。

PM_Dialog
Offline
Last seen:2天3小时前
Staff
Joined:2018-02-08 11:03
Hi cmarcus,

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

cmarcus
Offline
Last seen:2个月2周前
Joined:2020-12-14 16:16
The LED flashing is the D4

The LED flashing is the D4 LED, which according to your own schematics is the USB indicator.

PM_Dialog
Offline
Last seen:2天3小时前
Staff
Joined:2018-02-08 11:03
Hi cmarcus,

Hi cmarcus,

抱歉混淆 - 可能我错误地阅读了它,这就是我为LED D5发布的原因。让我看看这一点,我会尽快回复你。

Thanks, PM_Dialog

cmarcus
Offline
Last seen:2个月2周前
Joined:2020-12-14 16:16
Hi again,

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:

[信息EEPROM @ 21-01-21 16:05:27]固件文件c:\ users \ colin \ desktop \ sdk_6.0.14.1114 \ da145xx_sdk \ 6.0.14.1114 \ config \ toolbox_resources / da1453x / common / flash_programmer.bin拥有被选中下载。[信息EEPROM @ 21-01-21 16:05:27]与COM6端口的连接已成功打开。[info EEPROM @ 21-01-21 16:05:27]开始下载程序... [动作EEPROM @ 21-01-21 16:05:28]请按下电路板上的硬件重置按钮开始下载过程。[错误EEPROM @ 21-01-21 16:05:35]超时:重置信号未检测到超过8000毫秒。[信息EEPROM @ 21-01-21 16:05:35]请再试一次。如果问题仍然存在,请参阅用户手册AN-B-072(//www.wsdof.com/an-072-booting-from-serial-interface)并检查跳线设置。为了从2线UART启动(P0_0和P0_1),请参见图10.为了从1线UART P0_5引导,请参见图6. [INFO BOITER @ 21-01-21 16:05:35]成功断开了COM6端口。[错误EEPROM @ 21-01-21 16:05:35]将固件文件下载到电路板上。

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.

Attachment:
PM_Dialog
Offline
Last seen:2天3小时前
Staff
Joined:2018-02-08 11:03
Hi cmarcus

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.

  1. Open this project and navigate to user_periph_setup.h and open the “Configuration Wizard”. From the drop down menu, select the ST M24M01. Then build the project for DA14531_uart and DA14531_jtag.
  2. 复制生成的二进制文件(Out_uart_531 \ flash_programmer_531.bin和out_jtag_531 \ jtag_programmer_531),并在以下路径中介入sst安装文件夹中:

。。\SmartSnippetsToolbox\SmartSnippetsToolbox5.0.14\common_resources\SupportPackages\DA1453x\toolbox_resources\common

  1. In the Pro-DK, just o connect the SDA and SCL to P2_3 and P2_4 using jumper cables (without using the P0_3/P0_4).
  2. 打开SST工具箱:

  1. 在JTAG模式的情况下(图11中)UM-B-083 SmartSnippets Toolbox User Manual (HTML)), the reset is not required, so please follow the documents to connect and burn the EEPROM.
  2. In case of UART Mode ( Figures 9 or 10 inUM-B-083 SmartSnippets Toolbox User Manual (HTML)) you should have reset functionality. To enable it, use the purple and the yellow connections as in Figure 21 from the n-b-072 application note. Then, in Board setup ( figure 20 in SST user manual ) make sure that P0_0, P0_1, 57600Bd is selected.

In both cases, the SCL and SDA in the SST Board setup should be configured in P0_2 and P0_3.

请告诉我们结果。

Thanks, PM_Dialog

cmarcus
Offline
Last seen:2个月2周前
Joined:2020-12-14 16:16
Thank you for the detailed

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:

(信息eepm @21-01-23 14:36:24]固件文件C: \Users\colin\Desktop\SDK_6.0.14.1114\DA145xx_SDK\6.0.14.1114\config\toolbox_resources/DA1453x/common/flash_programmer.bin has been selected for downloading. [INFO EEPROM @21-01-23 14:36:24] Connection to COM6 port has successfully opened. [INFO EEPROM @21-01-23 14:36:24] Started download procedure... [ACTION EEPROM @21-01-23 14:36:25] Please press the hardware reset button on the board to start the download process. [INFO EEPROM @21-01-23 14:36:25] Reset detected [INFO Booter @21-01-23 14:36:27] Successfully disconnected from port COM6. [INFO EEPROM @21-01-23 14:36:27] Connection to COM6 port has successfully opened. [INFO Booter @21-01-23 14:36:27] Successfully disconnected from port COM6. [INFO EEPROM @21-01-23 14:36:27] Successfully configured EEPROM ports and pins. [INFO EEPROM @21-01-23 14:36:27] Successfully downloaded firmware file to the board.

接下来,我试图“刻录并验证”的.bin文件为blinky示例:

[INFO EEPROM @21-01-23 14:38:08] Copying file: C:\Users\colin\Desktop\DA14531 BINARIES\blinky\blinky_531.bin to C:\Users\colin\AppData\Local\Temp\\input1.bin. [INFO EEPROM @21-01-23 14:38:08] Read 3744 bytes from file C:\Users\colin\AppData\Local\Temp\\input1.bin. [INFO EEPROM @21-01-23 14:38:17] Started burning memory with 3744 bytes of data at address 0x00. [INFO EEPROM @21-01-23 14:38:17] Connection to COM6 port has successfully opened. [ERROR EEPROM @21-01-23 14:38:24] Received error message while checking whether burning was successful: 00000001. [INFO Booter @21-01-23 14:38:24] Successfully disconnected from port COM6. [ERROR EEPROM @21-01-23 14:38:24] Fail write 3744 bytes at offset 0x00 [ERROR EEPROM @21-01-23 14:38:24] Failed burning memory.

我也试图使用“读取32kb”读取内存:

[INFO EEPROM @21-01-23 14:39:19] Started reading 32768 bytes from memory. [INFO EEPROM @21-01-23 14:39:20] Connection to COM6 port has successfully opened. [ERROR EEPROM @21-01-23 14:39:26] Received error message while reading from the board: 00000001. [INFO Booter @21-01-23 14:39:26] Successfully disconnected from port COM6. [ERROR EEPROM @21-01-23 14:39:26] Error: Failed reading 16384 bytes from offset 0x00 [ERROR EEPROM @21-01-23 14:39:26] Failed reading memory.

在阅读您的指示时,我假设在这两种情况下,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:

[信息EEPROM @ 21-01-23 14:55:14]从内存开始读取32768个字节。[信息EEPROM @ 21-01-23 14:55:14]与COM6端口的连接已成功打开。[错误EEPROM @ 21-01-23 14:55:24]超时等待收到数据包长度最高的字节(10000毫秒)[Info Booter @ 21-01-23 14:55:24]成功断开了端口COM6。[错误EEPROM @ 21-01-23 14:55:24]错误:从偏移0x00读取16384字节失败[错误EEPROM @ 21-01-23 14:55:24]读取内存失败。

So, what does error 00000001 mean?

我再次附加了我当前设置的照片。

Attachment:
cmarcus
Offline
Last seen:2个月2周前
Joined:2020-12-14 16:16
我注意到了一个可疑的

我注意到了一个可疑的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?

cmarcus
Offline
Last seen:2个月2周前
Joined:2020-12-14 16:16
是的!我终于搞定了它

是的!我终于搞定了它!

所以它结果我做过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按钮,它没有任何操作(不会导致引导程序运行)。

Attachment:
PM_Dialog
Offline
Last seen:2天3小时前
Staff
Joined:2018-02-08 11:03
Hi cmarcus,

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