Hi everyone,
I tried to create BLE ad for customboard nrf54l15, but it doesn't seem to work.
I upload my code in the attached file:
"undefined reference to `__device_dts_ord_92'"
I don't know to configure that.
Can you help me solution for this, please?
Thank for that,
#include <zephyr/kernel.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/gap.h> #include <zephyr/sys/printk.h> #define LED_NODE DT_ALIAS(led1) // DEVICE_NAME CONFIG_BT_DEVICE_NAME #define DEVICE_NAME "BL-TEST BY NKD" #define DEVICE_NAME_LEN (sizeof(DEVICE_NAME) - 1) static const struct bt_data ad[] = { BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)), BT_DATA(BT_DATA_NAME_COMPLETE, DEVICE_NAME, DEVICE_NAME_LEN), }; static unsigned char url_data[] = { 0x17, '/', '/', 'a', 'c', 'a', 'd', 'e', 'm', 'y', '.', 'n', 'o', 'r', 'd', 'i', 'c', 's', 'e', 'm', 'i', '.', 'c', 'o', 'm' }; static const struct bt_data sd[] = { /* 4.2.3 Include the URL data in the scan response packet */ BT_DATA(BT_DATA_URI, url_data, sizeof(url_data)), }; int ble_init(void) { int err; err = bt_enable(NULL); if (err) { printk("Bluetooth init failed (err %d)\n", err); return -1; } err = bt_le_adv_start(BT_LE_ADV_NCONN, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd)); if (err) { printk("Advertising failed to start (err %d)\n", err); return -1; } return 0; }