RSS
Sort by » date activity ▼ answers views votes

352 questions

Tagged
  • x
38
views
1
vote
1
answer
Last activity 2017-09-21 13:49:13 +0200 by DerPMO

nRF52 SPI loops when waiting for NRF_SPI_EVENT_READY after initialisation [closed]

So I switched from Bluemod+S (nRF51822) to Bluemod+S42 (nRF52832) on my custom board and am trying to adapt my existing code to work on the newer model. Apart from various obvious and some not so obvious changes I ... (more)

26
views
no
votes
1
answer
Last activity 2017-09-15 16:15:13 +0200 by Bill Finger

nRF52832 SPIS PAN 109 Workaround Issue

I've been using the nRF52832 chip for over a year and it works great. However, for a new project I designed a board so that the nRF52 chip was the slave on a SPI bus, and I immediately ran ... (more)

30
views
no
votes
1
answer
Last activity 2017-09-15 09:29:44 +0200 by Martin Børs-Lind flag of Norway

Why isn't my PPI/SPI channel triggered with GPIOTE?

Hello,

I would like to detect a change in a pin(GPIO_IN_NUMBER) and depending on it I would like to trigger a SPI transaction, this should happen through PPI.

So far I have configured my PPI in this way, is ... (more)

34
views
no
votes
1
answer
Last activity 2017-09-11 16:03:24 +0200 by Prasad

Are SPI interrupt disabled in GPIOTE handler?

I am writing code for nrf51822 with softdevice and an accelerometer is connected to the nrf chip. The accelerometer provides interrupt to nrf chip over GPIOTE whenever there is data available to read. Upon receiving the GPIOTE interrupt, I am ... (more)

59
views
no
votes
no
answers
Last activity 2017-09-11 10:39:24 +0200 by ndarkness

Why is not my Timer triggered when configured through PPI and SPI?

Hello,

I am trying to use ArrayList for EasyDMA along with PPI but I am not sure whether or not I am configuring it properly to be used with the SPI interface.

So far I have set it up as ... (more)

76
views
no
votes
1
answer
Last activity 2017-09-07 16:00:16 +0200 by Turbo J

Can I get data from an external ADC without using CPU time?

Hello,

I would like to make use of an external ADC that is connected to my nRF52832 through SPI & easyDMA,minimizing the use of the CPU (or without using the CPU).

The sampling frequency, when nRF52832 will request a sample ... (more)

69
views
no
votes
1
answer
Last activity 2017-09-03 19:46:10 +0200 by Antonio

Bug in SPI master driver w/SDK 14.0

I am using SPI 2 (not SPIM) and just migrated my project to SDK14 from 13.1.

I kept getting "Wrong configuration" on compile, until I realized that on the nrf_srv_spi.c on the #defines you replicated SPI1_WITHOUT_DMA twice on ... (more)

433
views
1
vote
1
answer
Last activity 2017-08-30 18:48:55 +0200 by Nestor Matas

nrf52832 SPI to builtin LIS2DH accelerometer

Hi, I have the D52QD2M4IA-A chip (from dynastream) that has inside nrf52832 chip. It has also builtin an onboard LIS2DH accelerometer. However when I am trying to connect to it through SPI interface this seems not to respond back. Can Anyone help?

24
views
no
votes
1
answer
Last activity 2017-08-30 09:38:06 +0200 by Martin Børs-Lind flag of Norway

Writing in SD card at fixed time-intervals by reading from ADC

Hi,

I have successfully sampled my signal using SAADC example at a sampling frequency of 10 Hz. I am using a flag in the saadc_callback() function which I read from the main() function and accordingly instruct to write the sampled ... (more)

648
views
1
vote
4
answers
Last activity 2017-08-23 16:08:53 +0200 by airshaven

nRF52832- why when using nrf_drv_spi with an ADXL362 I need to set the clock in high drive (H0H1)

Hello!

I am working on a project. The goal is to retrieve every seconds some acceleration data from the ADXL362 accelerometer.

I configured the spi in blocking mode by passing NULL as event handler nrf_drv_spi_init(_spi, &_spi_config, NULL);

