DEVZONE BLOG FEED

In SDK v8.1 we added the TWI driver (nrf_drv_twi.c). Unfortunately the nrf_drv_config.h file wasn't updated correctly with the new driver.The symptom is the error with "TWI_COUNT is missing". Here is what should be added to nrf_drv_config.h:/* TWI */#define TWI0_ENABLED 0#if (TWI0_ENABLED == 1)#define TWI0_CONFIG_FREQUENCY NRF_TWI_FREQ_100K#define TWI0_CONFIG_SCL 0#define TWI0_CONFIG_SDA 1#define TWI0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_HIGH#define TWI0_INSTANCE_INDEX 0#endif#define TWI1_ENABLE...

15.05.2015

Common FAQ on DFU

 This post covers some Q&A topics regarding Device Firmware Update:Questions:A. What happens if something fails when doing DFU, would my device ever get bricked ?B. How the vector table be forwarded when doing DFU ? C. How do we do buttonless DFU ?D. Why bonding could be an issue with DFU ?E. How do I program the original application via programmer (JLINK), not by DFU bootloader ? F. I can't debug the bootloader, why and what I need to change to debug ...

One way to program the nRF51822Bluetooth Smart Beacon Kit is to usethe nRF51 DK. This gives you a fullscale development platform (the nRF51DK). This blog will go thru the steps needed to program the softdevice and upload the application. If you have never used Keil, nRFgo Studio or the nRF51 DK before it is recommended to go thru the tutorials covering these topics first.To program the Beacon Kit you need: Keil MDK-ARM v5 nRFgo Studio nRF51822 Bluetooth Smart Beacon Kit nRF51 DK Adapter cable (or an...

DEVZONE FORUM

Hey.I am wondering if there is a way to disconnect a slave from a master based on the strength on the connection and not when they naturally loose connection.To give an example: If someone is connected to a peripheral with a phone, and they walk away from it. I want the peripheral to disconnect from the device before the signal strength is too weak to maintain a connection anyway....

We're sending packets from a nRF51422 usb dongle to a nRF51422 dev board running some modified Nordic UART example code. We send 100kB of data over the connection to work out the speed, at the moment we get about 500 B/s. A C# app on the computer continually sends 20 bytes in a for loop.Sniffing the connection with a further nRF51422 usb dongle shows that there are a lot of empty connection intervals. One packet will be transferred, and then perhaps 5 connection intervals will go past before the next pack...

Hi.I'm using the nRF51 DK (PCA10028) to mesure the curent consuption of my system. I'm using an external DCDC witch is a part of my system, so I want to mesure the current BEFORE the DCDC.The problem is, as the interface IC drawning some current, the mesure is not the nRF + DCDC current consuption.How can I comlpletly disable the interface IC?Note: The DCDC also power other boards witch are also part of the system I want to mesure.Thank's....