跳到主要内容

DA14531微小模块 - 困惑!

1个月前

DA14531微小模块 - 困惑!

张贴了Shashialabur.65分 6回复
0旋转

你好,

我收到了我的DA14531微小模块,使我自己的FT230XS基于USB序列板,有线模块和经过相当数量的试验和错误,我可以编写模块!

我正在使用无附庸的例子(Dodeless_531_datapump.bin,set_two_standalone.bin,startalone.bin)。

With Module#1, I could download into SysRAM or into SPI Flash, the module was 'Discovered' in the Smart Console App, I could connect to it and I could get the responses to the AT command, like getting board address etc....but, no matter what I tried, I could not put the module into the Binary mode and send data directly between the module and the App. If I typed any AT command in the 'Terminal' window in "SmartSnippets Toolbox", the Module would immediately disconnect in the App. Somewhere during my trials, I think I used the OTP Programmer option and now I am unable to reprogram this module - though it is still running the last program that got burned into its OTP memory, is consistently discoverable in the Smart Console App and responds to AT commands ( I don't remember if I programmed the standalone.bin or datapump.bin into its OTP memory.), but cannot get into "Binary" mode.

使用模块#2,我可以成功下载程序进入Sysram或SPI Flash,模块在应用程序中“已发现”但拒绝连接!

如果我启动了无附件_host终端,我没有从模块中获取任何响应。

我的问题:

1. DataPump,独立,Set-Two-Standalone Bin文件有何区别?

2.网页中显示的示例“http://lpccs-docs.dialog-semicondiondumon.com/um-140-da145x-codeless/smart ...“对于SmartConsole应用程序,显示可用的命令模式/二进制模式选择(第8.4节,图50和第8.4.2节,图57),但我没有在Android手机上看到这些选项(应用程序版本为3.530.4)。

3.我应该什么时候使用智能控制台应用程序以及DSPS应用程序?

4.为什么模块#2拒绝连接?

5. I am using the P0_5 as the single wire UART TX/RX pin for downloading the programs. Does the codeless_host terminal need separate RX/TX pins on the UART or the single pin P0_5 is ok for this ?

我会尝试更多......但是,此时有点困惑!

All I want to do is send some data via the UART of the Module and this should be received in the APP.

1个月前

PM_DIALOG.

嗨Shashialaburm,

谢谢您在线的问题,为您的小模块解决方案感兴趣。

关于模块#1,您提到了:

“在我的试验期间的某个地方,我认为我使用了OTP程序员选项,现在我无法重新编程这个模块 - 尽管它仍然运行刻录到其OTP内存的最后一个程序,但在智能控制台应用程序中一致地发现了响应在命令(我不记得是,如果我编写了standalone.bin或datapump.bin进入其OTP内存。),但不能进入“二进制”模式。“

答:因此,模块正在从OTP启动?您是否在OTP标题中编写了应用程序标志?请记住,OTP表示一个时间可编程,因此您无法多次擦除并重新编写OTP。

B.您是否使用了无附件目录中的预构建二进制文件,或者您是否使用Keil IDE来构建项目?

C.仅在DataPump项目中支持“二进制模式”。那么,如果你通过UART发送了AT + Binreq,那是什么回复?如果响应正常,则模块正在运行DataPump项目。

关于模块#2:

1.请在无附带用户手册(UM-B-140)中检查9.1。DA14531 DAT14531 DATAPUMP配置用于制作二进制数据传输支持30个命令,包括所有二进制数据命令,因此,不同项目支持的AT命令的差异 - 请参阅表8.您还可以在无附加应用程序代码中验证它。

2.确保模块正在运行DataPump应用程序 - 刚刚在我的手机中检查了此操作,我可以看到此按钮。

3.无附带和DSP是两个不同的项目。在无附件的情况下应该使用SmartConsole。如果模块正在运行DSP固件,那么您应该使用DSPS应用程序。在这里您可以找到所有DSP文档:https://www.dialog-seminile.com/produ亚博电竞菠菜cts/dialog-serial-port-service-dsps#tab-field_tab_content_resources.

4.您可以尝试使用BLE通用应用程序(如BLE扫描仪)连接吗?当您尝试从SmartConsole应用程序连接时,行为是什么?你能在空中检测装置吗?

5.可以通过JTAG或通过P05上的单线UART编程模块。默认的UART引脚在用户指南中如图10所示。通过P05进行编程后,P05可用于UART。

谢谢,PM_DIALOG.

1个月前

Shashialabur. 65分

我正在使用我的模块#2。

我在编程期间使用p0_5作为单个引脚UART,我可以成功下载到Sysram或SPI闪存。

I am using the pre-built binaries from the Codeless directory only.

我有一个跳线选择来使用P0_5(J14)作为单个引脚UART,同时编程,然后用P0_2(J10)切换到2针UART以接收数据和P0_5(J14)以传输数据。

If I download the "datapump.bin' file to SPI Flash, the Smart Console as well as the Generic BLE Scanner do not detect this Module.

If I download the "datapump.bin" to SysRAM, then the Smart Console and the BLE Scanner detect this module - but refuse to connect.

单引脚UART或2引脚UART的跳线选择在这种情况下没有差异。

在命令中没有任何响应 - 当我在命令发送任何时,终端停止响应。

模块#1至少非常一致 - 我可以始终连接甚至对AT命令进行响应!

那么,这是一个有缺陷的模块还是我做错了什么?

