TC375 hard reset when TLF35584 in standby

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

cross mob
Vitthal
Level 1
Level 1
5 replies posted 25 sign-ins 5 questions asked

Hello ,

TC375 hard reset when TLF35584 after send SPI command (for standby) 

spi_transfer(0x15, 0xEC);

spi_transfer(0x16, 0x13);

Hard reset is expected behaviour ?

and 

after hard reset  STM timer is going to be not suspended. when hit the breakpoint timer is not going to suspended.

Vitthal_1-1692002019456.png

 

 

 

 

 

0 Likes
9 Replies
DownyK
Level 5
Level 5
100 replies posted 10 solutions authored 250 sign-ins

Hi @Vitthal 

as far as I know, when you send a standby message to TLF35584, MCU should be Power Down. 

because TLF35584 doesn't supply MCU power anymore.

DownyK_0-1692004160170.png

But you mention, your MCU triggered Hardreset. 

it means your TLF35584 didn't go to Standby but go to INIT state.

please check your TLF35584 state. 

Thank you

0 Likes
Vitthal
Level 1
Level 1
5 replies posted 25 sign-ins 5 questions asked

Why STM timer is going to be Not suspended?

0 Likes
DownyK
Level 5
Level 5
100 replies posted 10 solutions authored 250 sign-ins

@Vitthal

Because STM0_OCS is 0x00000000.

if you want to suspend your STM, you should set STM0_OCS to 0x12000000.

0 Likes
Vitthal
Level 1
Level 1
5 replies posted 25 sign-ins 5 questions asked

for only hard reset is going to be not suspended. Other resets suspended only. 

0 Likes
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored

You switch off the supply, therefore you get a power on reset on TC375 after wakeup the TLF35584. Please see UM V2.0 part1 table 242 Effect of Reset Triggers. Here you can see that a PORST also activate the Debug Reset. This Debug Reset reset the STMx_OCS register to 0x0.

When you make reset via Debugger (PORST) then the register is reset to 0x0 also.

0 Likes
Vitthal
Level 1
Level 1
5 replies posted 25 sign-ins 5 questions asked

In Trace32 I am using Disconnect and Go option after some time reattach the trace that time STM_SUS bit as suspended (here also I am sending TLF to Standby mode  ), But Not suspended is I am only seeing if trace is connected and TLF35584 send to standby. This is trace issue?

0 Likes
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored

The disconnect and go make a your software running, then STM_SUS is set by SW. When you send to standby then the supply will be switched off and the debugger loose the connection. If supply comes back and connection is reinitialized then the device has stopped at reset address which means your code was not running and the STM_SUS was not yet set.

0 Likes
Vitthal
Level 1
Level 1
5 replies posted 25 sign-ins 5 questions asked

if I use Higher version Trace it will work fine, Suspended bit is set without using Disconnect and Go option. 

0 Likes
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored

What you mean with higher version?

0 Likes