Aurix TC375 TE, 176 package: RESMx/RESAx registers display random values

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

cross mob
Sven
Level 1
Level 1
10 replies posted 5 sign-ins 5 replies posted

Observation:
- RESAx registers display random values
- RESMx registers remain 0
- EVFLAG register displays 1's for RESEVx /ALEVx 

Questions:
- What are the reasons for random content and possible Solution?
- What are the reasons for RESMx remaining 0? Corresponding GLOBRC channels/Modulators were set to run

0 Likes
3 Replies
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

 

 

    g_resultEDSADC = IfxEdsadc_Edsadc_getMainResult(&g_edsadcChannel); 

 

 

Please refer to EDSADC_1_KIT_TC375_LK in ADS, after initialize setting correctly, above funtion is called for getting result. RESM register contains the result as below.

 

 

  return edsadc->CH[channel].RESM.B.RESULTLO;

 

 

If result or alarm generated, RESEV/ALEV will be set 1 as below

dw_0-1649903229971.png

 

dw_0-1649910877835.png

 

 

0 Likes
Sven
Level 1
Level 1
10 replies posted 5 sign-ins 5 replies posted

thanks, my question is more general - apart of sample. What is the reason for RESM providing random values? Which checkpoints i can put to locate reason & resolve?

0 Likes
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

First start from the demo code, if your application is changed too much from that, please try to bypass(disable) filters to simplify the process.

dw

0 Likes