Re: RTEMS tasks timesliced instead of running to completion. TIMESLICE flag is not active!

2020-05-01 Thread Thanassis Tsiodras (external)
> We can test this with Fernando, by changing the code to avoid printing - and instead > add integer values in a log buffer... and dump all the log at the end. CONFIRMED. Did a quick check, commenting out the printfs and changing the code to do this instead: void task_begin(int task_no) {

Re: RTEMS tasks timesliced instead of running to completion. TIMESLICE flag is not active!

2020-05-01 Thread Thanassis Tsiodras (external)
> When the console driver works in interrupt mode and the output ring > buffer between the driver's base context and interrupt context is > filled, the driver's base context (and actually the calling task) waits > (***and gets suspended)*** until there is space again in the output

Re: RTEMS tasks timesliced instead of running to completion. TIMESLICE flag is not active!

2020-05-01 Thread Thanassis Tsiodras (external)
The complete code of the two tasks is here: https://gitrepos.estec.esa.int/ttsiodras/RTEMS-build-workflows/-/blob/master/OAR/src/task1.c and here: https://gitrepos.estec.esa.int/ttsiodras/RTEMS-build-workflows/-/blob/master/OAR/src/task2.c ...so the short answer is that, besides what you alread

Re: RTEMS tasks timesliced instead of running to completion. TIMESLICE flag is not active!

2020-05-01 Thread Thomas Doerfler
Fernando, a second guess: which systems calls are you doing in your Task1 and task2? Obviously your are sending events (which is not preempting) and doing console output (which is questionable regarding preemption), but which other calls are involved? wkr, Thomas. Am 30.04.20 um 17:14 schrieb F

Re: RTEMS tasks timesliced instead of running to completion. TIMESLICE flag is not active!

2020-05-01 Thread Thomas Doerfler
Am 01.05.20 um 10:13 schrieb Thanassis Tsiodras (external): > /> Polled vs interrupt console drivers?/ > > I don't see how...  With tasks spawned with RTEMS_DEFAULT_MODES and > CONFIGURE_MAXIMUM_PROCESSORS set to 1, Task 2 should not be allowed to > run until Task 1 completes - so the output of

Re: RTEMS tasks timesliced instead of running to completion. TIMESLICE flag is not active!

2020-05-01 Thread Thanassis Tsiodras (external)
> Polled vs interrupt console drivers? I don't see how... With tasks spawned with RTEMS_DEFAULT_MODES and CONFIGURE_MAXIMUM_PROCESSORS set to 1, Task 2 should not be allowed to run until Task 1 completes - so the output of "Starting" ( in "task_begin" of Task 2) should not be able to precede t

Re: RTEMS tasks timesliced instead of running to completion. TIMESLICE flag is not active!

2020-05-01 Thread Chris Johns
On 1/5/20 5:08 pm, Thanassis Tsiodras (external) wrote: Note that this test (complete code in https://gitrepos.estec.esa.int/ttsiodras/RTEMS-build-workflows/-/tree/master/OAR) creates the proper - non-interleaved - output when compiled and executed for the GR712RC and GR740 boards... but create

Re: using libdebugger

2020-05-01 Thread Chris Johns
On 1/5/20 2:13 am, Mario Palomares wrote: Well, really useful information Chris thanks, no worries about the lack of documentation completely understandable. Thanks. Just let me ask you some more questions Sure, no problem. - I´am trying to use it on a raspberry pi 2B, is it currently supp

Re: RTEMS tasks timesliced instead of running to completion. TIMESLICE flag is not active!

2020-05-01 Thread Thanassis Tsiodras (external)
> Probably, the print statement comes after the event send in your task, > and the event send is causing the task to self-suspend. Actually, no: https://gitrepos.estec.esa.int/ttsiodras/RTEMS-build-workflows/-/blob/master/OAR/src/task1.c#L48 with the task_end doing the event send after a (flus