如何将固件下载到DA14580 BLE芯片

23 posts / 0 new
最后一篇
虾ramesh.
Offline
最后一次露面:5 years 6 months ago
加入:2015-09-15 12:53
如何将固件下载到DA14580 BLE芯片

Hi,

Here we are working on Android/Linux platform and the MURATA LBCA2HNZYZ-711 BLE module is embedded into to main board.
这个Murata Lbca2hnzyz-711 BLE模块使用对话框的DA14580 BLE芯片
The only interface we have to communicate with BLE chip is via UART TX/RX lines from our processor (imx6 - freescale ).
我们在Linux / Android平台(处理器端)中配置了UART接口,现在我们需要使用固件配置BLE芯片。

Can you please share/guide us regarding below details:
- 我们需要使用哪个固件?
- How we can download/configure firmware to BLE chip? Any tool/application available for Linux platform ?
- 是否有任何细节可用于Android(在谷歌中,一些产品使用的是,在那里使用LBCA2HNZYZ-711芯片组和Android产品)配置/培育。雷电竞官网登录

Thanks

设备:
MHv_Dialog
Offline
最后一次露面:2 months 1 week ago
职员
加入:2013-12-06 15:10
Hi,

Hi,

Please verify that you have connected the UART as defined in Table 1, step 2,4,5, or 6 of UM-B-001http://support.dialog-seminile.com/resource/b-001-da14580-booting-serial-interfaces.。通过UART从外部源引导负载固件的标准方法是该文档中的ALO。如果您未在上面定义的UART连接,则唯一的选项是通过J-Link将辅助引导加载程序刻录到OTP中,这将允许您在DA14580上定义作为引导加载销的任何引脚组合。

The UART boot loader sequence is pretty straight forward. Your host needs to power on (or reset) the DA14580 and wait for it to transmit a STX (0x02) character. After this simply follow table 5 of the above referenced document.

虾ramesh.
Offline
最后一次露面:5 years 6 months ago
加入:2015-09-15 12:53
Thanks MHv_dialog,

Thanks MHv_dialog,

我们能够理解UART连接B / W DA14580和主机处理器(IMX6)。
从电路板示意图,我们了解从处理器(IMX6)的UART行直接连接到Murata LBCA2HNZYZ-711 BLE模块。因此,从硬件点UART连接很好。

We also understood steps to download firmware from link you shared (Table 5).

- But please can you share firmware file required to be flashed to DA14580 to bringup MURATA LBCA2HNZYZ-711 BLE
- 也可以共享可用于Linux平台的任何应用程序代码,以下载固件

Note: We got one application code in the github linkhttps://gist.github.com/blindman2k/d1bbef6a60ccf383b095, But its not in C language. So it will be very usefull if you share some application to download firmware in C language

Rgds
Shrimanth

gumpyang
Offline
最后一次露面:4天14小时前
加入:2014-05-20 07:38
This is a UART development

This is a UART development with download tool python, in my computer can perform, please refer to。
这是一种用力用Python开发的UART下载工具,在我的电影上可以驾驶,请您参考

hardy.chen
Offline
最后一次露面:10个月前1年
加入:2015-03-13 04:20
Hi,

Hi,

I'm also interesting in the alternative of flashing SPI flash (or event OTP) through Linux OS based environment.
It would be great that Dialog can provide such alternative.

To Shrimanth, from the example on github, it seems to use direct control to the SPI flash (not via DA14580) from host PC. But this is also kind of thought of flushing firmware while manufacturing.

FH_Dialog
Offline
最后一次露面:1个月1周前
职员
加入:2013-12-06 15:12
Hi Hardy

Hi Hardy

Our tool for flashing image into SPI flash in Linux OS is not available yet.

Regards

hardy.chen
Offline
最后一次露面:10个月前1年
加入:2015-03-13 04:20
Hi, Dialog team,

Hi, Dialog team,

注意到了。

But I'm trying to implement 2 protocols for fulfilling my needs.
I suppose that 1) implementation of booting from serial interface (referring to 6.2 of AN-B-001) AND 2) SPI Flash command supported by 'flash_programmer' utility on target could be a try for my purpose.

从'programmer.c'的源代码出来的两个问题

Q#1未定义Develope_Mode时,默认的“port_sel”是什么。
--
#ifdef USE_UART
#pragma arm section zidata =“non_init”
uint8_t gpio_port;// __attribute__ ((section ("non_init")));
uint8_t gpio_pin;// __attribute__ ((section ("non_init")));
uint8_t port_sel; // __attribute__((部分(“non_init”)));
#pragma arm section zidata
#else

.... <>

#ifdef DEVELOPMENT_MODE // To use the debugger, define it and set the UART_PIN_PAIR according to board configuration (periph_setup.h)
port_sel = UART_PIN_PAIR;
#endif
--

