XMC 4700 µC skips the code.

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

cross mob
arunprasath_95
Employee
Employee
First reply posted First question asked Welcome!

Hi guys,

I am working with XMC4700 µC. The problem I am facing is my µC doesn't run some codes. It skips them. Example of one such problem is:

"I use COUNTER APP to count some spikes in a signal. But my µC don't read that function at all.

When I start the COUNTER function " COUNTER_Start(&COUNTER_CSO2_BA); " using this line, my µC Reads till this line. But then it don't enter the COUNTER function."

Why does this happen.?? Kindly explain

0 Likes
3 Replies
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

Could you please let us know where exactly the control goes ? Does it just bypass the line of code or it stops executing the specific code. In build settings are you using any optimizations?

Best Regards,
Vasanth

0 Likes

Hi Vasanth,

Thanks for the reply.

Yes, It bypass the line and goes to the next line. My µC don't execute the COUNTER start function. I have not done any changes in the build settings.

Regards,

Arun

0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi Arun, 

Will you be able to share the code with us to recreate the issue at our end? Or are you testing any already existing example. Then let me know how have you imported the project?

Best Regards,
Vasanth

0 Likes