[riot-notifications] [RIOT-OS/RIOT] cpu/stm32_common: Fix i2c_2 NACK stopping twice (#11259)

MrKevinWeiss notifications at github.com
Mon Mar 25 12:35:24 CET 2019

### Contribution description
Errors occur for any STM32 F1, F2, L1, and F4 using i2c_2.c.  When an address NACK occurs the stop bit gets set twice.  This stop bit cannot be cleared unless reinitialized.  As a result all following commands will not work because the an impossible stop must occur.  This PR removes the additional stop from happening so multiple nacks can occur.

### Testing procedure
Flash a STM32 F1, F2, L1, and F4 based board with 

    BOARD=<xxx> make flash term -C tests/periph_i2c/
and attempt to 

    i2c_read_byte 0 <any_address_that_will_nack> 0
multiple times.  You should not get a timeout, on master you will.

### Issues/PRs references

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


-- Commit Summary --

  * cpu/stm32_common: Fix i2c_2 NACK stopping twice

-- File Changes --

    M cpu/stm32_common/periph/i2c_2.c (2)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190325/be5acf85/attachment.html>

More information about the notifications mailing list