Page 1 of 1
NO READ SIGNAL - SPI_PIN_READY doesn't return to low
Posted: Wed Mar 13, 2019 8:13 am
by NatroN
Hi,
I don't get the exact use from that SPI_PIN_READY. Alot of times I run into a loop where SPI_PIN_READY goes HIGH end never returns to low (except I powercycle my Freematics).
Any way to work around this? (Using SPI - Can bus only)
thanks
Re: NO READ SIGNAL - SPI_PIN_READY doesn't return to low
Posted: Mon Mar 18, 2019 4:17 pm
by stanley
Are you using the latest library?
Re: NO READ SIGNAL - SPI_PIN_READY doesn't return to low
Posted: Tue Mar 19, 2019 12:44 am
by NatroN
No I'm not because I modified mine quite a bit to make it working with electic vehicles.
Are there a lot of changes recently or known bugs with SPI? Which section should I have a detailed look at?
Re: NO READ SIGNAL - SPI_PIN_READY doesn't return to low
Posted: Wed Mar 20, 2019 8:44 am
by NatroN
Well seems not to be SPI related to be honest.
Did more research and found out that the STM32F103C8T6 seems to enter some kind of standby? LED goes off - Meaning OBD_IND changing state after some time. Once that happens I'm "offline" . A AT command bring the LED back up - menaing the STM32 reacts to my input, but I cant get any respnse to my AT commands.
A reset of the ESP32 ia watchdog or power cycle brigns it back to life
Re: NO READ SIGNAL - SPI_PIN_READY doesn't return to low
Posted: Thu Mar 21, 2019 9:09 am
by NatroN
Does the STM Pin expect to be connected to 12V Batt Power and goes into poer save mode because it has no power on 12V?
I'm developing on the bench for obvious reasons.
Re: NO READ SIGNAL - SPI_PIN_READY doesn't return to low
Posted: Fri Mar 22, 2019 6:06 am
by NatroN
can someone explain why file = SD.open("/log.txt", FILE_APPEND);
brings my SPI bus back to life?
Re: NO READ SIGNAL - SPI_PIN_READY doesn't return to low
Posted: Mon Mar 25, 2019 10:47 pm
by NatroN
Ok - more research and an answer.
For all guys googling and finding this:
As I use OBD AND SD.h via SPI, those 2 are interferring. Making sure they are not interfering (talking same time) fixed the problem for me. Still not sure why this is happening as obd and sd card are using different SPI pins.
Will find out
Re: NO READ SIGNAL - SPI_PIN_READY doesn't return to low
Posted: Mon May 13, 2019 4:28 am
by aboaboit
Is this a followup to your earlier post?
viewtopic.php?f=14&t=3102&p=43691#p43691