RSS
Sort by » date activity ▼ answers views votes

42 questions

Tagged
  • x
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)

314
views
1
vote
2
answers
Last activity 2017-07-26 10:40:18 +0200 by Anne van Rossum flag of Netherlands

SAADC scan mode sample order is not always consistent

I am seeing a problem using the nRF52 SAADC with two analog channels enabled in scan mode. Essentially, channel 0 is measuring an analog signal with gain ~= 15 while channel 1 is measuring the same signal with gain = 1.

The ... (more)

118
views
no
votes
no
answers
Last activity 2017-06-07 19:19:40 +0200 by kellac1

SPIS DMA Setup Slow

Upon testing I am seeing some slowness in setting up the SPIS DMA buffers for the next transaction. I perform a SPIS transaction, and then call nrf_drv_spis_buffers_set(). Setting the SPIS buffers takes somewhere around 20 us to complete. This seems ... (more)

403
views
3
votes
2
answers
Last activity 2017-06-02 19:28:06 +0200 by brian

PDM working example

hi, Is there any working PDM example for nRF52832? or can anyone give a sample initialization code for PDM with easyDMA using the inbuilt nrf_pdm_drv functions?

Regardss, Vishnu

178
views
no
votes
1
answer
Last activity 2017-05-20 20:12:02 +0200 by Petter Myhre flag of Norway

SPIM & easyDMA: understanding Soft Device interrupts and timing

I have another longer question regarding an SPI led driver I’m working with that has some strict timings, but I wanted to ask a more succinct question here since I think I may not be entirely clear on how ... (more)

40
views
no
votes
1
answer
Last activity 2017-03-29 15:49:38 +0200 by John DeWitt flag of United States

nrf51822 TX bytes not back to back at 12K8 or 38K4 baud

We have a nrf51822 device that has to send 6 bytes back to back at 12K8 and 6-18 bytes at 38K4 in the future.

The bytes are in an array and do not need to be generated anymore.

Since the ... (more)

309
views
1
vote
1
answer
Last activity 2017-03-20 09:44:11 +0200 by Wojtek flag of Poland

nrf52 PPI+EasyDMA using timer and SPI

Hi,

I am using nrf52832 for my application. The application share same SPI module for two sensors(with sensors are selected using two chip select pins). Is it possible to implement PPI channel between a timer and this SPI module ... (more)

242
views
1
vote
1
answer
Last activity 2017-03-02 19:52:26 +0200 by vea45

app_twi stuck in internal_transaction_in_progress

Hi,

