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

ModusToolbox™ General Forum Discussions

Andreas_Heder
Level 3
Level 3
10 replies posted 25 sign-ins First like received

Hello,

 

how can i enable the Macro Expansion´s for the generatedsource headers?

MAcroExpansion.png

linke CY_RSLT_SEUCCESS... but i cant see it for my own definitions via the device configurator. Here for example an PWM.

 

Thanks

Andreas H.

0 Likes
8 Replies
LeoMathews
Moderator
Moderator
Moderator
100 sign-ins 25 solutions authored 100 replies posted

Hi @Andreas_Heder 

To view the macro expansion press ctrl + left-click on PWM_LED2_HW.

Can you please clarify whether you have enabled the corresponding TCPWM peripheral as shown below? In your case, the peripheral in which PWM_LED2_HW is assigned should be enabled.

LeoMathews_2-1673011768604.png

Thanks and Regards,
Leo

 

 

0 Likes
Andreas_Heder
Level 3
Level 3
10 replies posted 25 sign-ins First like received

Hello,

yes, the assigned hardware is correct, everything works fine on the uC.

 

This is more an IDE issue. (For example when i start mtb, all makro expansions do not show. After the first Build all Makro Expansions works fine, but no one from the generated Source Code.

Any ideas are welcome...

BR

Andreas

 

0 Likes
Andreas_Heder
Level 3
Level 3
10 replies posted 25 sign-ins First like received

Hello again,

 

what i have to say:

Everything works fine in a "single Core" Project.

I have the problem only in XMC7000 MultiCore Project.

Andreas_Heder_0-1673022021355.png

 

BR

Andreas

0 Likes
LeoMathews
Moderator
Moderator
Moderator
100 sign-ins 25 solutions authored 100 replies posted

Hi @Andreas_Heder 

I couldn't find the exact reason why this issue occurs. I will try to reproduce the issue from my part again. I will also report the same to the internal team to check on XMC7000 MultiCore Project.

Thanks and Regards,
Leo

0 Likes
LeoMathews
Moderator
Moderator
Moderator
100 sign-ins 25 solutions authored 100 replies posted

Hi @Andreas_Heder 

Can you please try the same project in Visual Studio Code and see if the problems exist there?

Thanks and Regards,
Leo

0 Likes

Hey @LeoMathews ,

 

in VS C everything works fine:

Andreas_Heder_0-1674218732679.png

"PWM_TEST_HW" --> As expected, refers me to the correct #define

 

thr problem looks like an eclipse specific one.

 

br

Andreas Heder

 

0 Likes
LeoMathews
Moderator
Moderator
Moderator
100 sign-ins 25 solutions authored 100 replies posted

Hi @Andreas_Heder 

Can you please verify whether you have saved the changes made in the Device Configurator prior to the build?

Thanks and Regards,
Leo

0 Likes
Andreas_Heder
Level 3
Level 3
10 replies posted 25 sign-ins First like received

Hi @LeoMathews ,

Yes of course the changes are saved. As I said, the firmware works fine on the device.

In my opinion, the Indexer from Eclipse is the problem here. Something is wrong in the settings...

 

BR 

Andreas

0 Likes