Announcements

From sunburn to sun earn – we’ve got the power! Watch our #poweringgreen videos now.

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

cross mob
pistons7
Level 4
Level 4
50 questions asked 10 likes given 100 sign-ins

I ran "SPI_TLF_1_KIT_TC397_TFT" on the evaluation board and got an error.
if(getCurrentStateTLF35584(&g_tlfDevice) != DeviceStateTransition_normal)
{
while(1);
}
Enters an infinite loop at the part of .

If you check "getCurrentStateTLF35584", the NO_OP flag is 1.
This means "Requested state transition via DEVCTRL & DEVCTRLN could not be
performed because of wrong protocol.".

Is the code for DEVCNTRL/DEVCTRLN in the sample code wrong?

0 Likes
1 Solution
Polimera
Moderator
Moderator
Moderator
25 solutions authored 100 sign-ins 50 replies posted

Hi Postons,

Thanks for the query. Sorry for the late response. 

Requested state transition via DEVCTRL & DEVCTRLN could not be
performed because of wrong protocol.

In order to request a state transition and/or a change of the LDO configuration the request data have to be written
to two separated registers DEVCTRL and DEVCTRLN after each other consequently. The data written to
DEVCTRLN have to be inverted bitwise compared to the data written to DEVCTRL. The request will be only
accepted when the two registers are written consecutively after each other (first DEVCTRL and second
DEVCTRLN) and will be taken over with the rising edge of the CS at the end of the second command.
In case of an invalid request (wrong sequence or DEVCTRLN not inverted to DEVCTRL) it will be rejected, an
interrupt is generated and the corresponding status flag (NO_OP) is set. 

Please check this in the code , whether it is implemented properly or not

 

Regards,

Kranthi

View solution in original post

0 Likes
1 Reply
Polimera
Moderator
Moderator
Moderator
25 solutions authored 100 sign-ins 50 replies posted

Hi Postons,

Thanks for the query. Sorry for the late response. 

Requested state transition via DEVCTRL & DEVCTRLN could not be
performed because of wrong protocol.

In order to request a state transition and/or a change of the LDO configuration the request data have to be written
to two separated registers DEVCTRL and DEVCTRLN after each other consequently. The data written to
DEVCTRLN have to be inverted bitwise compared to the data written to DEVCTRL. The request will be only
accepted when the two registers are written consecutively after each other (first DEVCTRL and second
DEVCTRLN) and will be taken over with the rising edge of the CS at the end of the second command.
In case of an invalid request (wrong sequence or DEVCTRLN not inverted to DEVCTRL) it will be rejected, an
interrupt is generated and the corresponding status flag (NO_OP) is set. 

Please check this in the code , whether it is implemented properly or not

 

Regards,

Kranthi

0 Likes