Hello all,
I'm currently writing my Masterthesis on test automation. The main goal was to develop tools for developers to create tests for a CANopen network, in a way that they dont have to use the hardware, but can directly execute tests on their developer computer.
This network consists of some STM32 microcontrollers which use ChibiOS RT (2.3.3.) and HAL. I ported the uC Software to Linux and developed the necessary tools to execute some tests revolving around the setup of CANopen in the uC. So the tests and tools work fine.
Now I have to document and evaluate my approach and compare the simulated uC with the real ones. In this post http://forum.chibios.org/viewtopic.php?t=5105 I read, that preemption is missing from the POSIX Simulator.
Are there any other differences in the general behaviour of RT?
Is there maybe any documentation for the Simulator I overlooked?
Or can someone point me into the right direction in the RT code for STM32F4 and Linux so I can work out the differences myself?
Thanks in advance
Arndt
Differences in scheduling in POSIX Simulator
Moderators: tfAteba, barthess, RoccoMarco, lbednarz, utzig
-
- Posts: 1
- Joined: Thu Nov 23, 2023 11:38 am
- Giovanni
- Site Admin
- Posts: 14563
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1111 times
- Been thanked: 937 times
- Contact:
Re: Differences in scheduling in POSIX Simulator
Hi,
The only difference regarding scheduling is preemption. You need to manually insert a call to the simulator port in points where you want to check for preemption (looking for pending interrupts basically).
Giovanni
The only difference regarding scheduling is preemption. You need to manually insert a call to the simulator port in points where you want to check for preemption (looking for pending interrupts basically).
Code: Select all
#if defined(SIMULATOR)
_sim_check_for_interrupts();
#endif
Giovanni
Who is online
Users browsing this forum: No registered users and 11 guests