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

ESP32-S3 issue on SPI pins (IDFGH-13737) #14601

Closed
3 tasks done
Nezaemmy opened this issue Sep 18, 2024 · 5 comments
Closed
3 tasks done

ESP32-S3 issue on SPI pins (IDFGH-13737) #14601

Nezaemmy opened this issue Sep 18, 2024 · 5 comments
Labels
Status: Opened Issue is new

Comments

@Nezaemmy
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

I have been using the 3 chained 74hc595 shift register with ESP32; the system has been working for more than one year.
After switching to ESP32-S3, the system works for 2 to 3 days. The 74HC595 shift register starts misbehaving (for example, if you want to switch on pin 5 of the second chained shift register, pin 3 of the first shift register, and pin 6 of the shift register ON things like that), and with replacing the damaged one, the system works after the same time the issue comes again. The ESP32 doesn't have this issue with 74hc595.

@espressif-bot espressif-bot added the Status: Opened Issue is new label Sep 18, 2024
@github-actions github-actions bot changed the title ESP32-S3 issue on SPI pins ESP32-S3 issue on SPI pins (IDFGH-13737) Sep 18, 2024
@versamodule
Copy link

Did you connect an scope to it and see what the data is doing ?

@Nezaemmy
Copy link
Author

Nezaemmy commented Oct 9, 2024

I didn't connect to a scope. I don't why the esp32 is working very well but esp32s3 has this issue.
For example, when you swicth ON two output pins shift register 74hc595, after sometime on esp32s3 the output pins of shift register change the status randomly and back to the normal status after 3 seconds. it seems like esp32s3 send what I can call noise

@wanckl
Copy link
Contributor

wanckl commented Oct 9, 2024

@Nezaemmy Hi, can you try to decrease the issue time, then will be convenience to connect scop or debug, 2-3 day is too hard to debug

e.g. Do you use DMA? what the expect data.

@Nezaemmy
Copy link
Author

Nezaemmy commented Oct 9, 2024

for more info I use arduino core for the esp32. this is the example code

#include <ShiftRegister74HC595.h> //https://github.com/Simsso/ShiftRegister74HC595

// create a global shift register object
// parameters: (data pin, clock pin, latch pin)
ShiftRegister74HC595<1> sr(11, 10, 12); //

void setup() {
}

void loop() {

// setting all pins at the same time to either HIGH or LOW
sr.setAllHigh(); // set all pins HIGH
delay(500);

sr.setAllLow(); // set all pins LOW
delay(500);

// setting single pins
for (int i = 0; i < 8; i++) {

sr.set(i, HIGH); // set single pin HIGH
delay(250); 

}

// set all pins at once
uint8_t pinValues[] = { B10101010 };
sr.setAll(pinValues);
delay(1000);

// read pin (zero based, i.e. 6th pin)
uint8_t stateOfPin5 = sr.get(5);
sr.set(6, stateOfPin5);

// set pins without immediate update
sr.setNoUpdate(0, HIGH);
sr.setNoUpdate(1, LOW);
// at this point of time, pin 0 and 1 did not change yet
sr.updateRegisters(); // update the pins to the set values
}

@Nezaemmy
Copy link
Author

Nezaemmy commented Oct 9, 2024

I tried to report issue on arduino esp32 channel but no response till now

@Nezaemmy Nezaemmy closed this as completed Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new
Projects
None yet
Development

No branches or pull requests

4 participants