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
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); } }
okey, now it is working~ but how can I find the device on the phone with the nrf connect for mobile app?
Many thanks
Cong
You have to select one of the Blueooth peripheral samples here https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/samples/samples_bl.html if you want to test BLE connectivity with your phone. The blinky sample does not include Bluetooth at all.
Thanks. I tried the bluetooth peripheral_uart,but when I build the application this error happened.
FATAL ERROR: command exited with status 1: 'd:\nrfconnect\NRF\toolchains\v2.0.0\opt\bin\cmake.EXE' --build 'd:\nrfconnect\project\peripheral_uart\build'
Does this look like something has gone wrong with CMAKE?
Many thanks
Cong
Please post the full log. A screenshot that shows your vs code window may also be helpful.
Please post the full log. A screenshot that shows your vs code window may also be helpful.
here y are
Please upload the complete log in a text file. Your screenshot is only showing the end of it.
maybe this txt gonna work
Thanks. So the project is being built with a bootloader. Did you add or change any configurations? The bootloader should not be included if you just build the example as is.
I set the prj_cdc.conj configuration because I use usb to Link the board to the computer. And set the Kcongfig.fragments like this. For code I didnt change anything.