Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
smyrnoek
Level 1
Level 1
First reply posted First question asked Welcome!

Hi all,

I am not sure if I locate this question correctly in this forum, but it is as follows:

- for unit testing of our application SW we need to be able to easily compile (and link) the ANSI C code of one particular "SW-component under test" into an elf file, which would run certain SWC_main() function in an endless while loop on our TC387:

  • without configuring any (or as less as possible) peripherals of the TC387 uC
  • Our project-specific compiler shall be used for compiling

Maybe there exists such a tool, maybe provided by Infineon, which could make it possible to do it?

So at the end we would need an elf file with some very basic (but better Infineon approved) start-up code for TC387 which would after start-up proceede to an endless while loop, which would run our SWC_main function.

I would be grateful for all suggestions.

P.S. writing our own makefile and linker we would also like to avoid, but use some proven sollution, which shall for sure exist.

0 Likes
3 Replies
Prudhvi_E
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 25 likes received

Hello,

You could use the following code example available in the GitHub:

https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/Blinky_LED_1_KIT_TC387_TFT

The example is designed for basic Blinking LED program. But you may disable that code if you wish to do so. The example also has main function for each core that has while(1) implemented where you can extend your code. You may also refer to the following presentation on the above project:

https://www.infineon.com/dgdl/Infineon-AURIX_Blinky_LED_1_KIT_TC387_TFT-Training-v01_00-EN.pdf?fileI...

Regards,

Prudhvi.

0 Likes

Hi, thank you for the answer. But:

BR

Oleksandr 

0 Likes
Prudhvi_E
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 25 likes received

Hi Oleksandr,

  • You may refer to the other code examples and extend your project by integrating the source files. We don't have an example where all peripherals are utilized in one project.
  • If you have the previous ADS versions installed already, by building the project itself you would see the makefile & *.mk files generated in the Debug folder. Also, the linker file Lcf_Tasking_Tricore_Tc.lsl is available in the project by default. You may adapt those to your needs.
  • AURIX Development Studio is currently not available in the Developer Center at the moment. It has been removed, and no download is possible. Our teams are working to make it available again as soon as possible. Apologies for the inconvenience.

Regards,

Prudhvi.

0 Likes