This method ... (more)

810
views
1
vote
4
answers
Last activity 2017-08-21 23:10:17 +0200 by ShannonPahl

Transfer more than 255 bytes with SPI master on nrf52

Hi everybody,

I am trying to read a 1024 bytes FIFO buffer from an IMU (Bosh BMI160) using the SPI master driver on nrf52832 and sdk 12.2.

I know others had the same problem and I've read the ... (more)

27
views
no
votes
no
answers
Last activity 2017-08-21 16:20:22 +0200 by ndarkness

Does setting down SPIS_CSN_PIN for one SPI instance affect the other?

Hello,

I have a brief question regarding to SPI, I have two instances of SPI, SPI0 and SPI1, I was wondering whether or not changing the value of SPIS_CSN_PIN to SPI0 would affect to SPI1 and viceversa. Could you enlighten ... (more)

42
views
1
vote
1
answer
Last activity 2017-08-21 12:29:07 +0200 by Jørgen Holmefjord flag of Norway

How do I specify my register address for SPI driver interface?

Hello,

I am using SPI interface to communicate with a sensor BMI160, looking into the driver for BMI160 I can see how the low level functions for reading/writting are used like this

read(dev->id, reg_addr, data, len);

However ... (more)

46
views
1
vote
1
answer
Last activity 2017-08-18 11:52:50 +0200 by ndarkness

Can I use same handler for two different SPI's interfaces?

HEllo,

I was wondering whether or not is advisable to use the same handler to handle transmission/reception of data over SPI0 and SPI1 interfaces.

I have two sensors connected each one to each SPI, let's say sensorA to ... (more)

34
views
no
votes
1
answer
Last activity 2017-08-18 11:03:08 +0200 by Jørn flag of Norway

Is there any spis event generated when the slave is selected?

Currently I am using the spis driver to send data through the SPI peripheral. On the event handler I want to capture the time in which the chip is selected, which in the case of my application, is when the ... (more)

90
views
no
votes
1
answer
Last activity 2017-08-17 14:24:14 +0200 by Nick Bentzen

SPI MOSI default high? NRF SDK 12.2.0

I am attempting to interface a Winbond flash device with the NRF52. The datasheet does not specify the idle state of MOSI when reading from the device. However, I cannot make the flash chip work with the NRF52. In the ... (more)

159
views
5
votes
3
answers
Last activity 2017-08-16 10:34:39 +0200 by Nicolas Brunner flag of Switzerland

SPI MISO is missing pulldow

Hello, I did used nrf_drv_spis.c (SDK SPI Slave) with nrf_drv_spi.c (SDK SPI Master). And I notice that both module configure SPI MISO line as input without any pull (neither up nor down). In datasheet for SPIS block is ... (more)

21
views
no
votes
no
answers
Last activity 2017-08-16 09:07:24 +0200 by ChaitanyaP

SPI not working in infinite loop

Hi experts

I am trying to interface an external ADC to NRF51-DK i am presently reading SPI ADC code values on BUTTON press event. I am able to read the values from ADC properly on button press.

I want to ... (more)

40
views
no
votes
1
answer
Last activity 2017-08-15 07:03:31 +0200 by RK flag of Singapore

Half-Duplex 2-wire spi?

I'm working with a sensor that communicates over spi, but it uses a single wire for miso and miso. Is there any alternative to just bitbaning the protocol? Specific sensor (for reference) is the adns2620. Thanks!

101
views
3
votes
3
answers
Last activity 2017-08-08 15:41:19 +0200 by VS60

Softdevice and SPI not Working Together

Hi.

I am working on a project which is using SPI and BLE together.

I wrote SPI code before without soft device. It has simple update function which is sending SPI data. And also i have an timer interrupt which ... (more)

50
views
1
vote
1
answer
Last activity 2017-08-04 12:03:29 +0200 by Radiohead

SPI example programming Error

Hello All,

I've got two Rigado development boards that I'm programming with KEIL uvision 5. I've tried a few examples, for example: blinky, which program and work fine. Now I'm trying out the SPI Master and ... (more)

