-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
SPI SS conflicts with 'gpio15 must be low during boot' #2466
Comments
can not use a pulled down pin (GPIO15) for I2C ;) I2C can work only with pull-ups. |
MOSI, MISO, SCK and SS are SPI pins and if you use SS for slave select, you need to make sure that the salve is not pulling it up by pull-up. |
BUMMER, Ment SPI, not I2C! So what you are saying is that I cannot pull-down and SPI works with pull-up, but it should not be pulled-up for normal boot operation.... Now I am confused. :( |
@me-no-dev the datasheet of my slave device says: So in my code I can say
But then still, if you are saying I need pull-up to make SPI work, how can I avoid a wrong boot-mode? |
The CC1101 is an SPI-bus device - it does not use the I2C-bus... On 31 August 2016 at 15:52, supersjimmie notifications@github.com wrote:
|
@duncan-a / @me-no-dev I know, I changed my question because I meant SPI instead of I2C. |
having a pull-down on pin15 does not break SPI communication. You can in your code init the pin HIGH because that will happen after boot anyway. |
Thanks @me-no-dev if that is possible then that is how I will start building. |
Hi, sorry for the bump, |
Hi ! |
Remove unnecessary components inherited by ANAVI Gas Detector. Add 4.7K resistor to GPIO15 of ESP8266. This way it is possible to use this pin for SPI communicaiton after booting the board: esp8266/Arduino#2466 (comment) Signed-off-by: Leon Anavi <leon@anavi.org>
Hi Maigre,
|
Hi Maigre,
|
In common.h the I2C SS is specified as:
static const uint8_t SS = 15;
But for a normal boot, gpio15 must be pulled low.
When I attach an I2C device to MOSI, MISO, SCK and SS, how can I be certain the esp will still boot? (in my case it fails 'randomly')
Would a pulldown resistor on gpio15 be enough to fix this correctly? Or should I remove the device' SS at each boot?
The text was updated successfully, but these errors were encountered: