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

Hi: my sdk is about 96k,and i use 51822QFAC,but it's flash is 256K,(256K-88K)/2=84K,so it is not enough for me,how should i do,if i add a external flash is ok or do you have other way to solve...

Hi all,i got error code 0x1a2 after receiving BLE_GATTC_EVT_WRITE_RSP event, but i cannot find any information about this error code.can you please tell me the reason that caused this problem?#define BLE_GATT_STATUS_SUCCESS 0x0000 /** Success. */#define BLE_GATT_STATUS_UNKNOWN 0x0001 /** Unknown or not applicable status. */#define BLE_GATT_STATUS_ATTERR_INVALID 0x0100 /** ATT Error: Invalid Error Code. */#define BLE_GATT_STATUS_ATTERR_INVALID_HANDLE 0x0101 /** ATT Error: Invalid Attribute Handle. */#defin...

we're using Mbed for NRF51822. our board using 2 GPIOs interrupt.![image description](/attachment/bba84ec115941489a3d649517347dc2e)problem: the Rise edge did not generate the Interrupt event: set EVENTS_PORT. I try uisng while, but it did not working: volatile uint32_t newVal = NRF_GPIO->IN; while ( (NRF_GPIOTE->EVENTS_PORT != 0) && ( (NRF_GPIOTE->INTENSET & GPIOTE_INTENSET_PORT_Msk) != 0) ){ newVal = NRF_GPIO->IN;// if ( (NRF_GPIOTE->EVENTS_PORT != 0) && ( (NRF_GPIOTE-&...