2018-06-06 04:04 AM
Hi friends,
We are using STM8L(STM8L051F3) and STM8S (STM8S003F3) for a project. I has been designed, developed and deployed. It works as expected - STM8L as a transmitter, wakes up from stand-by mode, collect some data, transmits it and goes back to stand-by mode and STM8S as a receiver, receives it and represents it visually. This set up has been deployed and working for over a year now.
Now we redesigned the board with some extra functionality. We made the board and soldered the components but the new board continuously resets after 10-20 mins of operation. This is evident in both STM8L and STM8S. After a 'cool off time' of about 10-20 mins the board again works but back to the erratic behaviour after 10-20 mins.
On further evaluation we saw:
Thus, we understand that the new design is not working properly.
We tried doing some more things for analysis:
Please let me know if more information is needed, regarding schematic or waveforms or anything that can aid in decoding the problem. I would be obliged if anyone could guide me in the right direction.
Thank you.
With regards,
Allan.
#nrst-pin #stm8 #stm8s #stm8l #nrst #reset-pin2018-06-06 01:45 PM
Hi
Tom_Mathew.Allan
,Interesting case. Would it be possible for you to share at least part of the schematics, please? Most interesting would be power pins,. reset line. What I would start with is verification whether the max current is not exceeded on any of the pin, or you are not powering the device somehow on IO lines. Could you please describe briefly what kind of extra functionality have you added?
Thank you in advance,
Best Regards,
Artur
2018-06-07 01:05 AM
Hi
Tom_Mathew.Allan
,I would strongly recommend to keep solution no 3 concerning NRST line (only 100nF capacitor to GND).
I can see 2 potential trouble makers in your design:
PB0 - this pin is kept in pull-up configuration during reset and then after the reset it is in input floating by default, thus it may demonstrate higher current consumption during reset phase due to external pull-down.
PC0 - this pin is True OD what means that it has not implemented neither P-buffer nor protection diode to Vdd, thus in case of output configuration it required an external pull-up.
Please have a look at pin description section of the datasheet for more details.
Best Regards,
Artur
2018-06-07 02:09 AM
Hi
iwanicki.artur
,Thank you for your reply.This isthe schematic for the transmitter which employees a STM8L micro controller for its operation.
The is the full schematic design.
In the design of the transmitter, there is no functional change. The board size has been changed to fit into a new enclosure,whereby the layout has been changed.
Project 1
This is the old schematic (the working and deployed version):
This is the new schematic (version which has the issue):
According to the datasheet we need not put a pull up resistor for the NRST pin. Thoughthe former
design
worked flawlessly with the pull up on NRST, the latter didn't.To rule out this mistake, we tweaked the design:
These were the observation that we had.
2018-06-07 07:17 AM
Hi
iwanicki.artur
,We have two board now, to test things.
The behaviour of the first was stated before.
The second behaves randomly, taking a lot of current (10mA to 70mA) and doesn't work as per the program(the LED lighting up is an indication but the LED never lights up on this board. When we put the debugger pins on the LED lights up).
I would strongly recommend to keep solution no 3 concerning NRST line (only 100nF capacitor to GND).
Yes. We will keep it that way for the testing purpose. But the previous design works flawlessly, even now.
PB0 - this pin is kept in pull-up configuration during reset
Yes. Came across the specification in the data sheet. We removed the pull-down resistor from the board to test the case but the issues still remains in both the boards..
PC0
We are not using this pin as of now. We didn't use it in the previous designs too. We understand that the pin cannot be made push-pull.
The above solutions did not solve the problem but thank you so much for the suggestions.If you still have something that we could try doing we are definitely up for it.
Thank you.
Allan.
2018-06-19 09:59 PM
Hi
iwanicki.artur
,We tried making three to four boards from different vendors from different parts of the world, to rule out the manufacturing defects. This didn't pay off, the board still has the same issue. We are looking into the layout too. We recently switched to KiCad from Eagle. The previous desing was on Eagle while the second design is on KiCad. Hope that isn't the cause of the issues.
Thank You.
Allan.
2018-07-03 10:27 PM
I have the same issue. Did you come up with a solution? My project is lagging behind because of this.
2018-07-04 07:29 AM
My take away from the thread the OP cited is that the STM8 will generate a reset when an invalid instruction is encountered.
It is not clear if you have the &39same issue&39, or how similar it is, a plot of NRST vs time might be more illustrative. The periodicity or randomness of this being the most enlightening.
https://community.st.com/0D50X00009XkW94SAF