SUMP Compatible ESP32 Logic Analyzer with RLE

mlp6868
Posts: 1
Joined: Sun Mar 28, 2021 5:59 pm

Re: SUMP Compatible ESP32 Logic Analyzer with RLE

Postby mlp6868 » Sun Mar 28, 2021 6:34 pm

Nice project! I had no trouble building it (normally I use ESP-IDF) but absolutely straightforward. Thanks for making that available.

Now what I didn't find so straightforward is the pulseview interaction. I could not figure out what it takes to connect to the ESP, what device to select, how to probe the port, etc. I see the nice screenshot on github but I can't seem to get that. Any quick instructions? Suggestions?

Thanks a bunch!
- mlp

User avatar
E.U.A.
Posts: 18
Joined: Wed Feb 05, 2020 2:24 am

Re: SUMP Compatible ESP32 Logic Analyzer with RLE

Postby E.U.A. » Thu Sep 14, 2023 10:12 pm

It looks like my project doesn't work after years. Probably some IDF changes.
As I understand, I2S0.conf.rx_start = 1 do not start the I2S0 sampling.

Do you know what is changed? Why my I2S DMA buffers doesn't filled?
I just want to make it working again... But can't figure why it doesn't start to sampling...


Edit:
Yeah I found the issue.
Before,
I2S can get clock input cfg.gpio_clk = 23 with ledcAttachPin(23, 0) is allowed.

But now, it does NOT supported.
So can't re-route ledC pwm output to I2S clock input via pin23... I need to make output to some pin (like pin 22) and than physically connect it into 23...

Is there a way to do that internally?
Admin of the SamyGO.tv, Samsung TV Hacking Project

User avatar
jgustavoam
Posts: 134
Joined: Thu Feb 01, 2018 2:43 pm
Location: Belo Horizonte , Brazil
Contact:

Re: SUMP Compatible ESP32 Logic Analyzer with RLE

Postby jgustavoam » Fri Sep 15, 2023 12:23 am

Hi EUA,

I suggest you take a look at these links
https://github.com/espressif/arduino-es ... i/ledc.rst
https://github.com/espressif/arduino-es ... pi/i2s.rst

Pin setup
Pins can be changed in two ways- 1st constants, 2nd functions.

By default, the pin numbers are defined in constants in the header file. You can redefine any of those constants before including I2S.h

PIN_I2S_SCK 14
PIN_I2S_FS 25
PIN_I2S_SD 26
PIN_I2S_SD_OUT 26
PIN_I2S_SD_IN 35

The second option to change pins is using the following functions. These functions can be called on either on initialized or uninitialized object.


setSckPin
Set and apply clock pin.

int setSckPin(int sckPin)

This function will return true on success or fail in case of failure.
Retired IBM Brasil
Electronic hobbyist since 1976.

User avatar
E.U.A.
Posts: 18
Joined: Wed Feb 05, 2020 2:24 am

Re: SUMP Compatible ESP32 Logic Analyzer with RLE

Postby E.U.A. » Sat Sep 16, 2023 11:35 pm

Hi jgustavoam! :)

Well, even if I use

Code: Select all

I2S.setSckPin(cfg.gpio_clk_out );
to select LEDC pin after initialized ledc,
Function does returns true BUT I2C do not work. Not detecting the clock pulses of LEDC.

I think something changed internally and ESPRESSIF doesn't allow it anymore.
Any officials could answer this?
Admin of the SamyGO.tv, Samsung TV Hacking Project

User avatar
jgustavoam
Posts: 134
Joined: Thu Feb 01, 2018 2:43 pm
Location: Belo Horizonte , Brazil
Contact:

Re: SUMP Compatible ESP32 Logic Analyzer with RLE

Postby jgustavoam » Sun Sep 17, 2023 10:22 am

Hi EUA,
Test suggestion - connect a jumper (wire) between the two pins externally. What do you think about this?
Retired IBM Brasil
Electronic hobbyist since 1976.

newenthu
Posts: 1
Joined: Mon Feb 19, 2024 8:52 pm

Re: SUMP Compatible ESP32 Logic Analyzer with RLE

Postby newenthu » Mon Feb 19, 2024 9:05 pm

I am new to ESP32. I have a ESP32 Wroom32 module. I downloaded the code from the Github repo, added #define USE_SERIAL2_FOR_OLS 0 in ESP32_LogicAnalyzer.h and uploaded the code to my module from the arduino IDE but PulseView doesnt detect the board at all, I have followed instructions from the Github Issues for this repo but still no luck. Please help.
Attachments
pulseviewpng.png
pulseviewpng.png (63.06 KiB) Viewed 427 times

Who is online

Users browsing this forum: No registered users and 51 guests