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

Hello,I just received my BMD-200 eval board today and cannot get any of the examples working. I started out trying to get blinky to work using GCC and the make files provided. I am able to successfully build the projects. The _build directory has the .hex files. It is not clear what the next step should be here. make soft_device seems to just load the Soft Device so how does the example get loaded in this paradigm? What dictates where in memory it gets loaded in the GCC paradigm? Is this important? After ...

I am trying to figure out a way to secure my DFU (via BLE) such that someone cannot sniff the and copy my hex code (and decompile). I cannot use Pairing or Bonding as that doesn't work for our usecase. So I need to a way to encrypt my hex image in a way that it can be decrypted in the bootloader upon reciept. As far as I can see there is no AES decryption available, so the only option would be inventing my own data encryption/decryption. However I wanted to post here just in case I am wrong in my conclusi...

It seems to be a straightforward BLE app but I cannot make it work.I start fresh from the “ble_app_template” in nRF51 SDK 8.0.0, and try to add two service data (battery level and temperature) in advertising packet. I make those following changes1. Change the clock source to the internal RC oscillator2. Add two custom functions “battery_level_get()” and “temperature_data_get()”. I can confirm those two functions work in my other BLE beacon app.3. Modify the advertising packet in “advertising...