Q#2“尺寸”是什么,我要为“action_spi_write”的第一个命令,我不太了解以下代码的目的,在an-b-001的第6.3节关于“代码的定义”第6.3节中定义的协议表7中的长度MS字节'和“代码长度LS字节”。

--
标题=尺寸+ 8;
if (starting_address==8)
{
标题缓冲器[6] =(无符号char)(0xff&(标题>> 8));
HeaderBuffer [7] =(无符号char)(0xff和标题);
spi_flash_write_data(Headerbuffer, 0, 8);
spi_flash_write_data(p,starting_address, size);
}
--
else

虾ramesh.
Offline
最后一次露面:5 years 6 months ago
加入:2015-09-15 12:53
Hi,

Hi,

We want to flash firmware to SysRAM of DA14580.

Can you please share/guide us regarding below details:
- Firmware file required to be flashed to DA14580 to bringup MURATA LBCA2HNZYZ-711 BLE
可用于Linux platfor——任何应用程序代码m to download firmware to DA14580 through UART

Thanks
Shrimanth

虾ramesh.
Offline
最后一次露面:5 years 6 months ago
加入:2015-09-15 12:53
Hi,

Hi,

我们能够在Android平台上开发应用程序代码,以通过UART从主机处理器(IMX6)从主机处理器(IMX6)下载固件

For Developing the APP code, we have followed steps as given in Table 5 ofhttp://support.dialog-semiconductor.com/resource/b-001-da14580-booting-s...文档。

但是,当我们发送0x01(SOH)和要下载0x37(LSB)和0xD3(MSB)的代码长度时,我们正在获得0x15(NACK)

The firmware file we used to download is in following folder DA14580_581_583_SDK_3.0.10.1\binaries\da1458x\prod_test/prod_test.hex.
Its Size is 54.1K

SRAM的大小是42k,如果我们减少要下载的代码的长度,我们得到0x06(ACK)

所以我们正在怀疑固件文件。

您能否为Murata Lbca2hnzyz-711 BLE分享正确的固件文件

Thnaks
Shrimanth

mt_dialog.
Offline
最后一次露面:2 months 1 week ago
职员
加入:2015-06-08 11:34
嗨虾仁,

嗨虾仁,

There is no other valid proper firmware. You have to download the bin file, not the .hex file. You can either compile the prod_test project and take the .bin file from the out directory or convert the .hex file to a .bin file.

谢谢mt_dialog.

虾ramesh.
Offline
最后一次露面:5 years 6 months ago
加入:2015-09-15 12:53
谢谢mt_dialog,

谢谢mt_dialog,

Now we are able to download prod_test.bin file to DA14580 chip successfully through UART.
Also sent 0x06(ACK) from host processor(imx6) to DA14580 chip.

But we have following doubts:
- Do we have to program SYS_CTRL_REG registers from host side(imx6) or will it be done by DA14580 chip itself ?
-什么是程序测试Linux的祝福/Android Platform level, to check whether the firmware is proper or not? Is there any application available?
- Is there any libbt-vendor HAL code for android for DA14580 chip, which communicates b/w bluedroid stack & lower chip firmware via HCI commands

Rgds

虾ramesh.
Offline
最后一次露面:5 years 6 months ago
加入:2015-09-15 12:53
Hi

Hi

请任何人帮助以下问题帮助:

But we have following doubts:
- Do we have to program SYS_CTRL_REG registers from host side(imx6) or will it be done by DA14580 chip itself ?
-什么是程序测试Linux的祝福/Android Platform level, to check whether the firmware is proper or not? Is there any application available?
- Is there any libbt-vendor HAL code for android for DA14580 chip, which communicates b/w bluedroid stack & lower chip firmware via HCI commands

Thanks
Shrimanth

mt_dialog.
Offline
最后一次露面:2 months 1 week ago
职员
加入:2015-06-08 11:34
嗨倒数,

嗨倒数,

- The SYS_CTRL_REG are the registers are controlled by the da if you are workiing with an external proccessor you can take a look at the reference design of the proximity monitor in the SDK at the following directory \DA1458x_SDK_5.0.2.1\DA1458x_SDK\5.0.2.1\projects\host_apps\windows\proximity\monitor you can check this alsohttp://support.dialog-semicondiondiondum/resource/um-b-010-user-manual-pr ...

- You can test your application in any application that supports BLE on android or LInux.

- 不,我不认为有这样的事情。

谢谢mt_dialog.

虾ramesh.
Offline
最后一次露面:5 years 6 months ago
加入:2015-09-15 12:53
谢谢mt_dialog.

谢谢mt_dialog.

我们使用dsps.apk在Android上测试BLE。
But when we run that app we are getting ALERT " Please Enable the bluetooth !"
Can you explain how Application(DSPS.apk) communicates with DA14580 chip.
Is there any documents which explains how application communicates with DA14580 chip.

Rgds
Shrimanth

je_dialog.
Offline
最后一次露面:1个月1周前
职员
加入:2013-12-05 14:02
谢谢你好,请看

