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
You will have to set up the SDK first to be able to build the sample applications. If you don't have this set up already, you can follow the instructions here: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/getting_started.html#getting-started
Vidar
Hello
I've build the blinky applications and flash it to the board 5340. But the led1 and 2 always shiny instead of flashing. I see in the tutorial that only LED1 should be flashing. I have no idea....
Many thanks
Cong
Hello,
Which one the blinky samples did you flash? Also, can you point me to the tutorial you used?
Regards,
Vidar
I use the sample just called 'blinky' and the tutorial is on the youtube(141) nRF Connect for VS Code, 4: Flash an application to a board - YouTube
Cong
OK thanks. Did you build sample for 'nrf5340dk_nrf5340_cpuapp'?
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); } }
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