Page 2 of 2

Re: Simulator on Linux or Windows

Posted: Sun Nov 11, 2012 8:01 pm
by gmb42
I fixed that issue with this change:

Code: Select all

--- /home/Software/chibios/demos/Posix-GCC/main.c        2012-10-16 21:13:41.497321726 +0100
+++ main.c      2012-11-04 10:01:00.130219397 +0000
@@ -23,6 +23,7 @@
 #include "test.h"
 #include "shell.h"
 #include "chprintf.h"
+#include "stdio.h"
 
 #define SHELL_WA_SIZE       THD_WA_SIZE(4096)
 #define CONSOLE_WA_SIZE     THD_WA_SIZE(4096)

Re: Simulator on Linux or Windows

Posted: Thu Nov 17, 2016 8:40 am
by tfAteba
Hi Giovanni,

I just read about this topic and look to trunk source files.

I see that there is a simulator board, and a WINDOWS demo on how to use it.

Is there a Linux demo version? Is the simulator is also supposed to work under Linux?

Thanks.

Re: Simulator on Linux or Windows

Posted: Thu Nov 17, 2016 9:05 am
by Giovanni
There was a Linux/MAC version up to 2.6.x, it has not been ported so far.

Giovanni

Re: Simulator on Linux or Windows

Posted: Thu Nov 17, 2016 3:58 pm
by tfAteba
Thanks for this useful information.
:)

Re: Simulator on Linux or Windows

Posted: Mon May 31, 2021 4:49 pm
by russian
Giovanni wrote:There was a Linux/MAC version up to 2.6.x, it has not been ported so far.

Giovanni

Google remembers about this thread and I assume that as of 2021 linux totally works just fine.

Re: Simulator on Linux or Windows

Posted: Mon May 31, 2021 5:03 pm
by Giovanni
russian wrote:
Giovanni wrote:There was a Linux/MAC version up to 2.6.x, it has not been ported so far.

Giovanni

Google remembers about this thread and I assume that as of 2021 linux totally works just fine.


It does, it is what I use for testing.

Giovanni

Re: Simulator on Linux or Windows

Posted: Thu Jan 13, 2022 11:30 am
by JSStabl
Is there a explanation on how to run the demo? I tried compiling it with ubuntu and get a host of error messages :)

Edit: I was able to get the simulator running on a 32bit debian. Are there any places where we can see how the static and regression tests are run using the simulator?

Re: Simulator on Linux or Windows

Posted: Thu Jan 13, 2022 3:24 pm
by Giovanni
Hi,

On Ubuntu you need to add the 32bits development environment and it will work (I use it on Linux Mint).

The demo opens 2 ports, connects on those using telnet and you will get shells, from there you can execute tests.

Regressions tests are done by launching /test/rt/testbuild/go.sh. You need PC-Lint or you need to disable the lint pass in go.sh. This regression test runs RT under multiple configurations using the simulator and collects test and coverage data.

Giovanni