Erika on Aurix TC297B
Moderator: paolo.gai
Erika on Aurix TC297B
Hello, we have managed to port Erika Enterprise v2 RTOS to TC297B TFT board in multicore configuration and decided to share it as there is no Erika OS TC297 port available online.
The code is available at: http://git.edi.lv/vitalijs.fescenko/Eri ... TC29x_port. Link also contains some examples - shared data, iLLD integration - and description on how Erika OS port can be developed for other TC2xx boards.
We used HighTec GNU compiler available with Free Entry Toolchain, and Erika IDE because BiFACES's Erika OS example does not work in multicore configration.
We are not experts in Tricore or Erika OS, so any suggestions will be appreciated.
The code is available at: http://git.edi.lv/vitalijs.fescenko/Eri ... TC29x_port. Link also contains some examples - shared data, iLLD integration - and description on how Erika OS port can be developed for other TC2xx boards.
We used HighTec GNU compiler available with Free Entry Toolchain, and Erika IDE because BiFACES's Erika OS example does not work in multicore configration.
We are not experts in Tricore or Erika OS, so any suggestions will be appreciated.
Re: Erika on Aurix TC297B
Hi!
Thanks for your work, it seems really nice!
What about committing the examples and the support you have done mainline, merging with the support available internally? Let us know if you are interested.
Ciao,
PJ
Thanks for your work, it seems really nice!
What about committing the examples and the support you have done mainline, merging with the support available internally? Let us know if you are interested.
Ciao,
PJ
Re: Erika on Aurix TC297B
We are interested and would be glad if you could explain further steps we must take to achieve that.
Re: Erika on Aurix TC297B
Hi,
I did not forget about your request, but we are currently overbooked and the replies in the forum somehow slipped.
What happens is that we do have a porting for that micro on our servers, but we were requested to hold on a while until other customers wanted it. This may happen soon, and if it happens then we would have a complete porting included RT-Druid. So if you do not mind please hold the patches for a while.
Ciao,
PJ
I did not forget about your request, but we are currently overbooked and the replies in the forum somehow slipped.
What happens is that we do have a porting for that micro on our servers, but we were requested to hold on a while until other customers wanted it. This may happen soon, and if it happens then we would have a complete porting included RT-Druid. So if you do not mind please hold the patches for a while.
Ciao,
PJ
Re: Erika on Aurix TC297B
Hi,
I am a student and i am now trying to do an Erika application on Aurix using Bifaces.
On Single Core i did not found any problem on generating file with RT-Druid and compile my application but when i tried to do an application with multicore(Defining more the one CPU_DATA in the oil file) i found some problems.
RT-Druid or something else cannot generate correctly the .c .h and .mk files for my application.
I can see the temporary folder where RT-Druid is building the files, i can see one different folder for each diffent CPU but when it tries to move this file to my source folder something goes wrong and cannot merge them.
Does someone know how to solve this problem? Was it the same motivation that makes you using the Erika IDE instead of Bifaces?
Thanks in advance,
I am a student and i am now trying to do an Erika application on Aurix using Bifaces.
On Single Core i did not found any problem on generating file with RT-Druid and compile my application but when i tried to do an application with multicore(Defining more the one CPU_DATA in the oil file) i found some problems.
RT-Druid or something else cannot generate correctly the .c .h and .mk files for my application.
I can see the temporary folder where RT-Druid is building the files, i can see one different folder for each diffent CPU but when it tries to move this file to my source folder something goes wrong and cannot merge them.
Does someone know how to solve this problem? Was it the same motivation that makes you using the Erika IDE instead of Bifaces?
Thanks in advance,
Re: Erika on Aurix TC297B
Hi,
The ERIKA makefiles works with many architecture/compilers, and we never tried them on bifaces (we are of little help for this integration...).
The various directory you see are there because we generate on ERIKA2 one ELF per core.
Things will change with ERIKA3 on Tricore AURIX (we plan a release around end of the month/mid july, that will support over time various AURIX derivatives).
Ciao,
PJ
The ERIKA makefiles works with many architecture/compilers, and we never tried them on bifaces (we are of little help for this integration...).
The various directory you see are there because we generate on ERIKA2 one ELF per core.
Things will change with ERIKA3 on Tricore AURIX (we plan a release around end of the month/mid july, that will support over time various AURIX derivatives).
Ciao,
PJ
Re: Erika on Aurix TC297B
Hi,
I am new user of the ERIKA OS and AURIX Tricore boards. Currently, i am working on my internship project and I have to use ARIKA OS on AURIX TC264 B-step.
I tried the example you motioned but I get errors on the common.mk file which are :
Best regards,
I am new user of the ERIKA OS and AURIX Tricore boards. Currently, i am working on my internship project and I have to use ARIKA OS on AURIX TC264 B-step.
I tried the example you motioned but I get errors on the common.mk file which are :
- EEBASE is set, but it has been overridden by ERIKA_FILES
- make: *** No rule to make target '/cygdrive/c/Users/CHAYMA~1/WORKSP~1/PROJEC~1/ee_files/pkg/cfg/rules.mk'. Stop.
Best regards,
Re: Erika on Aurix TC297B
Could you guarantee to have an ERIKA's checkout in:
C:\Users\CHAYMA~1\WORKSP~1\PROJEC~1\ee_files ?
If you want to use the ERIKA inside RT-Druid just unset ERIKA_FILES (and EEBASE) system variables, otherwise double check your configuration
C:\Users\CHAYMA~1\WORKSP~1\PROJEC~1\ee_files ?
If you want to use the ERIKA inside RT-Druid just unset ERIKA_FILES (and EEBASE) system variables, otherwise double check your configuration
Re: Erika on Aurix TC297B
Hello,
Thank you for your help. I did set the error concerning the system variable. but after rebuilding the project , it gave me another errors which are :
The whole console spot is presented in the following picture.
Notes :
I am using HIGHTEC Free Entry Tool Chain with ERIKA v2 and RT_DRUID 2.8 same as the project motioned before. I also remake all the steps of the porting project but it failed to compile correctly.
I would be thankful if you help me.
Best regards,
Thank you for your help. I did set the error concerning the system variable. but after rebuilding the project , it gave me another errors which are :
- make[1]: *** [/cygdrive/c/Users/CHAYMA~1/WORKSP~1/PROJEC~1/ee_files/pkg/cfg/arch/rules_infineon_tc_generic.mk:275: /pkg/mcu/infineon_common_tc2Yx/src/ee_tc2Yx_cstart.o] Error 127
- make[1]: Leaving directory '/cygdrive/c/Users/ChayMa Hajjem/workspace/Project_AURIX_TC264B_1/Debug/master'
- make: *** [/cygdrive/c/Users/CHAYMA~1/WORKSP~1/PROJEC~1/ee_files/pkg/cfg/arch/rules_infineon_multi_base.mk:158: CPU_MASTER-all] Error 2
The whole console spot is presented in the following picture.
Notes :
I am using HIGHTEC Free Entry Tool Chain with ERIKA v2 and RT_DRUID 2.8 same as the project motioned before. I also remake all the steps of the porting project but it failed to compile correctly.
I would be thankful if you help me.
Best regards,
- Attachments
-
- error.PNG (42.6 KiB) Viewed 82529 times
Re: Erika on Aurix TC297B
The problem is the configuration on the environment for the compiler path as you can see in the on the image.
Have you used the Environment Variable or the common_oil.pref property file?
http://erika.tuxfamily.org/wiki/index.p ... iler_paths
Use the slash instead of backslash or double the back slash:
like this:
TRICORE_GCCDIR = C:/HIGHTEC/toolchains/tricore/v4.9.1.0-infineon-2.0
or
TRICORE_GCCDIR = C:\\HIGHTEC\\toolchains\\tricore\\v4.9.1.0-infineon-2.0
N.B. omit /bin it will be added be the build chain
Have you used the Environment Variable or the common_oil.pref property file?
http://erika.tuxfamily.org/wiki/index.p ... iler_paths
Use the slash instead of backslash or double the back slash:
like this:
TRICORE_GCCDIR = C:/HIGHTEC/toolchains/tricore/v4.9.1.0-infineon-2.0
or
TRICORE_GCCDIR = C:\\HIGHTEC\\toolchains\\tricore\\v4.9.1.0-infineon-2.0
N.B. omit /bin it will be added be the build chain
Re: Erika on Aurix TC297B
Hello,
Thank you so much for your help.
I used system variables and I set the path with double back slash and it works perfectly.
In addition, I have a question concerning the porting project motioned before. Can I change the tc27xB with tc26xB ? Because I have to work with the TC264 B-step board.
Best regards,
Thank you so much for your help.
I used system variables and I set the path with double back slash and it works perfectly.
In addition, I have a question concerning the porting project motioned before. Can I change the tc27xB with tc26xB ? Because I have to work with the TC264 B-step board.
Best regards,
Re: Erika on Aurix TC297B
The right value is simply TC26x
Code: Select all
MCU_DATA = TRICORE {
MODEL = TC26x;
};
Re: Erika on Aurix TC297B
Thank you for your quick reply but here what i get when i changed to TC26x.
there is an error with CORE 2.
Best regards,
there is an error with CORE 2.
Best regards,
- Attachments
-
- error 2.PNG (16.37 KiB) Viewed 82511 times
Re: Erika on Aurix TC297B
Obviously since tc26x is just a dual core you cannot run a 3 core configuration just as is,
you have to adjust it removing al the reference to the third core.
you have to adjust it removing al the reference to the third core.
Re: Erika on Aurix TC297B
Hi,
Thank you very much for your answer. I have another request. Is there any documentation or tutorial of a simple code example.
For example a LED blinking.
Thank you
Best regards,
Thank you very much for your answer. I have another request. Is there any documentation or tutorial of a simple code example.
For example a LED blinking.
Thank you
Best regards,