RSS
Sort by » date activity ▼ answers views votes

277 questions

Tagged
  • x
65
views
no
votes
1
answer
Last activity 2017-10-12 20:07:19 +0200 by Nguyen Hoan Hoang flag of Canada

Issue running TWI/SPI on nRF52832, works with Kiel but not GCC

Hi,

Just curious to know if anyone else had this issue and how they solved it.

My colleagues and I are working on code based on the Nordic Uart Service, in SDK13.1.0 with SD132v4.0.2 on an ... (more)

287
views
no
votes
1
answer
Last activity 2017-10-12 01:28:58 +0200 by Yu Peng

repeated start for twi master rx operation

Hi,

I am using nRF52 as a twi mater to read some data from a touch sensor, I want to perform below operation:

twi start

twi rx register_a for few bytes

repeated start

twi rx register_c for few bytes

repeated ... (more)

303
views
2
votes
2
answers
Last activity 2017-10-04 09:30:31 +0200 by Martin Børs-Lind flag of Norway

Error when using c++ with TWI

I am trying to use gcc to compile a c++ code for nRF52. I am using the TWI library and am getting the error below. Can anyone help me rewriting this macro so that it compiles normally ?

Compiling file: main ...
(more)

41
views
no
votes
no
answers
Last activity 2017-10-03 23:36:55 +0200 by Shahid Ali Nadaf

Read register issue using nrf52 TWI

Hi ,

