RSS
Sort by » date activity ▼ answers views votes

248 questions

Tagged
  • x
27
views
no
votes
no
answers
Last activity 2017-06-22 13:27:39 +0200 by Jørn flag of Norway

In the MPU6050 module, when the ACC, GYRO data update, INT pin can not produce interrupt signal

NRF52832 S132 MPU6050 TWI

I want to finish the function:

  1. When the ACC, GYRO data update, the INT pin to generate an interrupt, and then in the P026 pin configuration falling edge trigger GPIOTE interrupt,and then read the ACC ...
(more)

19
views
no
votes
1
answer
Last activity 2017-06-22 12:18:32 +0200 by Jørgen Holmefjord flag of Norway

Can nRF52 SDK TWI master write a series of registers

I want to save precious CPU cycles by writing 40 i2c (TWI) registers in one shot. Can I somehow set up the TWI master to write 40 registers (each 16-byte address with 8-bit data)?

Further, can this be done for ... (more)

26
views
no
votes
2
answers
Last activity 2017-06-22 10:55:32 +0200 by omar

twi, mpu650 + hmc5883l

HI, i m beginner in TWI with nrf52832. i want to write a bit in a registre of hmc5883l but i didnt succeed. what i want to do is :

writeByte(devAddr, regAddr, b) ==> ( 0x1E,0x37,1)

tgis my own code ... (more)

12
views
no
votes
no
answers
Last activity 2017-06-22 05:56:37 +0200 by Garen

On the mpu6050 module, the configuration Data y Ready interrupt is not successful [closed]

NRF52832 S132 MPU6050 TWI
I want to finish the function:
1. When the ACC, GYRO data update, the INT pin to generate an interrupt, and then in the P026 pin configuration falling edge trigger GPIOTE interrupt,and then read the ...
(more)

57
views
1
vote
1
answer
Last activity 2017-06-20 13:16:19 +0200 by Sigurd flag of Norway

Combining examples in SDK13

Hello,

I have a problem while combining peripheral examples in SDK13. I am trying to combine twi_sensor and uart but when I do this in uart folder, compiler gives following error:

> Linking target: _build/nrf52832_xxaa.out

> _build/nrf52832_xxaa_main.c.o ...
(more)

186
views
2
votes
2
answers
Last activity 2017-06-20 11:47:24 +0200 by omar

Reading from HMC5883L using I2C

Hi,

I am currently in the process of interfacing the HMC5883L magnetometer with my nrf52 development board. I have verified the connection to be working using a logic analyzer. Furthermore, I have configured the sensor according to another post made ... (more)

40
views
2
votes
1
answer
Last activity 2017-06-20 09:20:31 +0200 by Jørgen Holmefjord flag of Norway

TWI sensor over UART on nrf52832

Hello,

Now, I am merging my UART code with the TWI sensor example (I use SDK 13). Now my error after compiling the code is:

In file included from ../../../../../../components/libraries/util/app_error.h:57:0,
                 from ../../../../../../components/libraries/util ...
(more)

41
views
no
votes
no
answers
Last activity 2017-06-15 18:01:13 +0200 by omar

Problem with implementation of bluetooth code (nRF52832)

When I use the example code 'ble_app_uart_pca10040_s132', I don't kwow why the program is not implemented in the nRF82532. Thank you for your help !

46
views
no
votes
no
answers
Last activity 2017-06-13 21:31:44 +0200 by Justas

twi busy error 17

Hello guys, i randomly get twi error busy 17.

i have #define TWI_DEFAULT_CONFIG_IRQ_PRIORITY 7 in sdk_config.h and .interrupt_priority = APP_IRQ_PRIORITY_LOW in init function.

This is my code:

