• 0
Jonas

AD2: ERC: 0x2 with Raspberry Pi 4

Question

Hi,

I'm using the Analog Discovery 2 with a Raspberry Pi 4 with the WaveForms Beta 3.13.12 to continously log the Scope. After some time I get the ERC: 0x2 (see screenshot for error and used setup). I've tried with and without external powering of the AD2. The AD2 is plugged to the USB3.0 port of the RPi4. Also tried different Micro USB cables.

Do you have any idea how to fix this?

grafik.thumb.png.07edc6b7c7b3d736a130bf9a1a888142.png

Share this post


Link to post
Share on other sites

12 answers to this question

Recommended Posts

  • 0

Yes, I have seen that thread. But I need high rate sampling. What other solutions exist? Could there maybe the option to supress the error and resume operation after a USB packet is lost?

Share this post


Link to post
Share on other sites
  • 0

Hi @Jonas

There is no reconnect in the software, yet.
You could do such reconnect with custom application or script using WF SDK.

Share this post


Link to post
Share on other sites
  • 0

Hi @attila,

when do you plan to add this feature?

How can I do it using the scripts in WaveForms? I want to use the WaveForms GUI for the logging for easier use (setting the parameters etc.)...

Share this post


Link to post
Share on other sites
  • 0

Hi @Jonas

I'm working on it now...
It takes time to reproduce the issue. I have to test what level or reset/reconnect needs to be performed to recover.

Share this post


Link to post
Share on other sites
  • 0

Hi @attila,

that sounds amazing! Would it help to have my workspace? With my settings I get the error quite quickly (between 200-6000 samples)...

Share this post


Link to post
Share on other sites
  • 0

Hi @Jonas

I managed to reproduce once after several 100K captures, but the first simple reconnect solution didn't help. 
Now it is running again, waiting for failure with another way of reconnect method.

Share this post


Link to post
Share on other sites
  • 0

Hi @Jonas

The RPI SD card I used got damaged.
I have flashed another card with the latest Raspbian image the error occurred first after a half day then after more than a day, after 8M captures...
Unfortunately the 2nd and 3rd automatic reconnect methods didn't work.
Now I will try Ubuntu 20 32bit.

image.thumb.png.c081593f01ee46abbb4951a1d5c53658.png

Share this post


Link to post
Share on other sites
  • 0

Hi @Jonas

I've tried with TDMS export, that is when the SD card got damaged.
I can reproduce the communication failure. Unfortunately the automatic reconnect to the device does not help, there is no system error logged.

At this point I have no idea what else to try.
It may be a minimum required time for reconnect to work. I will try other solution as comes in mind but testing it will take again days.

Sorry but it is an issue between FTDI and RaspberryPI-4. The RPI1-2-3 are unusable and we have no control in these.
With other single board computer there is no such problem noticed or reported.

Share this post


Link to post
Share on other sites
  • 0

Hi @attila,

mmh, ok, seems to be tricky. How many samples can you do with the TDMS export? At the end I would be happy with 30min sampling at a time...

What other single board computers do you know to work well with the AD2?

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now