⚠️
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 months 2 weeks ago
Joined:2020-12-14 16:16
problems with Pro Devkit

Hi guys, I've been having endless trouble trying to use the Pro devkit for DA14531. Here's a digikey link to the exact device:

https://www.digikey.com/short/z1pc4f

基本上,USB连接似乎非常不稳定。LED D4始终在PCB上闪烁,我可以听到USB连接和断开不断连接。

在几个场合,电路板已连接,但随后它将突然断开分钟后,没有可辨别的原因(我甚至不必靠近它)。

I suspect something is not soldered correctly on the board, or perhaps something is wrong with the on-board power supplies. The USB 5V supply is stable, but the other supplies seem very sketchy, especially the DA14531 buck supply, which is bouncing up and down around 100-200mV.

It doesn't help that the documentation for this dev board are extremely confusing - in fact I have found that many of the diagrams are simply wrong. Moreover different documents show different and contradictory connections for the same tasks. This is the main reason I was unsure for so long of whether the PCB was defective or not.

On one occasion where the USB worked for a while, I managed to get the Blinky code example running. Of course, this was after discovering that the tutorial diagram for 1-wire UART was incorrect, and I had to read the full schematics and figure out the correct wiring for myself.

On the small possibility thataccuratedocuments exist, could you point me towards them?

显然我会处理Digikey,获得一个新鲜和希望的运营Devkit。

Device:
PM_Dialog
Offline
Last seen:4 days 18 hours ago
Staff
Joined:2018-02-08 11:03
嗨cmarcus,

嗨cmarcus,

Happy new year and thanks for posting on our public BLE forums.

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?

So, the main problem is that the USB is connecting and disconnecting constantly? How did you verify it? For example, if you use theSmartSnippets Toolbox V5.0.14 for Windows OS,DK连续断开?

PS : Changing the device selection from DA14581 to DA14531 in the initial post.

Thanks, PM_Dialog

cmarcus.
Offline
Last seen:2 months 2 weeks ago
Joined:2020-12-14 16:16
I did indeed follow that

I did indeed follow that guide.

USB稳定性是主要问题。每1-2秒,电路板上的D4 LED瞬间闪烁,我听到了我的电脑上的USB连接/断开声音。

