mipidisaster / mipidisaster/miLibrary

I2C NACK interrupt will cause de-synchronisation of data

Open
#1 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug invalid
Dominant language
C++
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

https://github.com/mipidisaster/Library/blob/73765c90a75f2919aae85a17281eb30dd2f5ff59/drv/I2CDevice/I2CDevice.cpp#L1202-L1210

As the title says, currently if there is a NACK detected, the target array (if GenBuffer) will cause de-synchronisation for any Master writes (read should be alright)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in drv/I2CDevice/I2CDevice.cpp at lines 1202-1210 and trace the NACK interrupt path for GenBuffer master writes. Reproduce or inspect the write handling, then verify that a NACK no longer desynchronizes the target array while read behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.