您好虾,请参阅DSP的用户指南:这包含所有详细信息。

http://support.dialog-semiconductor.com/resource/um-b-038-user-manual-di...

BR JE_DIALOG.

raghuchaitanya....
Offline
最后一次露面:5 years 4 months ago
加入:2015-11-05 08:31
你好je_dialog,

你好je_dialog,

我们正在研究I.MX6 SoloLote Android平台和Murata Lbca2hnzyz-711 BLE模块(基于对话框的DA14580 BLE芯片)通过UART接口。我们能够通过Android UI启用蓝牙时成功加载Prod_test.bin固件,但我们无法进一步继续。Logcat成功加载固件后显示以下消息。

I / BT_HCI_BDROID(3104):内部BT_HC_WORKER_THREAD功能HC_EVENT_TX
E/bt_h4 ( 3104): [h4] Unknown HCI message type drop this byte 0x0
E/bt_h4 ( 3104): H4: Unable to acquire buffer for incoming HCI message.

Can you please help us to understand the probable cause of the above error. Do you have any Reference Android porting guide that describes the required changes/modifications to be done for porting BLE drivers.

Thanks & Regards
Raghu Chaitanya

附件:
mt_dialog.
Offline
最后一次露面:2 months 1 week ago
职员
加入:2015-06-08 11:34
嗨拉古基塔anya.l.

嗨拉古基塔anya.l.

I suppose that the issue is that, if you are using 580, it does not support HCI commands, the 581 does.

谢谢mt_dialog.

raghuchaitanya....
Offline
最后一次露面:5 years 4 months ago
加入:2015-11-05 08:31
你好mt_dialog,

你好mt_dialog,

Thanks for your reply. We are trying to integrate the (DA14580 based) Murata BLE module in Android 4.4 . In the DA14580x software architecture guide, it is mentioned that " The BLE core protocol stack is a third party implementation licensed from Riviera Waves " .

1) Does this mean that the BLE stack is already embedded inside the module ?
2) Can we use the Bluedroid stack ?
3) The serial port service application guide has the information only about flashing the firmware to the module. How do we proceed after loading the firmware to the module ?
4)您是否有任何介绍完整的集成程序的文档?

Please help . We are stuck up at this issue for almost two weeks.

Regards
Raghu Chaitanya

mt_dialog.
Offline
最后一次露面:2 months 1 week ago
职员
加入:2015-06-08 11:34
嗨拉古基塔anya.l.,

嗨拉古基塔anya.l.,

1) Yes the BLE is located in ROM.

2) About the Bluedroid the 580 doesn't support HCI commands the 581 does.

3) What do you mean how to proceed after loading the fw to the module, if you want to run the application you can donwload DSPS application and the data flowing from your pc to your android application.

4) There are docs explaining how to use the da580 with an external MCU please have a look in the documents section of the support site, but there isn't a doc about how to integrate the da with android.

谢谢mt_dialog.

raghuchaitanya....
Offline
最后一次露面:5 years 4 months ago
加入:2015-11-05 08:31
你好mt_dialog,

你好mt_dialog,

Thanks for your prompt response. Can you please help me with the following ?

我们如何映射Android本机蓝牙应用程序(从Android设置 - >蓝牙(ON / OFF))到对话框14580芯片通信。由于Android本机蓝牙应用程序与Android蓝牙状态机进行通信,它与Android Bluedroid堆栈绑定,它使用Libbt HAL接口与UART接口进行通信。

蓝牙本机应用程序 - > Android蓝牙状态机 - > Android蓝牙堆栈 - > Libbt供应商 - > UART接口 - >蓝牙芯片固件。

- How DSPS apk communicates with Dialog Bluetooth application which internally communicates with Dialog Firmware.

Regards
Raghu Chaitanya

mt_dialog.
Offline
最后一次露面:2 months 1 week ago
职员
加入:2015-06-08 11:34
Hi raghuchaitanya,

Hi raghuchaitanya,

Sorry, but there is no doc or example in doing what you are asking, you can have a look at the external proccessor configuration examples, also as i ve posted in my previous post the 580 doesn't support HCI only 581 does.

关于DSP的应用程序,它使用自定义配置文件将UART数据推入Android应用程序,Plase向DSPS应用笔记查看更多信息。此外,如果您有兴趣,我可以向您发送DSP的Android源代码。

谢谢mt_dialog.

raghuchaitanya....
Offline
最后一次露面:5 years 4 months ago
加入:2015-11-05 08:31
你好mt_dialog,

你好mt_dialog,

Thank you. Yes, please send the android source code for the DSPS.apk.

Regards
Raghu Chaitanya

mt_dialog.
Offline
最后一次露面:2 months 1 week ago
职员
加入:2015-06-08 11:34
Hi raghuchaitanya,

Hi raghuchaitanya,

Mail sent

谢谢mt_dialog.