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

AURIX™ Development Studio Forum Discussions

User-6_6-
Employee
Employee
5 questions asked 25 sign-ins First like received

In ADS v1.8.0, AURIX SCR support is available.
* Added support for SCR architecture during project creation for TC3.User6_6_0-1672893718273.png

User6_6_1-1672893898532.png

 

However, there is compilation error after creating a new AURIX SCR project.
TASKING VX-toolset for AURIX Development Studio (non-commercial): control program v1.1r8 Build 22011964
Building file: ../SCR.c
ctc E219: ["../SCR.c" 29/1] cannot open #include file "scr_a2g.h"
Invoking: TASKING C/C++ Compiler
cctc -cs --dep-file="SCR.d" --misrac-version=2004 -D__CPU__=tc37x "-fC:/AURIX-workspace/AURIX_SCR/Debug/TASKING_C_C___Compiler-Include_paths.opt" --iso=99 --c++14 --language=+volatile --exceptions --anachronisms --fp-model=3 -O0 --tradeoff=4 --compact-max-size=200 -g -Ctc37x -Y0 -N0 -Z0 -o "SCR.src" "../SCR.c" && \
if [ -f "SCR.d" ]; then sed.exe -r -e 's/\b(.+\.o)\b/\/\1/g' -e 's/\\/\//g' -e 's/\/\//\//g' -e 's/"//g' -e 's/([a-zA-Z]:\/)/\L\1/g' -e 's/\d32:/@TARGET_DELIMITER@/g; s/\\\d32/@ESCAPED_SPACE@/g; s/\d32/\\\d32/g; s/@ESCAPED_SPACE@/\\\d32/g; s/@TARGET_DELIMITER@/\d32:/g' "SCR.d" > "SCR.d_sed" && cp "SCR.d_sed" "SCR.d" && rm -f "SCR.d_sed" 2>/dev/null; else echo 'No dependency file to process';fi
1 errors, 0 warnings

Could you show how to configure the AURIX toolchain and SCR SDCC toolchain and compile the project without error?

0 Likes
3 Replies
Jeremy_Zhou
Moderator
Moderator
Moderator
25 replies posted 25 sign-ins First solution authored

Hi @User-6_6- ,

Thank you for your interest in Infineon Semiconductor products and for the opportunity to serve you.

Actually, I've not replicated the same phenomenon you mentioned above, it can compile the demo successfully, further, I also upload the demo for you to check.

Jeremy_Zhou_0-1672897275504.png

 

BR,

Jeremy

0 Likes
Jeremy_Zhou
Moderator
Moderator
Moderator
25 replies posted 25 sign-ins First solution authored

Hi @User-6_6- ,

Please check the attached demo for the TC37x.

BR,

Jeremy

 

0 Likes
User-6_6-
Employee
Employee
5 questions asked 25 sign-ins First like received

Thanks for the project.

There is a warning in the generated scr_a2g.h file, when compiling. Please advise how to correct it.

  User6_6_0-1673246002967.png

Building file: ../scr_a2g.c
ctc W504: ["..\scr_a2g.h" 26/9] macro "LABEL_scr_xram__00101" redefined
Invoking: TASKING C/C++ Compiler
ctc I801: ["..\scr_a2g.h" 23/9] previous definition of macro "LABEL_scr_xram__00101"
0 errors, 1 warnings

0 Likes