Search found 17 matches
- Thu Aug 08, 2019 1:47 pm
- Forum: ERIKA Enterprise and RT-Druid v3
- Topic: Tricore flash write execution cause trap on Erika3
- Replies: 0
- Views: 4316
Tricore flash write execution cause trap on Erika3
Conditions: TC299B Hightech Erika3 Singlecore mode CPU speed 200 MHz Problem: Firmware code is stored in PFLASH0 bank. I'm trying to Erase and write 5 pages in sector 27 (PFLASH1 bank) by iLLD functions. The demo example from iLLD works normally without Erika. But when i run the same example on Erik...
- Mon Aug 05, 2019 12:14 pm
- Forum: ERIKA Enterprise and RT-Druid v3
- Topic: Configuring Flash Wait Cycles on Tricore
- Replies: 7
- Views: 12528
Re: Configuring Flash Wait Cycles on Tricore
I see a significant difference in the initialization of clock frequencies by means of EriKa and iLLD for TC299B. With the same frequency settings, initialization by means of Erika and initialization illd give different values of the registers sets CCUCON and PLLCON. This is acceptable and normal. Bu...
- Wed Jul 31, 2019 2:28 pm
- Forum: ERIKA Enterprise and RT-Druid v3
- Topic: Configuring Flash Wait Cycles on Tricore
- Replies: 7
- Views: 12528
Re: Configuring Flash Wait Cycles on Tricore
I have add the bypass into OIL OS EE { EE_OPT = "OSEE_DEBUG"; EE_OPT = "OSEE_ASSERT"; EE_OPT = "OS_EE_APPL_BUILD_DEBUG"; EE_OPT = "OS_EE_BUILD_DEBUG"; EE_OPT="OSEE_BYPASS_CLOCK_CONFIGURATION"; <---------- STATUS = EXTENDED; ERRORHOOK = TRUE; USERESSCHEDULER = FALSE; USEORTI = TRUE; KERNEL_TYPE = OSE...
- Wed Jul 31, 2019 11:49 am
- Forum: ERIKA Enterprise and RT-Druid v3
- Topic: Configuring Flash Wait Cycles on Tricore
- Replies: 7
- Views: 12528
Re: Configuring Flash Wait Cycles on Tricore
Is this definition no longer needed in OIL?
P.S. you alone do a great job
Code: Select all
CPU_DATA = TRICORE {
...
CPU_CLOCK = 300.0;
...
}
- Wed Jul 31, 2019 7:00 am
- Forum: ERIKA Enterprise and RT-Druid v3
- Topic: Configuring Flash Wait Cycles on Tricore
- Replies: 7
- Views: 12528
Configuring Flash Wait Cycles on Tricore
On Tricore TC29x microcontrollers neccessary to configure Flash wait cycles on dependent of CPU clock speed. This is stated in the user manual. 10.5.3.3 Configuring Flash Wait Cycles ... After System Reset and Power-On Reset the wait cycles are configured for the clock configuration used during star...
- Wed Jul 24, 2019 6:01 am
- Forum: ERIKA Enterprise and RT-Druid v3
- Topic: Custom trap functions
- Replies: 4
- Views: 3143
Re: Custom trap functions
I missed the context save/restore operation and call instruction. And this omission led to context underrun trap. Thanks for useful clarification
- Mon Jul 22, 2019 8:02 am
- Forum: ERIKA Enterprise and RT-Druid v3
- Topic: Custom trap functions
- Replies: 4
- Views: 3143
Re: Custom trap functions
I was modified the ee_tc_trapvec.c starting on line 1298 with that: ... #if (defined(OSEE_MEMORY_PROTECTION)) OSEE_TC_TRAP_DEFINITION(osEE_tc_trap_protection, osEE_tc_protection_handler) #elif (defined(OSEE_TC_TRAP_PROT_TRAP)) OSEE_TC_TRAP_DEFINITION(osEE_tc_trap_protection, OSEE_TC_TRAP_PROT_TRAP) ...
- Fri Jul 19, 2019 1:19 pm
- Forum: ERIKA Enterprise and RT-Druid v3
- Topic: Custom trap functions
- Replies: 4
- Views: 3143
Custom trap functions
I need to create my own exception handling functions. In Erika, exceptions calls a trap function, such as osEE_tc_trap_bus, osEE_tc_trap_context and others. How to add custom function call into trap handler's?
- Thu Jul 18, 2019 8:19 am
- Forum: ERIKA Enterprise and RT-Druid v3
- Topic: linker script for running code from RAM on TriCore
- Replies: 3
- Views: 3700
Re: linker script for running code from RAM on TriCore
What is the "global declaration of PSRAM"? I have saw following RAM areas in ld script: MEMORY {... /* Scratch-Pad RAMs Core2 */ DMI_DSPR2_local (w!xpc2): org = 0xD0000000, len = 240K DMI_DSPR2 (w!xpc2): org = 0x50000000, len = 240K PMI_PSPR2 (wx!pc2): org = 0x50100000, len = 32K /* Scratch-Pad RAMs...
- Mon Jul 15, 2019 9:39 am
- Forum: ERIKA Enterprise and RT-Druid v3
- Topic: malloc using
- Replies: 2
- Views: 2906
Re: malloc using
It looks like my debugging tools incorrectly display variables. I opened the memory view and saw that the malloc() returned a pointer to the newly allocated memory space, and not to the internal variable "osEE_tc_stm_freq_kHz". But in memory this two area located tightly. So, now it's worked normall...
- Mon Jul 15, 2019 8:07 am
- Forum: ERIKA Enterprise and RT-Druid v3
- Topic: linker script for running code from RAM on TriCore
- Replies: 3
- Views: 3700
linker script for running code from RAM on TriCore
Im using Erika 3 on Tricore TC299. During debugging, I want to load the program not in the FLASH memory, but in the RAM. There is no ready-to-use linker script bundled with Erika 3. For a single-core configuration, it suffices to replace SECTIONS { ... .<section name> : FLAGS(...) { ... } > PMU_PFLA...
- Mon Jul 15, 2019 7:56 am
- Forum: ERIKA Enterprise and RT-Druid v3
- Topic: malloc using
- Replies: 2
- Views: 2906
malloc using
How to use dynamic memory allocation correctly with Erika 3 on TriCore Free Toolchain? Im working with TriCore TС299 microcontroller and using ERIKA 3. When i calling standard C function malloc, I have return result null. As if it is impossible to allocate memory. Then I opened the linker script "ee...
- Thu Jul 11, 2019 3:05 pm
- Forum: ERIKA Enterprise and RT-Druid v3
- Topic: Interrupts on Erika3 and Tricore 29x with iLLD
- Replies: 4
- Views: 4586
Re: Interrupts on Erika3 and Tricore 29x with iLLD
I made a few mistakes that caused the problem: 1. I used Eclipse Photon for Erika 3 source code generation via RTDruid embedded into Photon. With this tool it is difficult to integrate iLLD, since Eclipse does not create make-files for iLLD and other sources. In addition, I use a debugger "DAP miniW...
- Wed Jul 10, 2019 2:25 pm
- Forum: ERIKA Enterprise and RT-Druid v3
- Topic: Interrupts on Erika3 and Tricore 29x with iLLD
- Replies: 4
- Views: 4586
Interrupts on Erika3 and Tricore 29x with iLLD
I have project based on Erika3, generated by RT-druid and added to it iLLD library. I using ASCLIN module in usart mode. After Tx, calling interrupt with priority 10, as i sets in OIL and iLLD configuration. The first byte is sent by the microcontroller is normally received by the PC. After that, mi...
- Tue Jul 02, 2019 6:13 am
- Forum: ERIKA Enterprise and RT-Druid v3
- Topic: Problem with buiding example on Tricore with Erika 3
- Replies: 4
- Views: 5834