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
Location: Aberdeenshire, UK

Re: Simulator on Linux or Windows

Postby gmb42 » Sun Nov 11, 2012 8:01 pm

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: 547
Joined: Fri Oct 16, 2015 11:03 pm
Location: Strasbourg, France
Has thanked: 91 times
Been thanked: 48 times

Re: Simulator on Linux or Windows

Postby tfAteba » Thu Nov 17, 2016 8:40 am

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.
regards,

Theo.

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Simulator on Linux or Windows

Postby Giovanni » Thu Nov 17, 2016 9:05 am

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

Giovanni

User avatar
tfAteba
Posts: 547
Joined: Fri Oct 16, 2015 11:03 pm
Location: Strasbourg, France
Has thanked: 91 times
Been thanked: 48 times

Re: Simulator on Linux or Windows

Postby tfAteba » Thu Nov 17, 2016 3:58 pm

Thanks for this useful information.
:)
regards,

Theo.

User avatar
russian
Posts: 364
Joined: Mon Oct 29, 2012 3:17 am
Location: Jersey City, USA
Has thanked: 16 times
Been thanked: 14 times

Re: Simulator on Linux or Windows

Postby russian » Mon May 31, 2021 4:49 pm

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.
http://rusefi.com/ - electronic fuel injection

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Simulator on Linux or Windows

Postby Giovanni » Mon May 31, 2021 5:03 pm

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

Postby JSStabl » Thu Jan 13, 2022 11:30 am

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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Simulator on Linux or Windows

Postby Giovanni » Thu Jan 13, 2022 3:24 pm

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


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 21 guests