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

XMC™ Forum Discussions

Not applicable
I need your help,

I'm going to init an adc on my XMC1200 in DAVE 4.3.2.
There are some problems in my Init():
//wait till module clock is enabled
while((RD_REG(VADC->CLC, VADC_CLC_DISS_Msk, VADC_CLC_DISS_Pos)) != 0);
//Wait till calibration is complete
while((RD_REG(VADC_G1->ARBCFG, VADC_G_ARBCFG_CAL_Msk, VADC_G_ARBCFG_CAL_Pos)) != 0);
THE LOOP'S ARE ENDLESS !

It works well in Dave3 and in Keil5!?

What is wrong?

Bernd
0 Likes
1 Reply
User12775
Level 5
Level 5
First like received
The generated code has down most of the initialization for you.
  status = DAVE_Init();           /* Initialization of DAVE APPs  */

Have you checked whether you need your own init() function?
0 Likes