Happened when I occasionally compare the NRF_TWIM_Type struct in nrf52.h with the TWI registers (table 127) in nRF52832 Product Specification v1.4, there are many differences..
Seems some code missed basic check before release, let alone test.
Happened when I occasionally compare the NRF_TWIM_Type struct in nrf52.h with the TWI registers (table 127) in nRF52832 Product Specification v1.4, there are many differences..
Seems some code missed basic check before release, let alone test.
there are many differences
such as?
Such as EVENTS_RXDREADY, see if you can find it in the struct.
EVENTS_RXDREADY is for TWI without EasyDMA. TWIM uses easyDMA, EVENTS_RXDREADY does not exist in this case but EVENTS_LASTRX is.
EVENTS_RXDREADY is for TWI without EasyDMA. TWIM uses easyDMA, EVENTS_RXDREADY does not exist in this case but EVENTS_LASTRX is.
I realized that table 127 is not for TWIM, but for TWI.
Table 76 is for TWIM, which match NRF_TWIM_Type exactly.
So, it's me who have mistake, not sdk 15..