无论我做什么(即再保险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.

I noticed suspicious things, like the USB would disconnect if I just waved my hand through the air nearby. To me, this indicates a solder joint failure (i.e. a floating input, which detects the electric field from my body). Visual inspection didn't find anything though.

PM_Dialog
Offline
Last seen:4 days 18 hours ago
Staff
Joined:2018-02-08 11:03
嗨cmarcus,

嗨cmarcus,

鉴于DA14531与Blinky示例闪烁,预计D5 LED呈不断闪烁,因为这是该外围示例的功能。这并不意味着USB连接不稳定。根据6.0.14.1114 \ projects \ target_apps \ peripheral_examples \ blinky sdk示例,应用程序正在切换p0_9。该引脚I与D5 LED连接在Pro-DK上。请尝试擦除SPI闪光灯,然后您将看到LED停止闪烁。

After that, I would recommend to flash any of the SDK BLE examples 6.0.14.1114\projects\target_apps\ble_examples.

Thanks, PM_Dialog

cmarcus.
Offline
Last seen:2 months 2 weeks ago
Joined:2020-12-14 16:16
The LED flashing is the D4

LED闪烁是D4 LED,根据您自己的原理图是USB指标。

PM_Dialog
Offline
Last seen:4 days 18 hours ago
Staff
Joined:2018-02-08 11:03
嗨cmarcus,

嗨cmarcus,

——也许我抱歉的混乱mis-read it, that’s why I posted for the LED D5. Let me check this out and I’ll get back to you shortly.

Thanks, PM_Dialog

cmarcus.
Offline
Last seen:2 months 2 weeks ago
Joined:2020-12-14 16:16
你好再次,

你好再次,

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.

I am precisely following the instructions in AN-B-072 for the I2C setup.

Here's the log output from SmartSnippets Toolbox:

[INFO EEPROM @21-01-21 16:05:27] Firmware File 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-21 16:05:27] Connection to COM6 port has successfully opened. [INFO EEPROM @21-01-21 16:05:27] Started download procedure... [ACTION EEPROM @21-01-21 16:05:28] Please press the hardware reset button on the board to start the download process. [ERROR EEPROM @21-01-21 16:05:35] Timeout: Reset signal not detected for more than 8000 msecs. [INFO EEPROM @21-01-21 16:05:35] Please try again. If problem persists refer to User Manual AN-B-072 (//www.wsdof.com/an-072-booting-from-serial-interface) and check jumper settings. For booting from 2-wire UART (P0_0 and P0_1) see Figure 10. For booting from 1-wire UART P0_5 see Figure 6. [INFO Booter @21-01-21 16:05:35] Successfully disconnected from port COM6. [ERROR EEPROM @21-01-21 16:05:35] Failed downloading firmware file to the board.

I push the button "SW1/RESET" when prompted but nothing happens, and after a few second it times out as shown in the log.

为了清楚起见,我附上了一些我的设置和电路图。

Attachment:
PM_Dialog
Offline
Last seen:4 days 18 hours ago
Staff
Joined:2018-02-08 11:03
Hi cmarcus

Hi cmarcus

SST默认情况下不支持任何闪存功能。当通过该工具按下“连接”按钮时,将小固件下载到DA14531:Flash_Programmer_531.bin(如果是JTAG)的情况下,请将其下载到DA14531:Flash_Programmer_531.bin。

这两个二进制文件都是由SDK的6.0.14.1114 \ flash_programmer项目。

  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. Copy the generated binaries (Out_uart_531\flash_programmer_531.bin and Out_jtag_531\jtag_programmer_531) and past the in the SST installation folder in the following path :

.. \ smartsnippetstoolbox \ smartsnippetstoolbox5.0.14 \ common_resources \ supportpackages \ da1453x \ toolbox_resources \ common

  1. 在Pro-DK中,只需使用跳线电缆将SDA和SCL连接到P2_3和P2_4(不使用P0_3 / P0_4)。
  2. Open the SST Toolbox :

  1. In case of JTAG mode (Figure 11 inUM-B-083 SmartSnippets Toolbox用户手册(HTML)),不需要重置,因此请按照文档连接并刻录EEPROM。
  2. In case of UART Mode ( Figures 9 or 10 inUM-B-083 SmartSnippets Toolbox用户手册(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.

Please let us know with the results.

Thanks, PM_Dialog

cmarcus.
Offline
Last seen:2 months 2 weeks ago
Joined:2020-12-14 16:16
Thank you for the detailed

感谢您的详细说明,非常感谢!我觉得我们很接近做这项工作。这是我目前的状态:

I have followed your instructions, and I am now able to press "Connect" and successfully load the firmware. Here's the log for that:

[信息EEPROM @ 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 / champr_programmer.bin拥有被选中下载。[信息EEPROM @ 21-01-23 14:36:24]与COM6端口的连接已成功打开。[信息EEPROM @ 21-01-23 14:36:24]开始下载程序... [动作EEPROM @ 21-01-23 14:36:25]请按下电路板上的硬件重置按钮开始下载过程。[Info EEPROM @ 21-01-23 14:36:25]重置检测到[Info Booter @ 21-01-23 14:36:27]成功断开了Com6端口。[信息EEPROM @ 21-01-23 14:36:27]与COM6端口的连接已成功打开。[Info Booter @ 21-01-23 14:36:27]从COM6端口已成功断开连接。[信息EEPROM @ 21-01-23 14:36:27]成功配置了EEPROM端口和引脚。[信息EEPROM @ 21-01-23 14:36:27]成功下载了固件文件到电路板。

Next, I attempt to "Burn & Verify" the .bin file for the Blinky example:

[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.

I also tried to read the memory using "Read 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.

When reading your instructions, I assume this was a typo "In both cases, the SCL and SDA in the SST Board setup should be configured in P0_2 and P0_3.".

我主要尝试使用scl = p0_4和SDA = P0_3进行。当我用p0_2和p0_3尝试时,我得到了以下错误,我假设意味着不正确的接线:

[INFO EEPROM @21-01-23 14:55:14] Started reading 32768 bytes from memory. [INFO EEPROM @21-01-23 14:55:14] Connection to COM6 port has successfully opened. [ERROR EEPROM @21-01-23 14:55:24] Timeout while waiting to receive the most significant byte of packet length (10000 msecs) [INFO Booter @21-01-23 14:55:24] Successfully disconnected from port COM6. [ERROR EEPROM @21-01-23 14:55:24] Error: Failed reading 16384 bytes from offset 0x00 [ERROR EEPROM @21-01-23 14:55:24] Failed reading memory.

So, what does error 00000001 mean?

I have again attached pics of my current setup.

Attachment:
cmarcus.
Offline
Last seen:2 months 2 weeks ago
Joined:2020-12-14 16:16
I have noticed a suspicious

I have noticed a suspicious 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?

是否需要在I2C总线上提供上拉电阻,如面包板?

cmarcus.
Offline
Last seen:2 months 2 weeks ago
Joined:2020-12-14 16:16
YES! I finally got it working

YES! I finally got it working!

So it turns out Ididneed 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.

I have attached before/after pics from my oscilloscope for the I2C bus.

So, I have 1 final question. After doing "Burn & Verify", I had to unplug+replug the USB to get the DA14531 bootloader to run and load the program from the EEPROM. I would prefer not to replugging the USB all the time.

有没有方法可以在软件中重置DA14531,以便引导加载程序运行?没有物理搞砸了董事会?

I did try pushing the SW1/RESET button after Burn&Verify and it didn't do anything (did not cause the bootloader to run).

Attachment:
PM_Dialog
Offline
Last seen:4 days 18 hours ago
Staff
Joined:2018-02-08 11:03
嗨cmarcus,

嗨cmarcus,

您应该通过按SW1 / RESET按钮来重置PRO-DK。如果这不会重置芯片,请检查固件 - GPIO_DISABLE_HW_RESET()中是否禁用了HW复位功能。如果是,请发表评论。

Thanks, PM_Dialog