Announcements

Robots are revolutionizing our lives in many ways. Join our webinar to learn about Infineon’s broad portfolio of robot building blocks.
Click here to register.

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

XMC™ Forum Discussions

tazz
Level 1
Level 1
First reply posted 5 sign-ins First question asked

give detail steps to porting to bare metal microcontroller.

0 Likes
6 Replies
Bhamy
Moderator
Moderator
Moderator
50 replies posted 10 solutions authored 25 replies posted

Hi @tazz ,

XMC7200 eval kit is already supported with ModusToolBox 3.0. There are several examples projects available which can be pulled using Project creator. Kindly let me know more details on the specific requirements or expectations for your projects which cannot be found on the standard installation of ModusToolBox 3.0.

Best regards,

Bhamy Narasimha Shenoy 

0 Likes
Bhamy
Moderator
Moderator
Moderator
50 replies posted 10 solutions authored 25 replies posted

Hi @tazz ,

Did you get chance to review my previous response?

Best regards,

Bhamy Narasimha Shenoy

0 Likes
tazz
Level 1
Level 1
First reply posted 5 sign-ins First question asked

hi when porting  coremark pro to bare metal xmc  7200 ,i am getting these error.

 

enerating compilation database file...
-> ./build/compile_commands.json
Compilation database file generation complete
Building 193 file(s)
Linking output file mtb-example-hal-rtc-basics.elf
c:/users/tanand3/modustoolbox/tools_3.0/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/doit/RTC_Basics/build/APP_KIT_XMC72_EVK/Debug/mith/al/th_al.o: in function `al_signal_start':
C:\doit\RTC_Basics/mith/al/th_al.c:252: undefined reference to `clock_gettime'
c:/users/tanand3/modustoolbox/tools_3.0/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/doit/RTC_Basics/build/APP_KIT_XMC72_EVK/Debug/mith/al/th_al.o: in function `al_signal_finished':
C:\doit\RTC_Basics/mith/al/th_al.c:297: undefined reference to `clock_gettime'
c:/users/tanand3/modustoolbox/tools_3.0/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/doit/RTC_Basics/build/APP_KIT_XMC72_EVK/Debug/mith/al/th_al.o: in function `al_signal_now':
C:\doit\RTC_Basics/mith/al/th_al.c:334: undefined reference to `clock_gettime'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [../mtb_shared/core-make/release-v3.0.3/make/core/build.mk:435: C:/doit/RTC_Basics/build/APP_KIT_XMC72_EVK/Debug/mtb-example-hal-rtc-basics.elf] Error 1
make: *** [../mtb_shared/core-make/release-v3.0.3/make/core/main.mk:376: secondstage_build] Error 2
"C:/Users/TAnand3/ModusToolbox/tools_3.0/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_IDE_TOOLS_DIR=C:/Users/TAnand3/ModusToolbox/tools_3.0 CY_IDE_BT_TOOLS_DIR= -j8 all" terminated with exit code 2. Build might be incomplete.

11:13:53 Build Failed. 8 errors, 0 warnings. (took 5s.521ms)

0 Likes
Bhamy
Moderator
Moderator
Moderator
50 replies posted 10 solutions authored 25 replies posted

Hi @tazz ,

It looks like some errors linking the sources from the Coremark pro. Can you please provide me some details on what are your requirement with XMC7200?

Best regards,

Bhamy Narasimha Shenoy

0 Likes
tazz
Level 1
Level 1
First reply posted 5 sign-ins First question asked

hi

GETMYTIME (&initial ) is not supported on modus toolbox version 3.0 , in place of this which function should I use?

regards

0 Likes
Bhamy
Moderator
Moderator
Moderator
50 replies posted 10 solutions authored 25 replies posted

Hi @tazz ,

There is a SysTick timer running along with CPU. Please refer to below document for the API available to access it:

https://infineon.github.io/mtb-pdl-cat1/pdl_api_reference_manual/html/group__group__arm__system__tim...

Let me know if need some more information.

Best regards

Bhamy Narasimha Shenoy 

0 Likes
This widget could not be displayed.