谢谢 !

1个月前

Shashialabur. 65分

我删除了模块#2和有线#1后退,它在智能控制台应用程序中一致地检测到,响应AT命令。

但是,如果我尝试AT + Print = ,它就立即断开连接,我必须将电源循环到电路板,以便被发现并再次连接(现在,它由基于FT230xS的USB提供供电)。

AT + Binreq返回“无效命令”响应。

我假设我把“独立的人”烧入它?

我没有对OTP编程中的应用程序标志进行任何更改.....事实上,我看到了它后看到了它后看到了你的回复!

智能代码段工具箱中的“终端”不会给我任何响应 - 为什么?如何使用此终端?

1个月前

PM_DIALOG.

嗨Shashialabur,

我建议使用Keil项目并在调试模式下运行代码,以便检查可能是错误的。

Probably the module resets upon connection. Do you have any of our DKs? If yes, you can use them for the JTAG interface – please see this tutorial :

http://lpccs-docs.dialog-seminiondiond.com/tutorial_sdk6/debug_probe.html.

您还可以使用Keil项目来构建任何无附件项目。

我无法用da145xx_codeless \ 6.380.12.6 \二进制\ offets_531_datapump.hex复制这个。

关于模块#1,由于发送AT + BinReq返回“无效命令”时的响应,这意味着模块正在运行独立.bin。

>>>我没有对OTP编程中的应用程序标志进行任何更改.....事实上,我看到了它在看到你的回复后才看到它!

您能否从SmartSnippets Toolbox中阅读OTP内容并分享屏幕截图?

>>>智能赛段工具箱中的“终端”不给我任何回复 - 为什么?如何使用此终端?

检查您是否正在使用“Locar Setup”的正确UART配置。

https://s3.eu-west-2.amazonaws.com/lpccs-docs.dialog-semicondiond.com/um-b-083/tools/board_setup.html.

否则,您可以使用任何其他串行终端 - 请参阅本节:

http://lpccs-docs.dialog-semicondiondumon.com/um-140-da145x-codeless/howtouse.html.

谢谢,PM_DIALOG.

1个月前

Shashialabur. 65分

你好,

我没有专业或USB DK,因此我无法调试问题!

无论如何,现在我已经将所有5个模块制成了可拆卸子板,可以逐个将原型板插入我的原型板上进行测试。

我的设置是:基于FT230X的USB到串行模块,还为DA14531模块提供电源进行测试。

Module# 1 - OTP programmed, probably the Standalone.bin is programmed, hence responds with an ERROR to the AT+BINREQ command

模块#2,#3,#4:当我将“DataPump.bin”到Sysram或SPI Flash时,所有这些都会成功编程,在SmartConsole应用程序中发现,但是在我尝试连接时“断开连接”。

模块# 5得到最多连接,我可以运行的commands. I can see the orange circle with the Command Mode option, AT+BINREQ returns OK.

现在,如何在模块和SmartConsole应用程序之间发送随机数据?(at + print = hello命令返回无效的命令错误)

我正在使用P0_5上的单引脚UART进行编程。对于此随机数据交换,我仍然使用单引脚UART配置或单独的TX / RX引脚吗?

如果我使用终端或使用终端脚本或无附件主机应用程序来发送任何命令,我不会得到任何响应。

智能控制台“外设”视图显示为Rx&Tx的P0_5和6,但根据模块的V2.3数据表,第16页的图11显示了P0_2为TX和P0_5作为Rx(对于模块)

如何将模块从模块发送到应用程序的随机文本或十六进制字符?

1个月前

PM_DIALOG.

嗨Shashialabur,

模块#2,#3,#4:

  1. 使用DataPump项目进行SPI Flash。
  2. 打开串行端子(如TERATERM)。有关UART配置,请参阅以下部分:http://lpccs-docs.dialog-semicondiond.com/um-140-da145x-codeless/howtouse.html#hardware-setup.
  3. 尝试发送“在”命令。无附庸无附带的回应吗?
  4. 然后,尝试与移动应用程序连接。您应该在连接时看到串行终端中的以下输出。

+醒着

+CONNECTED

  1. 当模块断开连接时,您应该看到:+断开连接

请记住,无附带无附带方案默认情况下:

#define uartx_tx_gpio_port gpio_port_0.

#define uartx_tx_gpio_pin gpio_pin_6.

#define uartx_rx_gpio_port gpio_port_0.

#define uartx_rx_gpio_pin gpio_pin_5.

#define gpio_uartx_rts_port gpio_port_0.

#define gpio_uartx_rts_pin gpio_pin_7.

#define gpio_uartx_cts_port gpio_port_0.

#define gpio_uartx_cts_pin gpio_pin_8.

请参见“用户指南”图10DA145xx 4-Wire UART连接概述,并确保您具有正确的设置。

模块#5

  1. Open a serial Terminal with the correct UART configuration.
  2. 连接SmartConsole应用程序。
  3. 从SmartConsole应用程序将其设置为二进制模式。
  4. In the Serial terminal, you should see : +BINREQ
  5. 执行步骤3和4后,您应该从终端发送AT + Binreqack,无附件应该响应OK。有关更多信息,请参阅本节:http://lpccs-docs.dialog-semicondiondumon.com/um-140-da145x-codeless/binar...
  6. 然后,您可以将数据从串行终端写入SmartConsole应用程序,反之亦然。

谢谢,PM_DIALOG.