I'm trying to communicate the nrf52832 with a LIS2DH accelerometer and when I'm trying to read 192 (32*6) bytes of data (to empty the entire accelerometer's FIFO) my code gets stuck on the line 367 ... (more)

299
views
5
votes
1
answer
Last activity 2017-02-16 15:55:21 +0200 by Aryan flag of Norway

EasyDMA array list

Hello, in the nrf52832 PS I've stumbled over the "EasyDMA array list mode". From the description, I'm unable to understand, how this works and what I can archive with this mode (or which problem this mode solves).

Does ... (more)

118
views
1
vote
1
answer
Last activity 2017-02-14 15:32:58 +0200 by Sigurd flag of Norway

why SPI easyDMA maxcount is limited to 256byte?

Hi,

In the nrf52.h, SPIM_RXD_Type is defined as below.

typedef struct {
  __IO uint32_t  PTR;/*!< Data pointer */
  __IO uint32_t  MAXCNT;/*!< Maximum number of bytes in receive buffer*/
  __I  uint32_t  AMOUNT;/*!< Number of bytes transferred in the last transaction*/
  __IO uint32_t ...
(more)

163
views
no
votes
1
answer
Last activity 2017-01-24 16:49:12 +0200 by Stian flag of Norway

Reducing TWI Active Current

Hello,

I am currently working on an ultra-low power project that requires reading an I2C accelerometer multiple times per second. After analyzing the current consumption in the design, it is clear that the TWI peripheral uses quite a bit of ... (more)

506
views
2
votes
1
answer
Last activity 2017-01-24 09:43:42 +0200 by Aryan flag of Norway

SPI EasyDMA MAXCNT limitation

Hi everyone,

I've been testing SPIM with easyDMA, using nrf_drv_spi. I'd like to flush a 6-axis sensor FIFO in one SPI operation (31 samples * 12 bytes = 372 bytes) but as soon as the size of the buffer exceeds ... (more)

221
views
1
vote
no
answers
Last activity 2017-01-10 16:32:03 +0200 by Vicnet

nRF52 - SPIM - read buffer empty

Hi,

I have a problem with my SPIM read buffer. As you can see below, my SPI device received bytes correctly and answer correctly

image description

My code is based on SPI example SDK 12.1.

SPI initialisation

void SPI_init(nrf_drv_spi_t* spi_inst ...
(more)

314
views
3
votes
no
answers
Last activity 2017-01-09 20:10:59 +0200 by Martijn

UARTE in circular mode

Hi,

I have a question about the UARTE peripheral. is it possible to keep the DMA running and let it write to ram in a circular way? I used DMA on the stm32 before and there we can set it ... (more)

302
views
1
vote
1
answer
Last activity 2016-12-05 20:14:52 +0200 by guraaf

Build problem with NRF SDK 12 and EasyDMA

I am a new engineer working with nRF52 and SDK 12 using Makefile project and arm-gcc. I wrote some simple code to try TWI Master and control a i2c slave device. My question is, what Makefile option or other file ... (more)

208
views
1
vote
1
answer
Last activity 2016-11-24 11:04:18 +0200 by Petter Myhre flag of Norway

Set easyDMA

For Setting the easyDMA on I2C, Do I need just to set the TWI0_USE_EASY_DMA to 1 ?

Also do I need to set an arrayList? which?

or can I just use the same settings that I use for TIW as a ... (more)

362
views
1
vote
1
answer
Last activity 2016-11-01 12:19:12 +0200 by Petter Myhre flag of Norway

nrf_drv_spi_transfer returns 0 with Easy DMA

Hi,

I've got some really simple code I've been trying to get working with SPI on nRF52 (while also using SoftDevice):

///MISO, MOSI, SCK set, but SS not
err_code = nrf_drv_spi_init(&spi0, &spi_config, NULL);

// and later, repeated calls to ...
(more)

253
views
no
votes
no
answers
Last activity 2016-09-14 15:03:16 +0200 by genie99945

Can you tell us how to implement SPI using DMA

I'm using NRF52832 SoC and IAR I've to read data from ADC using SPI. ADC will generate interrupt every 4ms indicating data ready. I've configured GPIOTE to sense the ADC interrupt event and I've configured PPI ... (more)

127
views
1
vote
1
answer
Last activity 2016-09-02 13:17:33 +0200 by Einar Thorsrud flag of Norway

how to occur interrupt on SPIM with easyDMA END event?

Hi

I want to get external acceleration sensor values with SPIM using easyDMA on the sensor interruption (using GPIOTE). then after getting all data, I want to calculate them using algorithm on CPU.

In other words, getting the sensor data ... (more)

302
views
1
vote
1
answer
Last activity 2016-08-05 02:33:24 +0200 by bvuong87

nRF52 SDK11 SPIM example transmitting incorrect data

Hi All,

I'm using nrf52 PCA10040 v 0.9.0, with SDK11. No softdevice being used in this case.

While exploring using EasyDMA with the SPI peripheral, the example in sdk11\examples\peripheral\spi was mentioned here to get ... (more)

754
views
no
votes
2
answers
Last activity 2016-06-21 23:06:56 +0200 by John DeWitt flag of United States

APP_UART_COMMUNICATION_ERROR without flow control

My application is using the FIFO UART module to communicate with another MCU. It is also running softdevice S132 v2.0.0.

While most of the time everything runs smoothly, I will occasionally receive a APP_UART_COMMUNICATION_ERROR with reason of overrun ... (more)

349
views
no
votes
1
answer
Last activity 2016-06-03 13:03:08 +0200 by Martin Børs-Lind flag of Norway

nRF52 GPIO DMA

Hello,

Is it possible to use easyDMA to transfer from GPIO to memory without involving the CPU? We need to read from a parallel bus for a short duration, without losing any data. Additionally, what is the maximum input data ... (more)

790
views
5
votes
2
answers
Last activity 2016-05-20 20:07:19 +0200 by FI

nRF52 driver, nrf_drv_spis_buffers_set(): is max buffer size uint8_t? [closed]

Hello,

I am trying to get SPIS EasyDMA to work. Currently the SPIS MISO response with high when the CS is pulled low by another master device, but no correct data present on the MISO.

The SPIS is setup via ... (more)

629
views
no
votes
1
answer
Last activity 2016-05-16 13:33:19 +0200 by Coldson

Use SPIM to send data to panel, but uint8_t only send 255 byte at a time.

Hi, I try to send data through SPIM to my panel(Sharp Memory LCM), and I success get the picture (only part of the picture).

image description

The reason why is that function can only support uint8_t, max length 255 byte, but ... (more)

870
views
2
votes
2
answers
Last activity 2016-05-09 02:30:23 +0200 by FI

PPI to SPIM Task, How to? [closed]

Hello,

I am having much fun with nrf52. I'd like to implement SPI read (few bytes) per GPIOTE event over PPI, the source is the GPIO event and the destination task is a SPI read of few specified bytes ... (more)

664
views
3
votes
2
answers
Last activity 2016-04-28 15:45:44 +0200 by Carsten Wulff

Using DMA with ADC on nRF52832

Is there any ready-made example that would show how to configure nRF52 to make analog-to-digital conversions automatically on the background, without CPU intervention between samples, by using direct memory access (DMA)?

1k
views
2
votes
2
answers
Last activity 2016-04-05 09:30:19 +0200 by Aryan flag of Norway

Can't transmit single byte over SPIM with DMA

Hi,

We are trying to transmit a single byte over SPIM using easyDMA but our logic analyzer shows that 16 bits are being clocked out. The first 8 are our message and the second 8 are unknown (possibly the over-read ... (more)

930
views
no
votes
1
answer
Last activity 2016-03-15 12:45:41 +0200 by endnode

nRF52. Multiple transactions in SPIS mode with EasyDMA

Hi all,

Can I do something like this:

  1. The SPI master sets CSN line low.

  2. The SPI master sends multiple packets. And the total number of bytes exceeds the value of the register RXD.MAXCNT. For example, 1024B.

  3. The SPI ...

(more)

1k
views
no
votes
1
answer
Last activity 2016-03-09 13:56:50 +0200 by Aryan flag of Norway

Does the nrf52 radio EasyDMA write a bit or byte at a time to PACKETPTR?

Hello:

Does the nrf52 radio peripheral EasyDMA write to PACKETPTR on byte boundaries or does it write "bits"? Suppose I have the ADDRESS_BCSTART shortcut enabled and the radio is all set up to receive. Lets say I have the BCC ... (more)

15k
views
no
votes
no
answers
Last activity 2016-03-04 03:25:10 +0200 by FA

Not answered question (nRF52 TWI easyDMA feature) [closed]

Hi,

Can anybody comment on the following question please?

https://devzone.nordicsemi.com/questi...

Thanks!

Statistics

  • Total users: 24451
  • Latest user: Kristin Verdon
  • Resolved questions: 10451
  • Unanswered questions: 3309
  • Total questions: 25466

User menu

    or sign up

Recent questions