Macro Expansion for GeneratedSource

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

cross mob
Andreas_Heder
Level 3
Level 3
50 sign-ins 10 questions asked 10 replies posted

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
1 Solution
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @Andreas_Heder 

Can you please refer to this link and check if it helps?

Thanks and Regards,
Leo

View solution in original post

0 Likes
10 Replies
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

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
50 sign-ins 10 questions asked 10 replies posted

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
50 sign-ins 10 questions asked 10 replies posted

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
First question asked 500 replies posted 100 solutions authored

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
First question asked 500 replies posted 100 solutions authored

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
First question asked 500 replies posted 100 solutions authored

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
50 sign-ins 10 questions asked 10 replies posted

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
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @Andreas_Heder 

Can you please refer to this link and check if it helps?

Thanks and Regards,
Leo

0 Likes
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @Andreas_Heder ,

Thread was locked due to inactivity for long time, you can continue the discussion on the topic by opening a new thread with reference to the locked one. The continuous discussion in an inactive thread may mostly be unattended by community users.

Thanks and Regards,
Leo

0 Likes