linux support for da14580

7 posts / 0 new
Last post
spectrum
Offline
Last seen:5 years 9 months ago
加入:2015-03-11 18:26
linux support for da14580

Dear all,

i have the da14580 connected to an imx6 cpu throught uart port.
I would like some guide to have BT working on linux.

I already enabled BT drivers support, but can't communicate with
the da14580 from userspace in any way.

Strangely, as soon as the chip pass from reset to running state,
i see contiuous bursts of data in both TX and RX lines. This
still at bootloader state, so before linux boots.
Bursts of data continue also when linux is booted.
Considering there is a signal also in RX, seems the device is not
operating in regular uart mode.

Every help is appreciated.

JE_Dialog
Offline
Last seen:5 days 4 hours ago
Staff
加入:2013-12-05 14:02
Hello Spectrum,

Hello Spectrum,

the only Linux example we have is a the device working as an HCI device with Blue-Z stack running under linux : this is part of the HCI release (3.110.2) which you can find on the software page. Its essentially a patch. Sorry i cannot help any more..

BR JE_Dialog

spectrum
Offline
Last seen:5 years 9 months ago
加入:2015-03-11 18:26
Many thanks,

Many thanks,

i am unexpert of BT in general, so, how should i proceed now ? If i understand, the release you mentioned is about the internal FW of the chip, correct ?

What if the module i have comes programmed with another FW version ?

Regards
angelo

JE_Dialog
Offline
Last seen:5 days 4 hours ago
Staff
加入:2013-12-05 14:02
Hello spectrum, this really

Hello spectrum, this really depends what you want to do : we don't have in general today much in the way of Limux. What have in a patch for Blue-Z that runs under linux and provides an HCI interface to the DA14581 - so the DA14581 is only being used as HCI device.

BR JE_Dialog

spectrum
Offline
Last seen:5 years 9 months ago
加入:2015-03-11 18:26
Sorry.

Sorry.
What does it mean "so the DA14581 is only being used as HCI device". ?
linux可以控制吗?你能please explain better supposing not all
are guru of BT here ?
My company mounted this module on an automotive project,
but seems there is no way to have anything working on Linux.
Is it better to change product ?

JE_Dialog
Offline
Last seen:5 days 4 hours ago
Staff
加入:2013-12-05 14:02
Hello Spectrum,

Hello Spectrum,

Blue-Z is a providing a BLE stack for Linux. We have a patch avaialble for Blue-Z that supports the DA14581 used as an HCI device . In this instance, the DA14581 is just being used a radio device : all profiles / application will sit within the Linux environment.

BR JE_Dialog

spectrum
Offline
Last seen:5 years 9 months ago
加入:2015-03-11 18:26
Sorry, not clear if then from

Thanks for the support.

sorry, not clear if then from linux there are then bluez apps that can manage the module over HCI or have to be weritten from scratch, afaik.

Also, i am trying to re-program the chip to be able to use this HCI mode, in the patch archive i find 2 binaries,

hci_581_active_uart.hex
hci_581_ext_sleep_uart.hex

I can only access the cortex-m0 from SWD actually, was able to dump the current
flash content, but not sure where those binaries have to be programmed. At offset
0 i see the vector table, so i suppose the code must be written at a certain memory
location.
Every help is appreciated.

Angelo