I turn on the device, the led turns green. And I use usb to connect it with computer then I open the nrf connect for desktop, the bluetooth low energy tool,
I turn on the device, the led turns green. And I use usb to connect it with computer then I open the nrf connect for desktop, the bluetooth low energy tool,
Hello,
Which board to use with nRF connect. You can find the list of supported boards here: nRF Connect Bluetooth Low Energy
Best regards,
Vidar
I use the nrf5340dk, when I open the BLE app,It came out like this, does it look like a J-LINK problem?
Many thanks
Cong
OK thanks. Did you build sample for 'nrf5340dk_nrf5340_cpuapp'?
yes
Now I have switched to another 5340 board for the BLINKY test and the results are still the same, I think there is something wrong with the SAMPLE code or it does not apply to the 5340
Cong
Please try to build and program the blinky sample in /ncs/zephyr/samples/basic/blinky. Alternatively, send me the project you are using now so I can try it here.
this is the project I am using, I'll try your way.
/* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <drivers/gpio.h> /* 1000 msec = 1 sec */ #define SLEEP_TIME_MS 1000 /* The devicetree node identifier for the "led0" alias. */ #define LED0_NODE DT_ALIAS(led0) /* * A build error on this line means your board is unsupported. * See the sample documentation for information on how to fix this. */ static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED0_NODE, gpios); void main(void) { const struct device *dev; bool led_is_on = true; int ret; if (!device_is_ready(led.port)) { return; } ret = gpio_pin_configure_dt(&led, GPIO_OUTPUT_ACTIVE); if (ret < 0) { return; } while (1) { ret = gpio_pin_toggle_dt(&led); if (ret < 0) { return; } k_msleep(SLEEP_TIME_MS); } }
this is the project I am using, I'll try your way.
/* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <drivers/gpio.h> /* 1000 msec = 1 sec */ #define SLEEP_TIME_MS 1000 /* The devicetree node identifier for the "led0" alias. */ #define LED0_NODE DT_ALIAS(led0) /* * A build error on this line means your board is unsupported. * See the sample documentation for information on how to fix this. */ static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED0_NODE, gpios); void main(void) { const struct device *dev; bool led_is_on = true; int ret; if (!device_is_ready(led.port)) { return; } ret = gpio_pin_configure_dt(&led, GPIO_OUTPUT_ACTIVE); if (ret < 0) { return; } while (1) { ret = gpio_pin_toggle_dt(&led); if (ret < 0) { return; } k_msleep(SLEEP_TIME_MS); } }