Hi I’m working on new platform for Infineon Aurix MCU and Arduino framework from Hitex (shieldbuddy board).
I have already run ( compiler and uploader) work 100%.
For TESTING purposes, I have copied a .piopm file from another package and swap the “I’d” by random number and change the name, type,etc for appropriate ones.
This way I got it to work!
This is not the PlatformIO way. You should create a toolchain-xxxx package (e.g. toolchain-gccarmnoneeabi), i.e., add a package.json in the the toolchain’s folder with the appropriate name and version (example).
You can reference that in the platform.json (example) and main.py (example).
Note that the version for a package in the platform.json can also be symlink://<some local path on your computer> for the toolchain.
Packages are usually approved within a week, but if you don’t want to wait, you can also point to the git repository in the version field for a package in the platform.json.
Ok thanks, I don’t know if I should open another post or continue in this one,In the case of Aurix microcontroller it is a multicore and uses:
void setup();
void loop();
void setup1();
void loop1();
void setup2();
void loop2();
How can I generate the main.cpp when starting the project with these extras?
I know that the penv\Lib\site-packages\platformio\home\rpc\handlers\project.py generates this file.
I’ve tried adding to platformio.ini platform = https://github.com/juanjqh/infineonaurix.git
With no success, it says Could not find the package with 'platformio/framework-aurduino @ 1.0.0' requirements for your system 'windows_amd64'
Well the platform.json is definitely wrong because it references that as a PIO registry package when in fact it doesn’t exist (https://registry.platformio.org/search?q=framework-aurduino). It would need to just have the version be the git URL link https://github.com/juanjqh/framework-aurduino.git.
I assume the same mistake is being present for the other packages too.
Hello Max! With the Hightec toolchain, there’s no need to modify the include path. What I did was copy the folder with the MCU register package into the GCC Tricore toolchain. Thank you very much for the corrections!