76
views
no
votes
no
answers
Last activity 2017-08-02 03:50:02 +0200 by dawsonc

How to determine if peripheral has been initialized

Hello,

I'm working on an application in which I have to dynamically switch between a TWI master peripheral and SPI master peripheral that use the same peripheral ID (our application requires this, since we need the extra buses). Is ... (more)

31
views
no
votes
no
answers
Last activity 2017-07-22 12:48:29 +0200 by Khan

Different master instances for two slaves in nrf51422

Hi All,

I am using nrf51422, SDK 12.0.0, an SPI OLED display 128x32, and an SD card.

I want to interface an OLED display and an SD card onto the nrf51422. Although my SD card and the OLED ... (more)

115
views
2
votes
2
answers
Last activity 2017-07-22 10:59:35 +0200 by endnode

APP_ERROR_CHECK(nrf_drv_spi_transfer(&spi, m_tx_buf, m_length, m_rx_buf, m_length));

Hi All,

I am a beginner,Can you please explain me what is the role of this line?

APP_ERROR_CHECK(nrf_drv_spi_transfer(&spi, m_tx_buf, m_length, m_rx_buf, m_length));

566
views
2
votes
3
answers
Last activity 2017-07-22 00:51:03 +0200 by Ben

SPI Master MISO Noise Issue

I'm trying to connect to a ST LSM6DS3 via SPI on the Nordic chip. I have used SPI on Nordic with other peripherals but couldn't seem to get it to work with this ST chip. Eventually, after debugging ... (more)

221
views
no
votes
1
answer
Last activity 2017-07-19 14:14:52 +0200 by bryanhsieh

SPI Slave Problem

Hi,

I am trying to develop a custom board using NFR52832 which involves writing data to a NAND flash. To download data from NAND to the pc, a ftdi cable (C232hm) is used. The cable has a ftdi chip which ... (more)

135
views
2
votes
1
answer
Last activity 2017-07-18 09:35:54 +0200 by segFault

problem with nRF52832 BLE + SPI + FreeRTOS

Hi everybody.

I encountered issues with the formentioned setup. In my project I'm using latest SDK 13.1, softdevice S132 v.4.0.2. I'm compiling the project with latest GCC.

I have two tasks:

  • LCD driver communicating ...
(more)

155
views
2
votes
2
answers
Last activity 2017-07-15 05:50:13 +0200 by JD

Getting lots of NRF_ERROR_RESOURCES on notifications

We have an external interrupt every 4ms that collects one 24-bit sample from an analog front end via SPI. After Collecting 6 samples (18 bytes) we send a notification with the data which should then be every 4ms * 6 = 24ms ... (more)

546
views
5
votes
2
answers
Last activity 2017-07-13 10:37:12 +0200 by Jørgen Holmefjord flag of Norway

NRF52 as SPI master with Multiple Slaves

Hello, my project has 3 different devices (2 sensor and flash memory) on the same SPI bus all with their own CS. I ran across the following question, which has a response for a workaround for the NRF51. Upon jumping ... (more)

75
views
no
votes
no
answers
Last activity 2017-07-12 00:45:31 +0200 by Ivan Kolesnikov

NRF51822: nrf_drv_spi_transfer hangs

I have initialized SPI0 master by this code:

static const nrf_drv_spi_t spi = NRF_DRV_SPI_INSTANCE(0);
...     
nrf_drv_spi_config_t spi_config = NRF_DRV_SPI_DEFAULT_CONFIG;
spi_config.ss_pin = SPIM0_SS_PIN;
spi_config.miso_pin = SPIM0_MISO_PIN;
spi_config.mosi_pin = SPIM0_MOSI_PIN;
spi_config.sck_pin = SPIM0_SCK_PIN;
spi_config.mode = NRF_DRV_SPI_MODE_1;
APP_ERROR_CHECK(nrf_drv_spi_init(&spi, &spi_config, NULL));

Then I try ... (more)

Statistics

  • Total users: 24465
  • Latest user: Phil Gellert
  • Resolved questions: 10456
  • Unanswered questions: 3314
  • Total questions: 25472

User menu

    or sign up

Recent questions