I have recently bought a nRF5232 PCA10040 development kit and i am trying to interface nRf52832 development kit(Master) with AS3955(slave) over twi. I tested the twi_scanner example and AS3955 responds with correct slave address(i.e 0x50 ... (more)

41
views
no
votes
no
answers
Last activity 2017-10-02 13:01:30 +0200 by StefanNoll

Intersection of PDM Module with TWI Module

Dear Nordic team,

I have a running NRF52 with a firmware based on the freeRTOS demo. To this demo I added the PDM Support Module and the TWI Module. As soon as both sensors are available, I get very random ... (more)

74
views
3
votes
1
answer
Last activity 2017-10-02 09:07:04 +0200 by Martin Børs-Lind flag of Norway

TIMER_TASKS_START increases power consumption when TWI is in use from 13uA to 450uA

Hi, i would like to implement a very low power counter and used the template from this post. I've modified the example and used TIMER2 in counter mode triggered by LPCOMP through PPI. This worked fine and results in ... (more)

76
views
no
votes
1
answer
Last activity 2017-09-27 22:47:39 +0200 by tanekaf

TWI and 11-bit I2C slave address devices

Hi. We are attempting to use the Infineon XMC1202 LED shield with our NRF52 device. The XMC1202 has an I2C address of 0x15E, instead of the traditional 7 bit address. We have been using the simple non-blocking TWI implementation to ... (more)

117
views
2
votes
2
answers
Last activity 2017-09-26 17:16:11 +0200 by serzh

nRF52832 NRF_ERROR_BUSY from nrf_drv_twi_tx()

i used aplication twi_sensor form nRF5_SDK_12.3.0_d7731ad and i use s132.i conected mpu9060 every time get error on my terminl NRF_ERROR_BUSY.There is exemle of codemain.c and scren from terminal d324ssa42d3434234.png what i do wrong ... (more)

53
views
no
votes
no
answers
Last activity 2017-09-25 12:46:49 +0200 by Jørgen Holmefjord flag of Norway

Issue using NRF_DRV_TWI_XFER_DESC_TXRX TWI master driver

At the very end of this post from Nordic Info center I am doing the exact example at the very end.

http://infocenter.nordicsemi.com/inde...

This is the start to do a transmit read transaction ===>

nrf_drv_twi_xfer_desc_t xfer = NRF_DRV_TWI_XFER_DESC_TXRX(addr ...
(more)

55
views
no
votes
no
answers
Last activity 2017-09-24 23:02:41 +0200 by julienh

Application crash after disconnection

Hi,

I have an application with an accelerometer. This one communicate in I2C (TWI ). The accelerometer send a "data ready" signal every 20ms. I'm using the GPIOTE module to detect this signal and read the acceleration (I2C).

Each time ... (more)

119
views
no
votes
no
answers
Last activity 2017-09-11 10:46:01 +0200 by trigerion

nRF52 spurious resets with SDK12.2.0 - How to resolve?

Hello,

we have developed a solar powered LED module with an additional battery. It is based on the nrf52832. The WDT and TWI is mainly used and for BLE the soft device is applied. From time to time, the NRF ... (more)

553
views
no
votes
3
answers
Last activity 2017-09-09 11:16:01 +0200 by Patikhom K.

BMD300 I2C/TWI not working

Hi,

I am trying to communicate with MLX90615 (here) sensor using BMD300. nRF52 DK is used to program the device. I am testing with a sample code which detects any I2C compatible device which is connected to SDA and SCL ... (more)

576
views
no
votes
3
answers
Last activity 2017-08-30 17:40:48 +0200 by Paolo A. flag of Italy

TWI clock pull up

The data sheet recommends that both the TWI clock and data lines use pull ups and the GPIOs should be set to S0D1, essentially open collector drive. I can see the need for this on the data line, but if ... (more)

84
views
no
votes
no
answers
Last activity 2017-08-25 09:45:13 +0200 by Kazik

TWI crashes nRF51822 with s130

Hello!

I'm using SDK 12.3.0 with nRF51822. Unfortunately since the begining I've got a problem with TWI interface. It keeps crushing my app. For no reason. At the beginning I was using a FreeRTOS. I did ... (more)

51
views
no
votes
no
answers
Last activity 2017-08-24 17:45:21 +0200 by RHTPaul

Getting unexpected NRF_ERROR_BUSY return from nrf_drv_twi_tx() which never clears on nRF52832

I have an application which uses the S132 softdevice and communicates with a DAC over I2C. The twi is in non-blocking mode. Furthermore, there is a significant delay between nrf_drv_twi_tx calls which should allow the first transfer to complete before ... (more)

49
views
no
votes
no
answers
Last activity 2017-08-17 17:17:23 +0200 by Alex

TWI blocks after send receive sequences

Hello

I am using a custom board, based on nRF52832 CIAAB0. I have also S132 installed, and I am using SDK 13.1.0. TWI pins are P0.16 - SCL & P0.18 - SDA. The code is based on twi_sensor example ... (more)

35
views
no
votes
no
answers
Last activity 2017-08-10 14:36:16 +0200 by anv

TWI. RXDREADY event signaled, TXDSENT - not.

I am trying to communicate with DS1307 (RTC) using TWI on nRF51822. I have configured the pins, address (0x68 fixed for DS1307), frequency and enabled TWI.

Now I am about to read the register 0x00 of the slave (DS1307) I ... (more)

540
views
no
votes
2
answers
Last activity 2017-08-10 11:52:24 +0200 by anv

Problem in twi/i2c communication receiving data

Hi<br> I'm trying to communicate between nrf51-DK and arduino using twi. I was able to send data from nrf51-DK to arduino using nrf_drv_twi_tx but when I'm trying to send the data from arduino to DK, I'm ... (more)

51
views
no
votes
no
answers
Last activity 2017-08-10 11:42:51 +0200 by All4here

PWM and TWI not working at the same time [closed]

Hello, i have Nrf52840, here is the code for PWM

APP_PWM_INSTANCE(PWM1, 1);

uint8_t cBuzzer::_PWM_init(uint32_t Time_uS){
app_pwm_uninit(&PWM1);
app_pwm_config_t pwm1_cfg = APP_PWM_DEFAULT_CONFIG_1CH(Time_uS, Buzzer_Pin);    
/* Initialize and enable PWM. */
if (app_pwm_init(&PWM1, &pwm1_cfg, NULL) != Successfully) {return Error ;}
app_pwm_enable(&PWM1);
return ...
(more)

63
views
1
vote
2
answers
Last activity 2017-08-08 10:18:13 +0200 by RK flag of Singapore

TWI HW producing shortened ACK clock pulse

Hi everyone,

we are trying to use the TWI interface of the nRF52832 to communicate with a TI BQ28Z610 fuel gauge, using the TWI driver of the nRF5_SDK_13.0. For the last few days we had seen always the same ... (more)

72
views
1
vote
1
answer
Last activity 2017-08-02 13:33:57 +0200 by Hung Bui

TWI locks on nRF51822 v3

hello,

i am experiencing issues with the TWI library on the smart beacon kit rev. 1.3.0 which features the v3 of the nRF51822. i had the same experience on the new nRF52840(preview devkit) but it is not ... (more)

80
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)

171
views
3
votes
3
answers
Last activity 2017-07-28 18:32:17 +0200 by Cooper

nrf52832 use specific pin assignment can cause twi function not working

Hi

I found a strange issue on nrf52832. And I use nRF5-SDK-v13.1.0.

When I assignment P0.7->SCL & P0.6->SDA, the twi function not working. But I change the assignment to P0.6->SCL & P0.7->SDA ... (more)

230
views
1
vote
2
answers
Last activity 2017-07-27 17:42:04 +0200 by Cooper

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)

75
views
no
votes
no
answers
Last activity 2017-07-27 13:52:46 +0200 by omar

NRF 52 GY-87

Hi,i m working in uav project with nr52 and GY-87 that contains mpu6050 and hmc8553 as sensor. i use i2clib to do connexion with twi created by jeff rowberg, then i wrote an mpu6050 library that worked vey well ... (more)

247
views
no
votes
1
answer
Last activity 2017-07-26 14:44:21 +0200 by Kristin flag of Norway

want to write and read data to/from Flash?

I want to add some configuration files to nrf52, so can I write data in flash and read when I want.......I have the example code of twi master_twi slave but it engages the pin so I need a separate ... (more)

78
views
1
vote
1
answer
Last activity 2017-07-25 21:04:08 +0200 by zolotiyeruki

TWI doesn't work when a handler is set

I'm learning how to use TWI with the nRF52 PDK, and I have it connected to a LSM6DS3 module for testing.

When initializing the TWI, if I use the following line, it works great:

ret_code_t err_code = nrf_drv_twi_init(&m_twi, &twi_config ...
(more)

51
views
no
votes
no
answers
Last activity 2017-07-21 09:34:24 +0200 by Jørgen Holmefjord flag of Norway

I am running MCP9808 on NRF52 EVB, i have this following program which is not giving the correct values on terminal display

I have this program running on KEIL 5, what could be the problem with the code and Do you guys have any sample code for mcp9808? Note- I am using the wired connection not a Bluetooth app to sense the ... (more)

102
views
1
vote
2
answers
Last activity 2017-07-19 07:26:10 +0200 by Michal

TWI stops working - SDA bus always LOW

Hi!

I'm developing a project with nrf52832 and I'm getting some problems. The micro is only communicating with an accelerometer (MMA8453) and after some time the communication stops. Using a digital analyzer is possible observe that the SDA ... (more)

174
views
1
vote
no
answers
Last activity 2017-07-17 13:16:49 +0200 by Stian flag of Norway

TWI bus freeze after several thousand tx/rx cycles

I'm periodically polling a TWI sensor with a blocking call, as in

ret_code_t err_code;
m_xfer_done = false;

err_code = nrf_drv_twi_tx(&i2c, address, subAddress, 1, true);
APP_ERROR_CHECK(err_code);
while (m_xfer_done == false) {};

if (err_code == NRF_SUCCESS) {
        m_xfer_done = false;
        err_code = nrf_drv_twi_rx(&i2c, address, dest, count ...
(more)

Statistics

  • Total users: 24932
  • Latest user: Shani Whitlock
  • Resolved questions: 10683
  • Unanswered questions: 3453
  • Total questions: 26151

User menu

    or sign up

Recent questions