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

TRAVEO™ T2G Forum Discussions

apeter
Level 2
Level 2
25 sign-ins 5 likes given 10 sign-ins

We encounter a problem that if we want to use the PMIC the M0+ core stucks in following function:
SystemInit --> Cy_Power_SwitchToPmic --> SwitchToExternal -->  while((IsSequencerBusy() == true) || (IsEnabled() != true));

Our defined values in system_tviibh8m_cm0plus.c:

#define TIMING_MONZA_PMIC_ENABLE (7)
#define WAIT_CYCLE_WHILE_DISTRIBUTING_CLOCK (50)

My Question now is what can i check or change so it won't stuck there anymore? Or is there a workaround available?

0 Likes
1 Solution
AS_36
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

Hi @apeter 

CYT4BB is TVIIBH4M device. Could you please explain why you are using system_tviibh8m_cm0plus.c file?

If you check system_tviibh4m_cm0plus.c file in our SDL code examples, you will find the below defined values - 

#define TIMING_MONZA_PMIC_ENABLE (4)
#define WAIT_CYCLE_WHILE_DISTRIBUTING_CLOCK (50)

Regards.

 

 

View solution in original post

2 Replies
AS_36
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

Hi @apeter 

CYT4BB is TVIIBH4M device. Could you please explain why you are using system_tviibh8m_cm0plus.c file?

If you check system_tviibh4m_cm0plus.c file in our SDL code examples, you will find the below defined values - 

#define TIMING_MONZA_PMIC_ENABLE (4)
#define WAIT_CYCLE_WHILE_DISTRIBUTING_CLOCK (50)

Regards.

 

 

apeter
Level 2
Level 2
25 sign-ins 5 likes given 10 sign-ins

Hi @AS_36,

Thank you very much for your reply.
We started with a CYT4BF and then switched to a CYT4BB thats why i have used the TVIIBH8M file.

I will check if it works with your defined values and get back to you.

0 Likes