platformio / platformio-core

Your Gateway to Embedded Software Development Excellence :alien:
https://platformio.org
Apache License 2.0
7.7k stars 780 forks source link

Aurix TC27x family support #4127

Open JoseOlin opened 2 years ago

JoseOlin commented 2 years ago

First thing's first. Thanks for this wonderful project.

I would like you to add support for AURIX TC27xT family boards

It seems to me an excellent low-cost option for applications based on the Arduino language, automotive grade, in addition to its pins being compatible with the Arduino Mega, so in principle it would facilitate the update of systems based on this board.

I saw that there is a channel dedicated to the Infineon XMC family, but I didn't know whether to post the issue there, since the XMC are based on ARM microcontroller, while the TC2x family is based on the TriCore AURIX.

If it is necessary to do some test to support the card support, I have just purchased one AURIX TC275 Lite KIT, that I make available for any necessary test.

Thank you very much in advance.

maxgerhardt commented 2 years ago

For integration into PlatformIO the toolchain is needed, but according to https://community.infineon.com/t5/AURIX/Compiler-for-AURIX-TriCore/td-p/315656?daysprune=-1 the toolchain they give out is for evaluation purposes only, for commercial purposes it needs to be "licensed from Tricore partners" -- this could be an issue?

JoseOlin commented 2 years ago

Interesting...

Thanks for your answer.

In principle, it would not be a problem for us, as we are considering the board to update a proof of concept, which at the moment would not be commercialized. We are mainly interested in being able to develop on Linux, ideally in Arduino language using PlatformIO.

Maybe it's a bit off topic, but do you know of any evaluation board with equivalent performance to the AURIX TC27x (automotive grade up to ASIL-D, temperature range up to 125 °C, CAN port, at least two microprocessor) that are already supported in PlatformIO?

We reviewed several options, the closest from Infineon was the XMC4700 which, if I remember correctly, only supports applications up to ASIL-C, but we are open to other option.

Thanks in advance for your support.

maxgerhardt commented 2 years ago

In principle, it would not be a problem for us, as we are considering the board to update a proof of concept, which at the moment would not be commercialized.

The problem is about redistribution. PlatformIO can only use the compiler if it's packaged correctly (that is, uploaded in some repo or in the registry with a fitting package.json). The EULA one aggrees to when downloading the toolchain explicitly states

4.5 No Assignment or Sharing. In no event shall Customer disclose, transfer, assign, publish, distribute, rent, lease or in any other way make Software available to third parties without the prior written consent by HighTec.

Which straight-out forbids "making software available without prior written consent by HighTec", who make this compiler. Very unfriendly to open-source projects.

Without a correctly-packaged toolchain for PlatformIO, no integration can be made.

JoseOlin commented 2 years ago

It's a shame as the board was an excellent entry point to automotive grade projects and it was the best hardware / price ratio we found, however being suitable for Open Source projects is a priority for us.

Hopefully Aurix will release a more open source friendly toolchain in the future, such as the XMC family.

nitko12 commented 11 months ago

Any news on this?

It would be awesome to be able to run Aurix code in platformio.

Has anyone reached out to HighTec about this?

maxgerhardt commented 11 months ago

I haven't reached out about this to anyone at least.

nitko12 commented 11 months ago

I've found this

https://github.com/volumit/tricore_gcc940_linux_bins

Could it be used, would it solve the license problem?

maxgerhardt commented 11 months ago

If https://github.com/volumit/package_940 doesn't infringe on any copyrights from HighTec or another company, I would deem it usable.

I don't however know how well "chip is used in professional, safety-critical automotive environments" and "we're compiling our code with a GCC version that we found on Github and says it had Tricore support" fits together. It would need to be very clear that this isn't the manufacturer's recommended toolchain and there's 0 liability or expectations.

rvxfahim commented 8 months ago

These automotive guys simply hate open-source because they are afraid of losing jobs and losing monopoly.

JoseOlin commented 7 months ago

These automotive guys simply hate open-source because they are afraid of losing jobs and losing monopoly.

Yep @rvxfahim , a total shame.

Hopefully some other company has a better vision.

I looked for some ST cards but I haven't found something that combines automotive grade, affordable price (the ST options I found were much more expensive than the Aurix, as I remember), suitable for prototyping (similar to Arduino) and Open-Source compiler.

I'm still on the lookout in case anyone knows some.