[riot-notifications] [RIOT-OS/RIOT] cpu/nrf52: i2c bugfix (#11512)

Igor Knippenberg notifications at github.com
Mon May 13 11:54:14 CEST 2019


### Contribution description
During the testing of a device driver for the u-blox SAM-M8Q GPS receiver on the NRF52840-MDK board I noticed that I couldn't get the slave to ACK over I2C no matter what I tried (seemed like a short on SDA between master and slave). The driver works just fine on the Zolertia Firefly. 
The nRF52840 datasheet states on page 431 to set the GPIO drive configuration (bit 8-10) of the PIN_CNF register to S0D1(0x06) for both, SCL and SDA. I fixed this in the cpu/nrf5x_common as well as cpu/nrf52. The nrf51 already sets the drive configuration to S0D1.

### Testing procedure
Test on any board with a NRF52 with I2C configured. For me it works fine now with the NRF52840-MDK board and the u-blox SAM-M8Q as well as the Bosch BMX280 devices.

### Issues/PRs references
None

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/11512

-- Commit Summary --

  * cpu/nrf52: i2c bugfix

-- File Changes --

    M cpu/nrf52/periph/i2c.c (4)
    M cpu/nrf5x_common/include/periph_cpu_common.h (22)
    M cpu/nrf5x_common/periph/gpio.c (4)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11512.patch
https://github.com/RIOT-OS/RIOT/pull/11512.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11512
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190513/4aa0e874/attachment.html>


More information about the notifications mailing list