-
Notifications
You must be signed in to change notification settings - Fork 1
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
Panics in release mode #67
Comments
Hi, I was testing with
The firmware by cargo-building in the debug profile doesn't panic upon initialisation. But the ELF generated and *.DFU converted between the debug and release profile differ quite a lot:
|
I have probed the I2C lines and looks like this has to do with resetting the ADS7924. Specifically, after issuing a software reset to the device, we currently wait 100uS for the device to come back online. A probe of the I2C lines indicates this may not be enough time for the device to come back up: I think an appropriate fix here is to instead poll continuously after the reset is sent to wait for the device to come back online. |
Additional testing indicates we cannot continuously poll the device either, as it will continuously NAK the request. I would recommend we just increase the delay period to 500uS and see if we have any further issues. |
The code should work fine in release mode.
The text was updated successfully, but these errors were encountered: