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

SimulIDE 1.0.0 Tester builds.

+6
TimFisch
dvarkin
Fizik_S
MSABU
Alex68
arcachofo
10 posters

Go to page : Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next

Go down  Message [Page 3 of 9]

51SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Sun Jan 09, 2022 12:47 pm

arcachofo

arcachofo

Alex68 wrote:Из тех же инструментов в сборке R815. Модель двух разрядного индикатора. Нет индикации уровня. На всех остальных с большим числом разрядов так же.
That is not how you test a subcircuit.
That subcircuit is working perfectly.

52SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Sun Jan 09, 2022 3:34 pm

Alex68

Alex68

arcachofo wrote:
Например вот такое. Простая схема инструмента - формирователя импульсной последовательности с клавиатуры. В двух версиях. Может такое и с моделями контроллеров. Где то что то не пропечаталась связь и все. Работать не будет.
Just move that decoder and see what happens...

Please, stop talking about what you don't know.
Again: you have no idea of what you are talking about, and you are talking silly things.

This section is for testers, for people that is willing to help testing and reporting errors.
You found an error in a subcircuit and you don't report what model has the problem.
Instead you start to talk silly things about a topic you ignore completely.

Куда я должен перемещать этот декодер если у него внутри во первых неправильно сделан шифратор на 15. И связи от этого нарушены. Я его открыл ВАМ а вы не видите видимо. Подписал
в одной версии он правильно сделан в последней нет.
Это разве не ошибка. О каком тестировании может речь идти если
обычная цифровая база сделана не правильно в версии R815.
Я у себя конечно исправлю эти связи. И он будет работать.
Сейчас я вам открою индикатор логических уровней и покажу как он хорошо по вашему работает.

53SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Sun Jan 09, 2022 3:58 pm

arcachofo

arcachofo

Куда я должен перемещать этот декодер если у него внутри во первых неправильно сделан шифратор на 15. И связи от этого нарушены. Я его открыл ВАМ а вы не видите видимо.
This guy...

"Move it" means just that: MOVE IT

SimulIDE 1.0.0 Tester builds. - Page 3 Err_og10

And that is not a problem, that subcircuit works perfectly as far as I know.

I'm tired of wasting my time with this kind of things.

54SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Mon Jan 10, 2022 8:41 pm

dvarkin



Tried to open ATmega1281.
SimulIDE 1.0.0 Tester builds. - Page 3 E_ua_a15

https://vk.com/dvarkin

55SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Mon Jan 10, 2022 10:21 pm

arcachofo

arcachofo

Hi dvarkin.
Tried to open ATmega1281.
Thanks.
You can solve the issue by editing line 20 in m1281_int.xml.
End character missing, just add it: />

56SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Tue Jan 11, 2022 6:39 pm

arcachofo

arcachofo

I'm going to fork the scripting talk to it's own thread:
https://simulide.forumotion.com/t422-scripted-component

57SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Sat Jan 15, 2022 1:55 am

arcachofo

arcachofo

New build at Rev 853 uploaded.

Have a look at first post for download links and list of changes.

Fizik_S and dvarkin like this post

58SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Sat Jan 15, 2022 4:34 pm

arcachofo

arcachofo

New build at Rev 853 have been reuploaded.
I was not sure that a fix for a problem that can cause AVRs to crash was included in last build.

59SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Sat Jan 15, 2022 6:38 pm

TimFisch

TimFisch

The MCUs (at least explicitly the mega328) are missing SimulIDE_1.0.0-R853_Win64... Crying or Very sad

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

60SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Sat Jan 15, 2022 7:13 pm

arcachofo

arcachofo

The MCUs (at least explicitly the mega328) are missing SimulIDE_1.0.0-R853_Win64..
Ohh sorry, I will reupload.

Anyway you can fix it in the meanwhile by creating the data folder and move everything there except for simulide executable and examples folder.



Last edited by arcachofo on Sat Jan 15, 2022 7:25 pm; edited 1 time in total

61SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Sat Jan 15, 2022 7:24 pm

arcachofo

arcachofo

Files reuploaded...

62SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Mon Jan 17, 2022 8:52 pm

Fizik_S

Fizik_S

During testing, I found 2 errors.

1) encoder error when operating in 16-bit mode.
SimulIDE 1.0.0 Tester builds. - Page 3 Dec_2_10

2) The probes are not working correctly. In some situations, they do not display information. After redrawing the screen (for example, when zooming with the mouse wheel), the correct value is shown. For example, test circuits for subcircuits: 74HC174_test, 74HC112_test, 74HC151_test, …
SimulIDE 1.0.0 Tester builds. - Page 3 Probe_10

63SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Mon Jan 17, 2022 9:03 pm

arcachofo

arcachofo

Thanks, I will have a look.

64SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Mon Jan 17, 2022 9:04 pm

TimFisch

TimFisch

For me the "not correctly working visible output" disappears for 74HC174_TEST.simu @R853 / WIN10 when I activate "show voltage".

I also had a similar kind of "not correctly working visible output" issue when using mulitple 7-segment displays driven by a MCU with the R853 / WIN10 . There it seems to be connected to the simu speed.
Fizik_S's problem doesn't dissappear when reducing the speed.

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

65SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Mon Jan 17, 2022 9:18 pm

arcachofo

arcachofo

1) encoder error when operating in 16-bit mode.
Solved at Rev 862.

2) The probes are not working correctly.
Solved at Rev 863.

Fizik_S likes this post

66SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Mon Jan 17, 2022 9:20 pm

arcachofo

arcachofo

I also had a similar kind of "not correctly working visible output" issue when using mulitple 7-segment displays driven by a MCU with the R853 / WIN10 . There it seems to be connected to the simu speed.
Can you explain this issue?

67SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Mon Jan 17, 2022 9:47 pm

arcachofo

arcachofo

I also had a similar kind of "not correctly working visible output" issue when using mulitple 7-segment displays driven by a MCU with the R853 / WIN10 . There it seems to be connected to the simu speed.

I forgot to mention:
At low simulation speed, if you are multiplexing or doing PWM, you will see the led turning on and off.

68SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Tue Jan 18, 2022 2:10 am

TimFisch

TimFisch

My bug is a bit trickier to trigger, but tracking it down gave me some "new bugs" (without any direct connection have to think on famous dilbert Very Happy ):

The first bug is: logic analyzer and wire animation does not work for flashed hex at any speed.

The second bug is: The direction arrows are going crazy when putting simu steps = 1 sec and steps per second to 1. At this setting they shouldn't move faster than per second. At one point the simulation crashed when pushing the stop button (I don't know the additional conditions, so i cannot reproduce it anymore).

The third bug is: the 7 segment does not show anything, when running at 100% speed and zooming the display large before start. Changes only when focus is back to window.

The 4th(?) bug is: the 7 segment does not show anything, when after the 3rd bug running at 0.01% speed after start. Changes only when focus is back to window.

The 5th(?) bug is: after stimulating 3rd and 4th bug, the 7 segment does not show anything at any speed. Changes only when focus is back to window.


Some of the bugs can be seen here:
https://wiki.mexle.org/_media/simulide_bugs/7segment.mp4

Initially, I only had the not refreshing at 100% and zoom bug, but it seems to be a bug family. I think I have to pay my students for the bug finding... Laughing

Edit: Crashing on the second bug seems reproducable, when the simulation runs for >10s with "crazy arrows" and then trying to stop on my setup (WIN10)
Attachments
SimulIDE 1.0.0 Tester builds. - Page 3 Attachmentbugs_tf.zip
You don't have permission to download attachments.
(3 Kb) Downloaded 2 times

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

69SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Tue Jan 18, 2022 3:29 am

arcachofo

arcachofo

(without any direct connection have to think on famous dilbert Very Happy ):
SimulIDE 1.0.0 Tester builds. - Page 3 1f602 SimulIDE 1.0.0 Tester builds. - Page 3 1f602 SimulIDE 1.0.0 Tester builds. - Page 3 1f602

Man... this circuit is EVIL!!!!

70SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Tue Jan 18, 2022 3:35 am

TimFisch

TimFisch

jep... The basic circuit used a timer based 10msec trigger for the output and only produced two of the bugs.
But my "purified one" seems to jump deeper into pandoras box... Twisted Evil

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

71SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Tue Jan 18, 2022 8:18 am

Fizik_S

Fizik_S

The logical primitive "Function" allows only lowercase letters in logical formulas (i 0, i 1, ...). When using capital letters in a formula (I 0, I 1, ...), "Function" does not work correctly.
SimulIDE 1.0.0 Tester builds. - Page 3 Clipim10

In the program version 0.4.15, both spellings work.

72SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Tue Jan 18, 2022 7:03 pm

arcachofo

arcachofo

The logical primitive "Function" allows only lowercase letters in logical formulas (i 0, i 1, ...). When using capital letters in a formula (I 0, I 1, ...), "Function" does not work correctly.
Thanks. Solved at Rev 864.

Fizik_S likes this post

73SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Tue Jan 18, 2022 10:51 pm

arcachofo

arcachofo

@TimFish
About the "evil" circuit:
First let me say that this must be part of a malefic plan carefully designed to drive me mad.
But is has no chance to succeed... I'm already mad!! cyclops

Let's try to analize...
Not sure why, but this is how the circuit is working:
- All pins are configured as inputs, except the pin driving 7seg cathode.
- Led segments are driven by AVR Pin pullups.
- In order to make the segments "shine", 7seg is configured with max. current = 0.01 mA, that is 10 uA.
- There is no delay betwen display changes, everything is just "free running" at maximum speed.

When I open the circuit and load the hex, it is working "OK" for me.
"OK" meaning it is working as described above.
There is an error though: it starts at 10 steps/second, but if I open Simulation Settings it shows 1 step/second.
The circuit files shows 10 stepsPS.

The animation is working "OK": it shows PORTC Pins going Output for the display that is driven and Input for the rest, as defined in the program.

The Logic Analizer is showing what is actually happening:
A voltage swinging around the Leds forward voltage: 2.4 V
An Oscilloscope is much better for this case.

One thing that can be confusing is that it takes 20 us to start driving the 7segs.
I think this is the time it needs to load the array in RAM.

But then... If I try to run it at 100%... then oh boy the pandora's box is actually open.
The GUI starts to get blocked...
If I use simulide compiled for "release" it works in my machine.
But in "debug" mode (which is much slower), the GUI gets completely blocked.
If I try slower speeds there is a point when it doesn't block 100%, but it gets very slow and doesn't refresh until you zoom or change focus.
This "state" last even if the simulation is stopped.

In conclussion:
The way this circuit is working:
- Leds floating: these are non-linear and very unstable in those conditions, so can use lots of cpu.
- Ports changing at maximum speed.
- Changes in Ports are done in pullups or direcction (the most cpu intensive).
- Using a Logic Analizer also adds lots of cpu load (this needs optimization).

Is overloading the simulation to a point that it's blocking the GUI....
And that is not easy, but this depends on the capabilities of the computer.

This circuit is the perfect "stress test" for the simulator.
I'm working in some solutions to make the GUI really unblockable...

74SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Wed Jan 19, 2022 8:21 am

TimFisch

TimFisch

The cofiguration as input was my fault. Initially the students used DDRB and DDRD correctly. But even with DDRB = 0xFF and DDRD = 0xFF the circuit behaves unusual: the simulation crashes for "normal" speeds

It initially started with a program like the following, where an interrupt is initiating the refresh. This is not as ugly (and ugly behaving) as the first code and works also with the diodes in the linear range and higher currents.

Code:

 uint8_t numberToOutput = 0;
 uint8_t sevenSegmentPos = 0;


int main()
{
 TCCR0A  = 0; // Timer 0 auf "Normal Mode" schalten
 SET_BIT(TCCR0B,CS10); // mit Prescaler 8 betreiben
 SET_BIT(TIMSK0,TOIE0); // Overflow-Interrpt aktivieren

 DDRD=0xff;
 DDRB=0xff;
 
 sei();
 
 while(1)
 {
 if (flag)
 {
 flag=0;
 numberToOutput = sevenSegmentPos;

 PORTD = 0;
 PORTB = 0;
 
 DDRC  = sevenSegmentOutput[2][sevenSegmentPos]; // sets used Common Cathode
 PORTD = sevenSegmentOutput[0][numberToOutput];  // PORTD and PORTB writes a..g of 7-Segment-Display
 PORTB = sevenSegmentOutput[1][numberToOutput];  //
 
 if (++sevenSegmentPos > 3) sevenSegmentPos = 0;
 }
 }
 return 0;
}

ISR (TIMER0_OVF_vect)
{
 flag = 1;
}

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

75SimulIDE 1.0.0 Tester builds. - Page 3 Empty Re: SimulIDE 1.0.0 Tester builds. Wed Jan 19, 2022 4:11 pm

arcachofo

arcachofo

The cofiguration as input was my fault. Initially the students used DDRB and DDRD correctly. But even with DDRB = 0xFF and DDRD = 0xFF the circuit behaves unusual: the simulation crashes for "normal" speeds
Yes, there are several problems.

- Simulation Setting has several errors.
I also think  that "Steps per second" should not be less than FPS.

- The GUI is blocking.
This causes the 7seg and LA don't update unless you force a redraw (zoom, change focus, etc.)
I think this is also the source of those crashes.
The weird part is that once it starts to fail, the GUI doesn't update any more unless you force it, even with simulation stopped.

I'm working in it, but can't find the origin yet.
This problem is in Qt main loop, so not easy to debug.
I have done a few optimizations in the animation and simulation engine, which is good.
Logic Analizer also needs optimization, I have some ideas,  will implement this later.
Still have a few things to try, hopefully one will solve the problem.

It initially started with a program like the following, where an interrupt is initiating the refresh. This is not as ugly (and ugly behaving) as the first code and works also with the diodes in the linear range and higher currents.
Indeed the "ugly" version is the good one to find the problem:
It stress the simulation much more and don't use Timers, ruling out Timers a a source of the problem.

Sponsored content



Back to top  Message [Page 3 of 9]

Go to page : Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next

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