Reply
Posts: 15
Registered: ‎03-16-2017
Accepted Solution

8051f350 reset unwillingly

hi, m attaching my code below. The problem with the code is

  1. when 8-bit debugger is connected and the debugger mode is on, the program runs with no problem.
  2. When the debugger is physically connected but not disconnected from software, the controller resets after certain interval.
  3. When the debugger is not physically connected, the controller doesn't resets but serial communication doesnot work.

please help. 

Posts: 194
Registered: ‎07-12-2016

Re: 8051f350 reset unwillingly

hi @shambo,

 

Did you use the C8051F350 DK board or the board built by yourself ? If this issue just be reproduced with your own board, upload the schematic will helpful to find out some clue.
And the C2CK will share with the external reset signal pin, you can try to monitor the C2CK/RST pin under case 2.

For the serial communication issue, I think it should has no relation with the debugger, you can reference the example under the folder as below.
C:\SiliconLabs\SimplicityStudio\v4\developer\sdks\8051\v4.0.3\examples\C8051F350DK\UART

 

Thanks

Posts: 488
Registered: ‎02-21-2014

Re: 8051f350 reset unwillingly

After the device resets, could you use Simplicity Studio to connect to the device without resetting it, then pause code execution and look at the RSTSRC register?

 

http://community.silabs.com/t5/32-bit-MCU-Knowledge-Base/Simplicity-IDE-Connecting-Without-Downloadi...

 

This should, at least, tell you what's causing the device to reset.

 

If it's a pin reset, and you have Simplicity Studio V3 running, it might be that Studio is occasionally pinging the debug adapter for any connected devices. You can disable this device detection in the Studio Preferences: http://community.silabs.com/t5/tkb/articleprintpage/tkb-id/1@tkb/article-id/784

Posts: 15
Registered: ‎03-16-2017

Re: 8051f350 reset unwillingly

Hey... thanks! This solved the second problem...! So as far as the debugger is physically connected the code is performing as expected! But the 3rd problem still persist!
Posts: 3,153
Registered: ‎02-07-2002

Re: 8051f350 reset unwillingly


shambo wrote:
  1. When the debugger is not physically connected, the controller doesn't resets but serial communication does not work. 

Did you maybe forget to connect GND for the serial connection?

Posts: 15
Registered: ‎03-16-2017

Re: 8051f350 reset unwillingly

Thanks mate! It was silly of me i didn't commoned the grounds!