void twi_init(void)
{
  if(twi_init_status) return;
  ret_code_t err_code;

  const nrf_drv_twi_config_t twi_mma_7660_config = {
    .scl                = SCL ...
(more)

31
views
no
votes
no
answers
Last activity 2017-06-13 15:15:41 +0200 by Mariano

No TWI event in NRF52 SD132, SDK11 and FREERTOS

Hi there, I'm porting an app from NRF51 SD130 to NRF52 SD132, both with sdk11. I do the usual stuff, like changing includes, freertos ports libraries, etc, and everything was working... Until TWI.

I'm using twi no DMA ... (more)

85
views
no
votes
1
answer
Last activity 2017-06-12 18:34:27 +0200 by Turbo J

Three TWI instances

I noticed that there can be three SPI instances (SPI0, SPI1, SPI2) for the nRF52. Is it possible to have three TWI instances? We have a sensor network that requires 6 of the same type of I2C sensor. If not ... (more)

209
views
4
votes
2
answers
Last activity 2017-06-02 12:41:56 +0200 by BosseSand

How can I reuse this library into TWI library in nrF52?

Hello all,

I am trying to make use of some Adafruit libraries for some sensors in my nrF52pca10040, the libraries are these twoAdafruit_BME280.cpp, Adafruit_BME280.h and Adafruit_TSL2591.h,Adafruit_TSL2591.cpp

They both make use of either SPI or ... (more)

83
views
no
votes
no
answers
Last activity 2017-06-01 16:03:42 +0200 by Kristin flag of Norway

Cannot use TWI on nRF51822 with S130-v2.0.1 and nRF_SDK_v12.3

Hi, I’m a newbie of nRF SoC. I have a BLE gadget with nRF51822_xxAC that controls LEDs and obtains data from accelerometers through I2C(TWI) devices. The hex file for the gadget software was originally created using nRF_SDK v8 ... (more)

53
views
1
vote
1
answer
Last activity 2017-05-24 10:35:17 +0200 by Jørgen Holmefjord flag of Norway

TWI master blocking mode & non-powered peripheral [closed]

Hello to all nordic jedi masters!

I have made an observation, on which I would like your confirmation. My combo is: nrf52832 + SDK 11 + SD132.

Will my application "hang" if I am operating the TWI master in blocking mode, and ... (more)

54
views
no
votes
no
answers
Last activity 2017-05-24 10:20:15 +0200 by MANGO

app_twi_perform returns NRF_ERROR_INTERNAL even though the TWI slave IC exists [closed]

Hi, I use the twi_master_using_app_twi_pca10040 (SDK 12.1) to test the TLC59116 LED module.

By changing the example project's code by referring the GitHub code, I have controlled some white LEDs and created my custom C code.

So I ... (more)

52
views
no
votes
1
answer
Last activity 2017-05-21 06:12:37 +0200 by Dan

Problem with multiple TWI slave initialization

Hi,

I'm trying to add a second slave twi device to the twi_sensor example with the LM75B temperature sensor but am having trouble. I am using the bmd-300 evaluation kit. I tried searching for similar information but I couldn ... (more)

57
views
1
vote
1
answer
Last activity 2017-05-18 08:21:20 +0200 by endnode

read slave address in iic(twi) using TWI_scanner example

hello,I am testing twi scanner example of nrf52dk.I want to read slave address, the sda & scl pins are 26 & 27 respectively. I am connected PCA9536 module as slave & address of that module is 0x41.I want to read ... (more)

170
views
4
votes
1
answer
Last activity 2017-05-18 03:36:07 +0200 by RK flag of Singapore

Can nRF52 have four interfaces active: SPIM, SPIS, TWIM0, TWIM1 [closed]

It appears that we can use only three at a time. I would like to use SPIM, SPIS and two TWI masters. Is that possible with the nRF52?

29
views
1
vote
no
answers
Last activity 2017-05-12 19:14:26 +0200 by Olaf

S130 nRF51822 nrf_drv_twi_init softdevice error 0x0001

I'm using SDK 12.2.0 with softdevice S130 V2.0.1 and want to use TWI. Using the ble_beacon example I added the twi code from twi_sensor. Shortly after calling TWI_Init() the softdevice reports an error SVC Handler ... (more)

542
views
2
votes
2
answers
Last activity 2017-05-11 09:23:15 +0200 by Jørn flag of Norway

SPI and TWI Error

I'm writing an nRF52 DK btle application using SDK 12. The DK comunicates with 2 external peripheral via SPI and I2C interfaces. Complilation fails with the error:

._build\spi_twi_example.axf: Error: L6200E: Symbol SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler multiply defined (by nrf_drv_twi.o ... (more)

41
views
no
votes
1
answer
Last activity 2017-05-08 13:36:16 +0200 by Turbo J

NRF_ERROR_DRV_TWI_ERR_ANACK in Blocking Mode

Hi, Nordic Forum!

I'm developing a product that relies heavily on the TWI in master mode. I was using SDK 11.0 and everything was working well.

I decided to port to SDK 13, and when I did, this ... (more)

79
views
1
vote
1
answer
Last activity 2017-04-27 13:34:18 +0200 by Sigurd flag of Norway

[nrf51-dk] Can I use both twi instances as well as an SPI instance?

I have a project where I need both TWI instances as well as an SPI instance to be used with sdcard and fatfs libraries. When I try to compile I get the error: SPI1_TWI1_IRQHandler if I have SPI1_ENABLED or SPI0_TWI0_IRQHandler ... (more)

92
views
2
votes
1
answer
Last activity 2017-04-27 09:56:56 +0200 by Daniel Sullivan

Always getting NCK. [closed]

Hi,

I'm trying to control LSM6DS3 by TWI communication. Slave address of the chip is 0xD4 when SDO/SA0 pin is low.

I'm using SDK13.0.0.

My code is like below.

ret_code_t err_code;

uint8_t flag=0;
uint8_t ...
(more)

243
views
no
votes
no
answers
Last activity 2017-04-26 02:01:55 +0200 by Darren Beckwith flag of Canada

TWI Infinate Loop

I asked the following question, TWI Stuck Bus Recovery, last week and got a great answer which I implemented. I tested my implementation by changing the device addresses to see if my system could detect the problem, report it and ... (more)

75
views
1
vote
1
answer
Last activity 2017-04-25 08:11:13 +0200 by RK flag of Singapore

TWI SCL and SDA pins 7 and 6 not working on NRF52

Hello,

I built a simple I2C application for the LMP91000 and I was successfully able to configure it to read the status register.

However, I tested to see if I could use pin 6 and 7 for SCL and SDA ... (more)

88
views
-2
votes
1
answer
Last activity 2017-04-24 08:12:02 +0200 by Kristin flag of Norway

Sending Char Data via BLE w/MPU6050-nRF51822

EDIT: I used a workaround to get my project working but my question still remains. I just used the template project to send data to my app and manipulated the received data inside the app. I must say I was ...

(more)

153
views
no
votes
no
answers
Last activity 2017-04-22 14:42:13 +0200 by Aurabindo

TWI: prevent repeated start between non stop transfer

Hi,

I am debugging an SSD1306 OLED library, and in the datasheet, it does not explicitly mention support for repeated start bits. But using the nrf_drv_ API's with NRF_DRV_TWI_FLAG_TX_NO_STOP flag set, the successive nrf_drv_twi_tx or nrf_drv_twi_xfer function starts sending ... (more)

39
views
1
vote
1
answer
Last activity 2017-04-22 02:23:54 +0200 by Anatomy_Park

TWIS Slave and TWI Master mode drivers Example

I am working through the TWIS Slave and TWI Master mode drivers Example using SDK 12 with the nRF52832 PCA10040 board and having issues. I am using Minicom through the terminal on a Mac to talk to the board. After ... (more)

79
views
1
vote
1
answer
Last activity 2017-04-21 13:03:15 +0200 by Bjørn Spockeli flag of Norway

TWI Stuck Bus Recovery

What is the best method for attempting to recover from a stuck TWI bus after init?

I am currently initializing the TWI instance with .clear_bus_init=true but this only happens once during the init.

For example in the past we ... (more)

50
views
no
votes
2
answers
Last activity 2017-04-21 08:45:40 +0200 by makerTim

nrf51 TWI burst write error [closed]

Hi everybody,

Chip: nRF51422

Board: PCA10028

Firmware: S130_nRF51_2.0.1

The system hangs when doing burst write reg. MPU9255 can work fine if all writes are [reg, data[0]]; How to solve the problem?

uint32_t i2c_write(unsigned char addr, unsigned ...
(more)

Statistics

  • Total users: 22176
  • Latest user: Poppy Silva
  • Resolved questions: 9658
  • Unanswered questions: 2796
  • Total questions: 23035