跳到主要内容

Programming the DA14531 TINY with STM32/Arduino

9个月前

Programming the DA14531 TINY with STM32/Arduino

过帐人西蒙拉斯尼尔0分 12份答复
0 upvotes

你好:)

I just discovered both the product and this company, and it looks very promising! I have a project/product which needs bluetooth and I decided to go with the DA14531 TINY instead of the ESP32 :) Thank you for the opportunity, and looking forward to using the product!

我买了这个小模块,但我想知道是否有一个简单的方法来编程它(在SWDF.x上),使用Arduino或STM32。例如,我有许多STM32程序员,他们也使用SWD,那么我在寻找一个现成的代码/二进制文件,我可以上传到arduino或STM32上,然后它将与我的计算机上的IDE(或任何软件)通信来编程模块?

谢谢您!

Simon

接受答案!

9个月前

PM\U对话框

Hi simonlasnier,

Thanks for your question and for posting on our public BLE forums. Would it be possible to share a high level of your application? Are you planning to use the TINY module as the basic microcontroller, or use together with another MCU?

In order to program the module you can use either JTAG or the 1-wire UART interface (P0_5). In case of JTAG, you can use any of our Development Boards or any external JTAG interface. In case of 1-wire UART interface (P0_5), you should reset the DA14531. This can be achieved by cycling power to the module or by using the RST input (active High).

特别是对于小的,你也可以使用对话框Smartbond Flash Programmer for Windows OS以便对模块SPI闪存编程。

在TINY module and DA14531 product页面中,您将找到开始使用Dialog产品所需的所有可用文档软件示例和硬件辅助资料。亚博电竞菠菜

还有一些参考设计可以帮助您减少开发阶段,因为您不需要花费太多时间来开发应用程序代码。

//www.xmece.com/亚博电竞菠菜products/connectivity/bluetooth-low-energy/products/da14531

//www.xmece.com/亚博电竞菠菜products/bluetooth-module-da14531-smartbond-tiny

无代码的

The CodeLess allows you to quickly get started with wireless IoT applications with a set of AT Commands. The CodeLess AT commands platform allows control over a local UART connected device as well as a remote device via BLE. You can create simple demos / applications / proof of concepts without any code development or build you own application on top!

//www.xmece.com/products/smartbond-codeless-commands

对话框Serial Port Service (DSPS)

The DSPS emulates a serial cable communication. It provides a simple substitute for RS-232 connections, including the familiar software flow control logic via Bluetooth low energy. The SPS software distribution includes the application and profile source codes and supports GAP Central/Peripheral roles.

//www.xmece.com/亚博电竞菠菜products/dialog-serial-port-service-dsps

由于您对我们的产品还不熟悉,因此建议您开始使用以下文档亚博电竞菠菜:

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

http://lpccs-docs.dialog-semiconductor.com/UM-B-117-DA14531-Getting-Started-With-The-Pro-Development-Kit/index.html

http://lpccs-docs.dialog-semiconductor.com/UM-B-119_DA14585-DA14531_SW_Platform_Reference/index.html

谢谢,下午好

9个月前

西蒙拉斯尼尔 0分

非常感谢您的快速回复-这是非常好的信息!:)

应用程序将主要在STM32 MCU上运行,因此该模块将仅用作蓝牙模块。我还没有决定他们将使用什么样的通信通道,但两个单片机都有很多的可能性(I2C,SPI,UART),所以它真的应该不会有任何问题。此外,一旦进入市场,我的产品将有一种方法来升级其固件(即STM32的闪存),我想确保同时升级DA14531的固件也是可能的。

我对JTAG/SWD的了解非常有限-我认为它们是不同的东西,但似乎我错了-通过数据表我可以看到这两个术语可以互换使用。所以我猜你是说我可以简单地使用我的ST/Link V2,并把SWDIO和SWCK引脚连接到模块上的正确引脚-这太好了!D

你知道什么固件是加载在模块时,它是新的(我买的Digikey)?

Thank you again for the links, I will go through them all.

9个月前

PM\U对话框

Hi simonlasnier,

You could connect the module with the other MCY over UART (UTX/URX/RTS/CTS), so that you can easily use CodeLess or DSPS! Software Update Over The Air (SUOTA) is available on DA14531 too. Regarding your last question, the DA14531 modules come without any pre0installed firmware, so you should program them in your side.

谢谢,下午好

9个月前

西蒙拉斯尼尔 0分

Ok thank you.

9个月前

西蒙拉斯尼尔 0分

又来了!

我知道这是非常具体的,但ST链接V2是不承认所有提供的工具(f.x.的Smartbond闪存程序员)。正如我所说的,我对JTAG和SWD的了解是非常有限的,但是我猜它不属于“任何JTAG程序员”的范畴?

我会继续努力让它工作,但我想我可能不是唯一一个在这种情况下,本土的支持将真的非常感谢:)

9个月前

西蒙拉斯尼尔 0分

Ok this is interesting - following the blinky example (http://lpccs-docs.dialog-semiconductor.com/UM-B-117-DA14531-Getting-Started-With-The-Pro-Development-Kit/06_Your_First_DA145x_Applications/Your_First_DA145x_Applications.html#), but selecting ST-Link instead of J-Link in the Keil "Options for Target", I managed to execute some code in Debug mode on the chip! The blinky code was running in the RAM, that works great.

This works as the Keil software supports communication with the ST-Link and then communicates with the ARM Cortex chip like any other chip I suppose. But when t comes to writing a hex/binary file to the SPI Flash I have to use the Dialog tools, and none of them detect the ST-Link. Is there any way to upload the code to the SPI Flash directly from Keil uVision?

FYI I am attaching my configuration in Keil uVision for those who have the same issue.

附件 Size
keil uvision setup.zip 179.76 KB

9个月前

西蒙拉斯尼尔 0分

Alternatively, will a CMSIS-DAP interface instead of a J-Link interface work with the tools provided by Dialog?

9个月前

PM\U对话框

Hi Simon,

谢谢你的问题-让我内部检查一下。

谢谢,下午好

9个月前

西蒙拉斯尼尔 0分

好的,太好了,谢谢。仅供参考似乎Keil-uVision有一种方法可以使用ST-Link上传到SPI,ST-Link调试器的“设置”窗口有一个“Flash Download”选项卡,这似乎是前进的方向。我只是不知道该放什么:/

附件 Size
2020-07-28 22_29_25-Cortex-M Target Driver Setup.zip 49.03千字节

9个月前

PM\U对话框

Hi simonlasnier,

I saw your attached screenshot and I assume that you are trying to program the SPI flash. Please correct me if I am mistaken. In that case, we provide a tool named SmartSnippets Toolbox. You will find it under “Development Tools” section in the DA14531 product page.

//www.xmece.com/亚博电竞菠菜products/connectivity/bluetooth-low-energy/products/da14531

如果您使用的是keilide,那么只能将fw下载到系统RAM中。

谢谢,下午好

8 months ago

西蒙拉斯尼尔 0分

Thank you for the reply but yes I already know about the SmartSnippets Toolbox - the tool does not work with ST/Link, only with your programmers and Segger's. It would be really nice in the future if you could add ST/Link to your tools - Segger tools cost a fortune while you can get a "copy" ST/Link from ebay for a few bucks.

就我而言我想没有much to do apart from buying one of your boards og a Segger Jlink :/

8 months ago

PM\U对话框

Hi simonlasnier,

Thanks for your suggestion and let the Team know.

谢谢,下午好