DEVZONE BLOG FEED

Hi I followed this Blog post on how to use Segger embedded studio(SES) to compile nrf5 examples and got into some truble with the newest version of SES v3.10c. And this blog post will tell how I solved the problem. I have not tried flashing the compiled code to the nrf52 dev kit, and I will opdate this turotial when I have figured out how to do this (help is appriciated). I have now managed to flash the device.I followed the blog post up to the point where a project template should be choosen (this was no...

Working on fast calculation of CRCs I have an algorithm which uses a precalculated fixed lookup table to process data 1 byte at a time generating a 32-bit CRC. The calculation it's actually doing if the current CRC is C and the next byte is b isC = LOOKUP[ ( C >> 24 ) ^ b ] ^ ( C << 8 )where C is in a 32 bit register and >> is a logical shift. The assembler is here, for the nRF52, as it uses the extended 4-byte Thumb2 instructions // on entry // // r0 - current CRC // r1 - pointer to byt...

 nRF5 SDK v12.0 is now available for Nordic developers to download and use in their designs. We’ve added quite a few things this time around to help you, the big story however is the production grade introduction of secure OTA-DFU with signing.Living in a constantly updated worldSoftware updates are a part of everyday life today. Barely a month passes without at least a few things we own getting a software shot in the arm from their manufacturers, be it feature improvements or resolution of ...

DEVZONE FORUM

28.09.2016

COMP Shortcuts

I have difficulties understanding the COMP APIs,this function below starts after initializing the COMP the peripheral.nrf_drv_comp_start(NRF_DRV_COMP_EVT_EN_CROSS_MASK,NRF_DRV_COMP_SHORT_STOP_AFTER_CROSS_EVT);It expects a secoend argument which set the the shortcut register.It is no where mentioned in the documentation that the short cut register needs be set.But how can I start the COMP with out using the "NRF_DRV_COMP_SHORT_STOP_AFTER_CROSS_EVT" if I want to capture every crossing event. ...

HiI am trying to put nrf52 device to system off mode, and wake up by button press.If I do not enable the softdevice everything works fine, and button press wakes up the device. But if I enable the softdevice then button press has no affect.here is my code: uint32_t err; // config wakeup button nrf_gpio_cfg_sense_input(BUTTON_GPIO, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW); // enable softdevice err = sd_softdevice_enable(NRF_CLOCK_LFCLKSRC_RC_250_PPM_1000MS_CALIBRATION, softdevice_assertion_handler1); /...

I want to combine two applications, both of them having two services. One application resides at 0x16000 and other one resides at 0x249f0. I am using softdevice 7.3 and sdk 6. What I wanted to do is that, when I press one button it should to jump to the second application. I combined both applications using the mergehex. If I upload the combined image with nrfjprog, both applications will work fine. But if i upload the firmware using dfu, the second application will not work. Why does the second applicati...