Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added NACKIE flag to read and write operations #305

Merged
merged 1 commit into from
Oct 18, 2019

Conversation

nesos
Copy link
Contributor

@nesos nesos commented Oct 17, 2019

The read and write operations are missing the NACK interrupt enable flag. This causes devices to be trapped in an endless loop when the addressed device is not responding.
In this case no interrupt will be raised, the transaction will not be detached and stays busy forever.

I enabling the NACK interrupt when starting the transaction is fixing this issue

@salkinium
Copy link
Member

Is there also a NACKIE that needs to be enabled for the non-extended STM32 driver?

@nesos
Copy link
Contributor Author

nesos commented Oct 17, 2019

Is there also a NACKIE that needs to be enabled for the non-extended STM32 driver?

I haven't checked that. I'm currently working only with the STM32F042K6. I'll check this later tonight on on a STM32F411 board

@nesos
Copy link
Contributor Author

nesos commented Oct 17, 2019

The problem on getting the system stuck when trying to read from I2C nodes that don't respond does not appear on the non-extended master driver. So no need to change on that part.

@salkinium
Copy link
Member

salkinium commented Oct 17, 2019

Great!

Can you rebase your commit so I can fast forward develop?

@nesos
Copy link
Contributor Author

nesos commented Oct 18, 2019

Great!

Can you rebase your commit so I can fast forward develop?

Done!

@salkinium salkinium merged commit c04e6a4 into modm-io:develop Oct 18, 2019
@salkinium
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants