Initialising a DA14531 module in-circuit

⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程https://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
6个帖子/ 0新
最后一篇
Rhys Weatherley
离线
Last seen:4个月3周前
加入:2020-11-09 02:37
Initialising a DA14531 module in-circuit

道歉,如果此问题已被问到。我们最近购买了许多DA14531模块,可以集成到使用项目中。目前我们还在调查阶段。

要调查模块的工作原理,我将其连接到数据表第7节中推荐的STM32L552微控制器(MCU):

* J14 TX在MCU上的DA14531到LPUART1 RX引脚。

*J10 RX on DA14531 to LPUART1 TX pin on the MCU.

* J12 RST在MCU上的GPIO PIN上,左转浮动。

我天真地假设模块将在制造商的命令中预先配置无附带的指令,但我并没有在57600bps或115200bps的模块上关闭模块的简单“ATI”识别命令。

据推测,我需要在使用之前用无附加的.hex文件闪现模块。但是,该模块已经焊接在电路中并连接到MCU。我目前没有开发板可以单独刷新模块。一旦我们去生产,我们将想要刷新和/或升级模块在电路中,而不是在焊接之前必须单独闪烁它们。

Is there some way to put the module into a bootloader mode using the above pin configuration? I found the code "DA145xx_SDK/6.0.14.1114/utilities/flash_programmer" in the SDK which appears to be the code that runs on the module to perform bootloading. I can easily write my own flash utility to run inside the STM32L552 based on that information. The code seems to indicate that the bootloader uses 1-wire UART mode for which I may have to rearrange the wiring to the MCU a bit. I have inline resistors in-circuit, so rearranging the wires shouldn't be a big drama and we'll fix the PCB in the next prototype.

什么是我需要用来强制DA14531模块进入其引导加载程序的序列,是否模块已经闪烁或不闪烁?拉高,等一下?切换一些其他针?目前从文档中对我来说并不清楚。描述引导序列的文档非常方便。扫描时,我可能会错过它,很抱歉,如果我错过了显而易见的事情。

Hopefully there is a way to do this with a fresh-from-the-factory DA14531 module.

PM_Dialog
离线
Last seen:21小时44分钟前
职员
加入:2018-02-08 11:03
嗨rhys weatherley,

嗨rhys weatherley,

感谢您在线的问题,并欣赏我们的微小模块BLE解决方案。

在没有预先编程的固件的情况下,模块即将到来,因此在使用之前,您需要闪存它(在壳体中的无附件FW)。

它可以通过程序机的UART P05or via JTAG interface. If you had any of the Dialog DKs, you could use it for programming the module via JTAG. All DA145xx Development Kits contain a Segger J-Link device that provides Serial Wire Debug (SWD) capability. By default, this J-Link device is connected to the DA145xx device on the Development Kit board, however it is possible connect it to your own hardware, allowing the Development Kit board to act as a Debug Probe. See more information on the following tutorial :

http://lpccs-docs.dialog-semiconductor.com/Tutorial_SDK6/debug_probe.html

To be honest, I am not able to understand why you need to flash is with a bootloader. The module and generally the DA14531 SoC is booting from specific pins and the booting procedure includes very specified steps.

我建议首先退房AN-B-072:从OTP和串行接口启动DA14531应用笔记,如描述了使用串行接口(如I2C,UART,SPI)以及如何将DA14531将固件编程到Flash,EEPROM或OTP内存中的可用引导选项。

在第4节中,可以找到引导序列和引导引脚。

根据该模块的数据表,J9(P0_10 / SWDIO)和J10(P0_2 / SWCLK)适用于SWD接口,如默认设置。因此,这意味着不可能为UART RX使用J10。

根据DA14631数据表,SWD信号映射由sys_ctrl_reg [debugger_enable]定义。但是,默认情况下,这些信号映射在端口上。替代的SWD映射由sys_ctrl_reg [debugger_Enable]比特字段选择。RST默认功能可以由HWR_CTRL_REG [DISABLE_HWR]位禁用。

因此,如果您想使用J10(P0_2)作为UART引脚,则应重新映射SWCLK并相应地在软件上配置Skeptic PIN。

If you check the source code of the CodeLess and open the user_periph_setup.h file, you will see that the UART TX is configured on P0_6 and the UART RX on the P0_5. You could change that configuration according to your requirements. Keep in mind that if you are planning to use any of the available sleep modes, you will need to connect the RTS/CTS signals as well.

Thanks, PM_Dialog

Rhys Weatherley
离线
Last seen:4个月3周前
加入:2020-11-09 02:37
Thanks for the information.

Thanks for the information. I will investigate and see if I can make use of the 1-wire interface to do what I want.

“要诚实地,我无法理解为什么你需要闪存的原因是带有引导加载程序。模块和通常从特定引脚启动DA14531 SoC,引导过程包括非常指定的步骤。”

我们希望降低设备的复杂性尽可能地用于生产目的。如果可以通过UART编程新固件,则我们还可以从MCU端执行现场固件更新。这与JTAG很难做到。

您能否建议一个替代对话框BLE模块,如SmartBond TINY,它用AT命令设置用于即插即用操作的AT命令?我们选择主要是因为它的功率特性低。我们不需要在模块上运行自己的代码 - 我们有一个单独的芯片。

PM_Dialog
离线
Last seen:21小时44分钟前
职员
加入:2018-02-08 11:03
嗨rhys weatherley,

嗨rhys weatherley,

Thanks for your reply. We have taken this offline form the forum and will ask Avnet AU to follow-up and reach out to you directly on your registered email address.

Thanks, PM_Dialog

奇迹托马斯
离线
Last seen:4 months 1 day ago
加入:2020-12-09 15:40
How do I install my receiver

How do I install my receiver in a non- bluetooth device for power transmission

PM_Dialog
离线
Last seen:21小时44分钟前
职员
加入:2018-02-08 11:03
嗨奇迹托马斯,

嗨奇迹托马斯,

谢谢你的评论。你能澄清你想要做的事情吗?

Thanks, PM_Dialog