Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

V1.0.0 (R853) crash induced by tunnel + logic analyzer condition trigger

2 posters

Go down  Message [Page 1 of 1]

TimFisch

TimFisch

I tried to clean up a circuit a bit, but it crashes on start (sometimes on second / third start).

Seen at: WIN10, R853

Situation:
  • circuit with mega328: SDA / SCL on MCU connected to tunnel, second instances ot these connected to pull up, third instances connected to logic analyzer
  • MCU used without firmware
  • logic analyzer triggers on condition CH1



sim1 file is attached.

The crashes do not appear, when no tunnels are used.
Attachments
V1.0.0 (R853) crash induced by tunnel + logic analyzer condition trigger Attachmentdummy_v01.zip
You don't have permission to download attachments.
(2 Kb) Downloaded 2 times



Last edited by arcachofo on Tue Feb 01, 2022 12:35 pm; edited 2 times in total (Reason for editing : Marked as solved (green color).)

https://wiki.mexle.hs-heilbronn.de/

TimFisch

TimFisch

Ok... the bug also appears when no tunnel is used.
Maybe it is also a different one. In this case, I had to use some small code:

Code:

int main(void)
{
 DDRD = 0b00000010;
 PORTD = 0b00000010;
 PORTD = 0b00000000;
 PORTD = 0b00000010;
 
 while (1)  {};
}

Then, the analzyer had to trigger on CH1 (per condition). Crash appears on WIN10, R853 - had to start the simulation 3-4 times in order to get the crash. Hex and sim1 attached.

Edit: the "code-based crash" seems somehow to be related to the PortD1, It seems not appear on PortB1.
Attachments
V1.0.0 (R853) crash induced by tunnel + logic analyzer condition trigger AttachmentsimpleCode.zip
You don't have permission to download attachments.
(1 Kb) Downloaded 2 times



Last edited by TimFisch on Sat Jan 15, 2022 8:28 pm; edited 1 time in total

https://wiki.mexle.hs-heilbronn.de/

arcachofo

arcachofo

I can't reproduce the issue, not even in Windows.
Same thing with second example...

EDIT: Let me try downloading it....

arcachofo

arcachofo

No way.. I can't get it to crash.
Even downloading simulide from here.

Are you sure you are using the last files I uploaded?
I reuploaded it the first time because there was a posible bug that looks exactly like this one...

TimFisch

TimFisch

The bug is really strange: It seems to appear more often, when clicking on start fast. I downloaded the simu version and my files again and can reproduce the bug.

See here: https://wiki.mexle.org/_media/2022-01-15_21-01-58.mkv

I had a restart of WIN and WIN updates (and getting a screen recorder) in between. It seems to take now more starts to chrash simulide .. scratch


Edit:
Here a clip of the "code induced" one: https://wiki.mexle.org/_media/2022-01-15_21-15-26.mkv
(this one crashes for me on the first start after flashing)

https://wiki.mexle.hs-heilbronn.de/

arcachofo

arcachofo

Yes.. I could reproduce it by clicking really really fast in Windows10 (virtual machine).
No way to reproduce it in Linux (where I can debug it).

I will try to find a possible cause...

TimFisch

TimFisch

Have you also tried the "code induced" one?
This seem to be more reproducable also with low click rate (and currently annoying in my productive code  Razz ).


Strangely, the bug seem to be also depending on the simulation speed. For 0.005% and slower it seems not to be present (simu step 1us). For 0.008% and more it crashes quite regularily on my WIN machine.

https://wiki.mexle.hs-heilbronn.de/

arcachofo

arcachofo

Have you also tried the "code induced" one?
Yes, but is not easy to make it crash, I have to click like crazy and only sometimes happens.




Strangely, the bug seem to be also depending on the simulation speed. For 0.005% and slower it seems not to be present (simu step 1us). For 0.008% and more it crashes quite regularily on my WIN machine.
This is a good clue.
I will add some code to not accept clicks until last action is finished.
Hopefully that will solve the issue.

TimFisch

TimFisch

If you have a version with some telemetry like storing PC-CPU states to disk, I could also try to run it and send the telemetry back.

https://wiki.mexle.hs-heilbronn.de/

TimFisch

TimFisch

THe issue seems to be not available in R917 (and already in R872) anymore  V1.0.0 (R853) crash induced by tunnel + logic analyzer condition trigger 1f603

... might get closed...

https://wiki.mexle.hs-heilbronn.de/

arcachofo

arcachofo

THe issue seems to be not available in R917 (and already in R872) anymore V1.0.0 (R853) crash induced by tunnel + logic analyzer condition trigger 1f603

... might get closed...
Great!

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum