Locale Icon
English
  • Forums

    Popular Forums

    • LTspice
    • RF and Microwave
    • Video
    • Power Management
    • Precision ADCs
    • FPGA Reference Designs
    • Linux Software Drivers

    Product Forums

    • Amplifiers
    • Microcontrollers
    • Clock and Timing
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy Monitoring and Metering
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Power Management
    • Processors and DSP
    • Switches/Multiplexers
    • Temperature Sensors
    • Voltage References
    View All

    Application Forums

    • A2B
    • Audio
    • Automated Test Equipment (ATE)
    • Condition-Based Monitoring
    • Depth, Perception & Ranging Technologies
    • Embedded Vision Sensing Library
    • Motor Control Hardware Platforms
    • Precision Technology Signal Chains Library
    • Video
    • Wireless Sensor Networks Reference Library

    Design Center Forums

    • ACE Evaluation Software
    • ADEF System Platforms
    • Design Tools and Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Reference Designs
    • Signal Chain Power (SCP)
    • Software Interface Tools
    • System Demonstration Platform (SDP) Support
  • Learn

    Highlighted Webinar

    Simplifying Connectivity - Remote Controlled (RC) Nodes in a Software Defined Vehicle (SDV)

    This webinar will introduce remote-controlled edge nodes and how they promise to simplify the automotive network architecture and expedite the integration...

    Places

    • ADI Education Home
    • ADI Webinars
    • GMSL U
    • StudentZone (Analog Dialogue)
    • Video Annex
    • Virtual Classroom

    Libraries

    • 3D ToF Depth Sensing Library
    • Continuous-Wave CMOS Time of Flight (TOF) Library
    • Embedded Vision Sensing Library
    • Gigabit Multimedia Serial Link (GMSL) Library
    • Optical Sensing Library
    • Precision Technology Signal Chains Library
    • Software Modules and SDKs Library
    • Supervisory Circuits Library
    • Wireless Sensor Networks Library

    Latest Webinars

    • Simplifying Connectivity - Remote Controlled (RC) Nodes in a Software Defined Vehicle (SDV)
    • Upcoming Webinar: Simplify High-Accuracy Instrumentation Design with Latest Precision Data Converters
    • Design High Performance Power Systems with Ultralow Noise Technology
    • µModule Solution for Intelligent Motion Control
    • Accelerating Embedded System Development with CodeFusion Studio™︎
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes AQQ286 about Right Labels on the Right Boxes containing colored balls

      1. Quote of the week: "Knowledge is knowing a tomato is a fruit. Wisdom is not putting it in a fruit salad" - unknown Sources: commons.wikimedia...

    View All

    What's Brewing

      Quiz! Why a Hybrid Approach Works Blog and Test Your Knowledge

      Quiz! Understand ISO 26262 Compliance Test your knowledge with our quick quiz , based on the blog " Safety in Layers: Why a Hybrid Approach Works ...

    View All

    Places

    • Community Help
    • Logic Lounge
    • Super User Program

    Resources

    • EZ Code of Conduct
    • EZ How To Help Articles
    • Getting Started Guide
    • ADI: Words Matter
    • Community Help Videos
    View All
  • Blogs

    Highlighted Blogs

    IO-Link: Power Dissipation in Practice

    The Limitation of Heat Dissipation IO-Link is used across many branches of factory automation, and in these applications, areas of the factory floor...

     

    GMSL Debugging: Getting a Lock

    Imagine a scenario where you have a brand-new board design or are excited to try out some evaluation kits only to find out that the two devices can’t talk...

    Latest Blogs

    • Exploring DCM and CCM in SMPS: Part 1 of 6
    • Let’s Take a Field-Bus Trip
    • Countable vs Non-countable Faults
    • Power Your Signal: DAS Networks Unleashed: Part 2 of 4
    • Combining Functional Safety and Availability Using Redundancy
    Read All Blogs

    ADI Blogs

    • EZ Spotlight
    • The Engineering Mind
  • ContentZone

    Visit ContentZone

    ContentZone

    Technical articles. Blogs. Videos. Your ADI content, all in one place.

    View ContentZone

    Featured Content

    Featured Content Title

    Blurb About Content

    View Content By Industry

    • Aerospace and Defense Systems
    • Automotive Solutions
    • Consumer Technology Solutions
    • Data Center Solutions
    • Energy Solutions
    • Healthcare Solutions
    • Industrial Automation Technology Solutions
    • Instrumentation and Measurement Solutions
    • Intelligent Building Solutions
    • Internet of Things (IoT)
    • Wireless Communication Solutions

    View Content By Technology

    • A2B Audio Bus
    • ADI OtoSense Predictive Maintenance Solutions
    • Dynamic Speaker Management
    • Gallium Nitride (GaN) Technology
    • Gigabit Multimedia Serial Link (GMSL)
    • Industrial Vision
    • Power Solutions
    • Precision Technology
    • RF
    • Security Solutions
    • Sensor Interfaces
    • SmartMesh
  • Partners

    Partner Forums

    • Boston Engineering
    • PalmSens
    • Richardson RFPD
    • Tri-Star Design, Inc.

    Partner Libraries

    • Calian, Advanced Technologies Library
    • Clockworks Signal Processing Library
    • Colorado Engineering Inc. (DBA CAES AT&E) Library
    • Epiq Solutions Library
    • Fidus Library
    • VadaTech Library
    • Vanteon Library
    • X-Microwave Library
EngineerZone
EngineerZone
8052 Core Products
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
8052 Core Products
  • Microcontrollers
8052 Core Products
Documents ADuC812: Reseting failure when downloading user program with WSD
  • Q&A
  • Docs/FAQs
  • Members
  • Tags
  • More
  • Cancel
  • Documents
  • -ADuC812: FAQ
    • How to remove DAC zero Code error
    • ADUC812: Battery lifetime
    • ADuC812: Dealing with the interface I2C
    • Value of sample rate more higher that 200Ks are dangerous then customer never must use this value ?
    • ADuC812: enter serial download mode
    • ADuC812: Failure in restarting
    • ADUC812: Failure to Reset/Download
    • ADuC812: Flash reliability
    • ADuC812: glitches on the reset line
    • ADuC812: How to program external code space
    • ADuC812: latch-up
    • ADuC812: Measure ambient temperature
    • ADuC812: On Chip temperature sensor
    • ADuC812: Power down mode and choice of C compilers
    • ADuC812: Problems downloading to FLASH
    • ADuC812: PSEN pin
    • ADuC812: Reseting failure when downloading user program with WSD
    • ADuC812: serial interface
    • ADuC812: Status of the port on power-up
    • How do I migrate from ADuC812 to ADuC831 or ADu832?
  • +ADUC814: FAQ
  • +ADUC816: FAQ
  • +ADUC824: FAQ
  • +ADuC831: FAQ
  • +ADUC832: FAQ
  • +ADUC834: FAQ
  • +ADuC836: FAQ
  • +ADuC83x: FAQ
  • +ADUC841: FAQ
  • +ADuC842: FAQ
  • +ADUC845: FAQ
  • +ADuC847: FAQ
  • +ADUC848: FAQ
  • +ADuC84x: FAQ
  • +ADUC8xx: FAQ
  • +ADUCXX: FAQ

ADuC812: Reseting failure when downloading user program with WSD

Q 

I have  a  problem  with downloading my user program in some ADuC812
microcontrollers with windows serial downloader. When I try to reset the
ADuC812 with WSD, it returns with: reseting failed.

 

A 

We have put together some debug guidelines from previous experience of the
common issues that cause resetting failures. Please check these issues on your
ADuC812 microcontrollers.

Resetting failures can be caused by a number of things. Some of the more common
ones are:
1. The chip is not connected to the correct COM port. Verify COM1 connection or
correct software switch to other port.

2. The chip is not powered up or not in download/debug mode.
To verify download/debug mode, check that the chip spits out the reset string
from its
UART when reset with the PSEN pin pulled low. You can verify this by opening up
Hyperterminal on windows (in VT-100 mode, at 9600baud, 8bits, no-parity, 1-stop
bit) and
connecting to COM1 (or whatever). See below for more information on placing the
ADUC812 in serial download mode.

3. The selected port (COM1 default) is being used by other software.
Even if the downloader says something like "Initializing Com1 at 9600
baud:.....OK!" it does not necessarily mean that it really was successful at
opening the port.
Many common applications (such as Palm HotSync manager) can run in the
background and prevent other programs from using the serial port. Disable these
programs (in the lower right of the windows taskbar) to free up the serial
port. To ensure that the serial port is free, launch hyperterminal (via the
9600COM1.ht file if possible) and see if it is able to connect. If it is,
the port is free. Be sure to close hyperterminal (or hit disconnect) before
running the downloader again.

4. The downloader and the chip are talking at two different baud rates.
If the ADuC812 is running with an 11.0592MHz crystal (like on the eval board)
then it communicates at 9600baud with the downloader, which is the downloader's
default baud rate. To download to chips at different crystal frequencies, a
switch must be used on the command line for the DOS downloader to indicate the
target's clock speed. Type "/help" in place of the file name when launching the
downloader to get a list of download options.

5. The security bit is set (ADuC812).
If the last program to successfully go onto the chip contains any commands to
program the 640 byte Flash/EE data space, then it's possible that a simple
programming error caused a
write to page 160 resulting in the security bits getting set and locking the
chip up for good. There's no way to recover other than replacing the chip. Code
must be written carefully to ensure that page 160 of data Flash/EE space never
gets programmed. See errata #7 (errata revs E & D) for details.

In conjunction with the above, there are a number of things which could prevent
the ADuC812 to enter serial download mode.

First consider that the ADuC812 may not be receiving a valid RESET condition
which forces it into serial download mode.
The PSEN pin is normally configured as an output. When the RESET pin is
asserted, the PSEN pin is configured as a digital input and the only current in
or out of the pin should be leakage current (which we measure to be 10nA).
Therefore, when RESET is brought high, the voltage at PSEN should be very close
to ground. When RESET is released, the voltage at PSEN is sampled on the
falling edge of RESET and the part will go into serial download mode if the
voltage at PSEN is interpreted as a logic low.

Could I ask you to measure the voltage at PSEN while the RESET pin is held high
with the 1k pull-down resistor. If you do not see a voltage very close to zero,
it is possible that something else is driving PSEN high.

Does your program write to the on-chip EEPROM (User FLASH)?
If it does, then consider the possibility that you are writing to memory
locations which are higher than page 159. If you write to pages 160 or higher
there is a strong possibility that you will set the security bits on the
ADuC812. We have removed all mention of the security bits from the datasheet
and we strongly recommend that users do not try to use them. This feature is
not fully tested and is not guaranteed. If you set the security bits, you will
not be able to enter the serial download or debug modes and you have
effectively locked yourself out of the code space on the ADuC812.

If you think you may have accidentally set the security bits, you can recover
the part by placing the part in parallel programming mode and executing an
ERASE ALL command (as described in the datasheet). You should then be able to
enter serial download and debug modes again. If the above procedure allowed you
to recover operation of the ADuC812, you will then have to analyse your code,
work out how you wrote to the higher Flash pages and alter your code to fix the
problem.

Reset generator
The recommended reset circuit for use with the ADuC812 is an active high reset
generator preferably with in built delay of approx 100ms such as the ADM810.
Note that an active low reset generator through a logic inverter is not
acceptable. Logic inverters to not guarantee their output state during power up
and power down and can cause glitches on the reset. Ensure that you are using
an active high reset circuit similar to the ADM810. Take a look a the RESET pin
on the ADuC812 on a 'scope during power up and look at VDD on the other channel
of the scope. Capture on a digital 'scope what happens during power up an power
down. Look for any glitches on reset (you may have to cycle power many times to
capture a glitch). Also look for any instance where the ADuC812 is released
from reset with lower than spec powers supply. The reset signal should at all
times conform to the timing diagram given in the latest datasheet REV.A
(available from www.analog.com/microconverter ).

Can you answer the following questions for me:
1) Can you confirm that /PSEN is less than 0.8V before RESET is taken low?
2) What reset circuit are you using?
3) What rise time do you normally have on VDD in your system?
4) If you use a fast rise time on VDD and a clean reset signal are you able to
enter serial download mode?

The current errata for ADuc812 can be found at:
http://www.analog.com/static/imported-files/data_sheets/ADUC812ERRATA.pdf

Tags: aduc8xx aduc812 aduc8x
  • Share
  • History
  • More
  • Cancel
analog-devices logo

About Analog Devices

  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue

Get the Latest News

Stay up to date with our latest news and articles about Analog Devices' products, design tools, trainings, and events.

Sign Up Now
  • Instagram page
  • Twitter page
  • Linkedin page
  • Youtube page
  • Facebook
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings
沪ICP备09046653号-1

©2025 Analog Devices, Inc. All Rights Reserved

analog-devices

About Analog Devices

Down Up
  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

Down Up
  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue

Get the Latest News

Stay up to date with our latest news and articles about Analog Devices' products, design tools, trainings, and events.

Instagram page Facebook Twitter page Linkedin page Youtube page
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings
沪ICP备09046653号-1

©2025 Analog Devices, Inc. All Rights Reserved