zephyriot / zep-jira14

0 stars 0 forks source link

bluetooth linker not connected #2416

Open nashif opened 7 years ago

nashif commented 7 years ago

Reported by Tamra Oyama:

Hi all,

When I try to compile the beacon example on my curie arduino 101 using the command, make BOARD=arduino_101, I get the following error.

error: unknown type name ‘bdaddr_t’

I think this happened because the bluetooth is not linked properly? I am using newlib in zephyr/lib/libc instead of minimal. In main.c, I included

bluetooth/bluetooth.h bluetooth/hci.h

Does anyone know how to fix this issue?

(Imported from Jira ZEP-2587)

nashif commented 7 years ago

by Johan Hedberg:

There's something incorrect or inaccurate in the description, since there's not a single instance of the string 'bdaddr_t' in the Zephyr source tree.

nashif commented 7 years ago

by Johan Hedberg:

Also, I just tried building samples/bluetooth/beacon for BOARD=arduino_101 with latest master and it built just fine.

nashif commented 7 years ago

by manoj subbarao:

Tamra Oyama : Please provide more information on the issue replication. Not able to reproduce the issue with information provided.

nashif commented 7 years ago

by Tamra Oyama:

Hi Manoj,

I am currently using a tinyTILE. I am trying to compile a bluetooth application and I am pretty sure I am getting errors because I am not correctly linking the appropriate bluetooth files. All my other include files seem to be working fine. The only error I can't seem to figure out is,

error: unknown type name ‘bdaddr_t’

These are all the includes I have in my code,

include

include

include

include

include

include <misc/printk.h>

include <bluetooth/bluetooth.h>

include <bluetooth/hci.h>

Thank you!