Simulator on Linux or Windows

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
gmb42
Posts: 31
Joined: Tue Oct 02, 2012 8:09 pm

Re: Simulator on Linux or Windows

Post 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)
User avatar
tfAteba
Posts: 551
Joined: Fri Oct 16, 2015 11:03 pm
Has thanked: 91 times
Been thanked: 50 times

Re: Simulator on Linux or Windows

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Simulator on Linux or Windows

Post by Giovanni »

There was a Linux/MAC version up to 2.6.x, it has not been ported so far.

Giovanni
User avatar
tfAteba
Posts: 551
Joined: Fri Oct 16, 2015 11:03 pm
Has thanked: 91 times
Been thanked: 50 times

Re: Simulator on Linux or Windows

Post by tfAteba »

Thanks for this useful information.
:)
User avatar
russian
Posts: 368
Joined: Mon Oct 29, 2012 3:17 am
Has thanked: 16 times
Been thanked: 14 times

Re: Simulator on Linux or Windows

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Simulator on Linux or Windows

Post 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
JSStabl
Posts: 78
Joined: Tue Feb 25, 2020 4:06 pm
Has thanked: 3 times
Been thanked: 2 times

Re: Simulator on Linux or Windows

Post 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?
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Simulator on Linux or Windows

Post 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
Post Reply