Search found 40 matches

by AlTi
Fri Apr 08, 2016 9:25 am
Forum: ERIKA Enterprise and RT-Druid v2
Topic: Interarrival Time Protection (AURIX)
Replies: 22
Views: 9425

Re: Interarrival Time Protection (AURIX)

Hi, I don´t see a major problem using the STM. I already have a first and easy implementation which simply replaces the CCNT against the STM. This simple replacement works, because the STM runs at CPU frequency per default (f_stm is not derived from f_spb; instead, it can be configured relatively in...
by AlTi
Wed Apr 06, 2016 1:30 pm
Forum: ERIKA Enterprise and RT-Druid v2
Topic: Interarrival Time Protection (AURIX)
Replies: 22
Views: 9425

Re: Interarrival Time Protection (AURIX)

Hi again, I want to share another user experience I have gained with the timing protection and that might be interesting for you. In the current implementation, the "CPU Clock Count Register", which is part of the "Core Debug Controller", is used as free running timer. This timer is only running, wh...
by AlTi
Wed Feb 17, 2016 11:09 am
Forum: ERIKA Enterprise and RT-Druid v2
Topic: Using ERIKA with AURIX TC29x
Replies: 3
Views: 3512

Using ERIKA with AURIX TC29x

Hi, I will get a new board with an TC29x soon and I´m questioning whether a migration of the application from the tc27x to the tc29x will work out, since there is no official support for the tc29x. I looked into the folder "mcu" and recognized two folders related to the TriCore: -infineon_common_tc2...
by AlTi
Tue Feb 16, 2016 11:29 am
Forum: ERIKA Enterprise and RT-Druid v2
Topic: Inconsistent eecfg leads to build error
Replies: 21
Views: 8814

Re: Inconsistent eecfg leads to build error

Ok, I tested the patch and got the same behavior at first. But then I looked into EE_tc2Yx_stm_set_sr0_next_match and saw, that the Interrupts are enabled at the end of this function. That means, Interrupts were enabled in the system-timer-ISR2 between EE_tc2Yx_stm_set_sr0_next_match and the Increme...
by AlTi
Mon Feb 15, 2016 10:53 am
Forum: ERIKA Enterprise and RT-Druid v2
Topic: Inconsistent eecfg leads to build error
Replies: 21
Views: 8814

Re: Inconsistent eecfg leads to build error

I know a little bit more about the issue now: The problem is, that sometimes EE_oo_IncrementCounterImplementation() isn´t called inside the system-timer-ISR2, because ev is not E_OK. That explains the 1ms delay I get, since the Task would be activated then one system-timer-ISR2 later. Inside EE_oo_I...
by AlTi
Fri Feb 12, 2016 10:58 am
Forum: ERIKA Enterprise and RT-Druid v2
Topic: Inconsistent eecfg leads to build error
Replies: 21
Views: 8814

Re: Inconsistent eecfg leads to build error

The behavior hasn´t changed with the patch :( . If you don´t have another idea, don´t worry. My time requirements are not that strict ... delayed Task Activations aren´t a big issue.
by AlTi
Wed Feb 10, 2016 10:25 am
Forum: ERIKA Enterprise and RT-Druid v2
Topic: Inconsistent eecfg leads to build error
Replies: 21
Views: 8814

Re: Inconsistent eecfg leads to build error

Hi Errico, thanks for the patch, but I still have problems to apply the patches. I always get an error "corrupt patch at line 6" when I try to do "git apply patch". Maybe it´s a format issue? Wen can either figure this out or you just copy the whole file.
by AlTi
Mon Feb 08, 2016 1:02 pm
Forum: ERIKA Enterprise and RT-Druid v2
Topic: Inconsistent eecfg leads to build error
Replies: 21
Views: 8814

Re: Inconsistent eecfg leads to build error

I have tested another configuration too, without SuspendXYZInterrupts() in the ISR2:

InCallCNT = 1958
ISR0CallCNT = 6716
TaskExecutionDelayCNT = 7
Maximum delay measured = 1ms

Edit: My thought is, that something, most probably in the system-timer-ISR is not interrupt safe.
by AlTi
Mon Feb 08, 2016 12:43 pm
Forum: ERIKA Enterprise and RT-Druid v2
Topic: Inconsistent eecfg leads to build error
Replies: 21
Views: 8814

Re: Inconsistent eecfg leads to build error

I removed most of my user-code to have a simple example and I deactivated my second ISR2. SuspendXYZ is only called in the ISR2 now (not anymore in TaskERSIn). I tested with SuspendOSInterrupts and SuspendAllInterrupts inside the ISR2. To generate the interrupts, I sent CAN-messages to the microcont...
by AlTi
Fri Feb 05, 2016 4:59 pm
Forum: ERIKA Enterprise and RT-Druid v2
Topic: Inconsistent eecfg leads to build error
Replies: 21
Views: 8814

Re: Inconsistent eecfg leads to build error

I will try it.

The ISR2 is not really necessary because I´m using the buffer inside the CAN Controller of the AURIX and this buffer is read out every cycle in TaskERSIn. The ISR2 just handles the exception "buffer overflow".
by AlTi
Fri Feb 05, 2016 4:06 pm
Forum: ERIKA Enterprise and RT-Druid v2
Topic: Inconsistent eecfg leads to build error
Replies: 21
Views: 8814

Re: Inconsistent eecfg leads to build error

Ok, I measured the execution time of TaskERSIn and it´s roughly 100us. So let´s assume the critical section is 100us. Could this be an issue since the system timer isr occurs only every 1ms? TaskERSOut doesn´t use the resource - that´s an error in the OIL. Maybe I will delete the ISR2s because they ...
by AlTi
Fri Feb 05, 2016 2:50 pm
Forum: ERIKA Enterprise and RT-Druid v2
Topic: Inconsistent eecfg leads to build error
Replies: 21
Views: 8814

Re: Inconsistent eecfg leads to build error

Thank you very much and the patch worked :) ... but now I have another question: My Task ERSIn is activated every 40ms by an alarm that is tied to the system timer. I have observed that this Task sometimes starts the execution delayed ... by 1 to 3ms. This happens only if my ISR2 is called several t...
by AlTi
Thu Feb 04, 2016 9:20 am
Forum: ERIKA Enterprise and RT-Druid v2
Topic: Inconsistent eecfg leads to build error
Replies: 21
Views: 8814

Re: Inconsistent eecfg leads to build error

The main reason for using 10/11 as priorities was the even number, but I wasn´t completely sure that ERIKA would use only 2 priorities in any case too. Here´s the complete oil-File: CPU test_application { OS EE { EE_OPT = "EE_DEBUG"; EE_OPT = "__ASSERT__"; EE_OPT = "EE_SAVE_TEMP_FILES"; EE_OPT = "EE...
by AlTi
Wed Feb 03, 2016 5:57 pm
Forum: ERIKA Enterprise and RT-Druid v2
Topic: Inconsistent eecfg leads to build error
Replies: 21
Views: 8814

Inconsistent eecfg leads to build error

Hi, I get a build error if I add a Resource to my multicore-project and try to build it. The resource is used by 2 ISR2s and one Task on Core0. The error is caused by the definition of this array EE_UREG EE_isr2_nesting_level[EE_MAX_ISR2]; which is defined eecfg.c and the declaration in ee_oo_common...
by AlTi
Tue Nov 24, 2015 9:44 am
Forum: ERIKA Enterprise and RT-Druid v2
Topic: Interarrival Time Protection (AURIX)
Replies: 22
Views: 9425

Re: Interarrival Time Protection (AURIX)

Thanks,

the patch worked. This time I got the error immediately after the execution budget expired.

Best regards