Skip to main content

DA14531 TINY Module - Confused !

1个月前

DA14531 TINY Module - Confused !

Posted byShashialabur60 points 6 replies
0旋转

你好,

I received my DA14531 Tiny Modules, made my own FT230XS based USB-Serial board, wired up the module and after a fair amount of trial and error, I could program the module !

I am using the CODELESS examples (codeless_531_datapump.bin, set_two_standalone.bin, standalone.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,模块在应用程序中“已发现”但拒绝连接!

If I launch the codeless_host terminal, I do not get any responses from the Module.

My questions :

1. What is the difference between the datapump, standalone, set-two-standalone bin files ?

2. The examples shown in the webpage "http://lpccs-docs.dialog-semiconductor.com/UM-140-DA145x-CodeLess/smart…“对于SmartConsole应用程序,显示可用的命令模式/二进制模式选择(第8.4节,图50和第8.4.2节,图57),但我没有在Android手机上看到这些选项(应用程序版本为3.530.4)。

3. When should I use the Smart Console App and when the DSPS App ?

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 ?

I will experiment some more ....but, a little confused at this point !

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

Hi Shashialaburm,

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

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

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

A. So, the module is booting from OTP? Did you program the application flags in the OTP Header? Keep in mind that OTP stands for One Time Programmable, thus you can’t erase and re-write the OTP multiple times.

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

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

Regarding the Module #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. Can you please try to connect with a BLE generic application (such as BLE Scanner)? When you are trying to connect from the SmartConsole App, what is the behavior? Can you detect the device over the air?

5. The module can be programmed either via JTAG or via single-wire UART on P05. The default UART pins are shown in Figure 10 in the user guide. After programming via P05 is finished, the P05 can be used for UART.

谢谢,PM_Dialog

4 weeks ago

Shashialabur 60 points

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

I am using P0_5 as a single pin UART during programming and I can download to SysRAM or SPI Flash successfully.

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的跳线选择在这种情况下没有差异。

There is no response to any AT commands - the Terminal stops responding when I send any AT command.

The Module#1 was very consistent at least - I could always connect and even get responses to the AT commands !

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

Thanks !

4 weeks ago

Shashialabur 60 points

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

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

AT+BINREQ returns "Invalid command" response.

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

I didn't do any changes to the application flags in the OTP programming.....in fact, I saw it only now after seeing your response !

The "Terminal" in the Smart Snippets Toolbox does not give me any response - why ? How do I use this terminal ?

4 weeks ago

PM_Dialog

Hi 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-semiconductor.com/Tutorial_SDK6/debug_probe.html

You can also use the Keil project to build any of the CodeLess projects.

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

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

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

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

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

Check if you are using the correct UART configuration from the “Board Setup”.

https://s3.eu-west-2.amazonaws.com/lpccs-docs.dialog-semiconductor.com/UM-B-083/tools/Board_Setup.html

Otherwise you can use any other Serial Terminal – see this section :

http://lpccs-docs.dialog-semiconductor.com/UM-140-DA145x-CodeLess/howToUse.html

谢谢,PM_Dialog

3 weeks ago

Shashialabur 60 points

你好,

I do not have the PRO or the USB DK and hence I am unable to debug the problems !

Anyway, now I have made all my 5 modules into removable daughter boards which can be plugged into my prototype board one by one for testing.

My set up is : FT230XS based USB to Serial module, also supplies power to the DA14531 Modules for testing.

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引脚吗?

If I use the Terminal or with the Terminal Scripting or with the Codeless Host application to send any commands, I don't get any response.

The Smart Console "Peripherals" view shows P0_5 & 6 as RX & TX, but as per the V2.3 Datasheet for the Module, Figure 11 on page 16 shows P0_2 as TX and P0_5 as RX (for the Module)

How do I send random text or hex characters from the Module to the App ?

3 weeks ago

PM_Dialog

Hi Shashialabur,

Modules #2, #3, #4 :

  1. Program the SPI flash with the datapump project.
  2. Open a Serial Terminal ( such as Teraterm). See the following section for the UART configuration :http://lpccs-docs.dialog-semiconductor.com/UM-140-DA145x-CodeLess/howToUse.html#hardware-setup
  3. 尝试发送“在”命令。无附庸无附带的回应吗?
  4. Then, try to connect with a mobile app. You should see the following output in the Serial Terminal upon connection.

+醒着

+CONNECTED

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

Please keep in mind that the CodeLess is using the following UART scheme by default :

#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

#定义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连接概述,并确保您具有正确的设置。

Module #5

  1. Open a serial Terminal with the correct UART configuration.
  2. Connect with the SmartConsole App.
  3. Set it up into Binary mode from the SmartConsole App.
  4. In the Serial terminal, you should see : +BINREQ
  5. After doing steps 3 and 4, you should send the AT+BINREQACK from the terminal and the CodeLess should respond with OK. See this section for more info :http://lpccs-docs.dialog-semiconductor.com/UM-140-DA145x-CodeLess/binar…
  6. Then you can write data from the Serial Terminal to the SmartConsole App and vice versa.

谢谢,PM_Dialog