Analog.com Analog Dialogue Wiki 简体中文
EngineerZone
EngineerZone
  • Log In
  • Site
  • Search
  • User
  • Support

    Popular Forums

    • RF and Microwave
    • Power Management
    • Video
    • FPGA Reference Designs
    • Precision ADCs
    • Linux Software Drivers
    • SigmaDSP Processors & SigmaStudio Dev. Tool

    Product Forums

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

    Application Forums

    • Audio
    • Automated Test Equipment (ATE)
    • Condition-Based Monitoring
    • Depth, Perception & Ranging Technologies
    • Embedded Vision Sensing
    • Optical Sensing
    • Precision Technology Signal Chains
    • 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

    Recent Discussions

    • Pluto + GNURADIO frequency change
    • Pluto SDR
    • pluto sdr pyadi-iio continous iq recording
    • attribute error
    • gps-sdr-sim is not working with my ADALM-PLUTO

    Places

    • ADI Education Home
    • ADI Education China
    • ADI Education India
    • ADI Education Philippines
    • StudentZone (Analog Dialogue)
    • Virtual Classroom

    Latest Webinars

    • Optimizing GaN and GaAs RF Amplifier Performance Using Novel Biasing Techniques
    • Webinar Improving Switch-Mode Power Supplies Using Noise Cancelling Technology
    • Webinar Accelerate Your Design With a 2 to 24 GHz Wideband Transceiver Reference Design
    • How to Design an Optimized Motion Control System for Intelligent Edge Based Surveillance Camera
    • How to Enhance High Precision Current Sensing Systems
    View All
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes: Buffers and Fan Out
    View All

    Places

    • Community Help
    • Logic Lounge

    Resources

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

     

    How To Design Fieldbus Agnostic Smart Factory Sensors

     

    You Passed EMC Testing… But Wait, Is There More?

    Latest Blogs

    • The 5 Things You Need to Know about RF Matching Networks
    • Does Reliability Prediction Uncertainty Justify Mandating Two Channel Safety?
    • An Inside Look at 2022
    • Meet the Person Behind the Quizzes
    • Updates Required: Why Newer is Better
    Read All Blogs

    ADI Blogs

    • EZ Spotlight
    • The Engineering Mind
  • Partners

    Electronic Design Services - PartnerZone

    • Boston Engineering
    • Calian, Advanced Technologies
    • Colorado Engineering Inc. (DBA CAES AT&E)
    • Clockworks Signal Processing
    • Epiq Solutions
    • Fidus
    • PalmSens
    • Richardson RFPD
    • Tri-Star Design, Inc.
    • VadaTech
    • Vanteon
    • X-Microwave
    View All
Precision Microcontrollers
  • Analog Microcontrollers
Precision Microcontrollers
Documents ADuCM350 FAQ Debug
  • Forums
  • File Uploads
  • Docs/FAQs
  • Members
  • Tags
  • More
  • Cancel
  • +Documents
  • +ADuCM Cortex-M3: FAQ
  • +Aducm320: FAQ
  • -ADuCM350: FAQ
    • 4Wire-Isolated-Bioimpedance ADuCM350 Connections To Sensor
    • ADUCM350 DESIGN SUPPORT COMMUNITY - INTRO
    • ADuCM350 FAQ DFT / Impedance Measurement
    • ADuCM350 FAQ Debug
    • ADuCM350 FAQ Evaluation Kit Software Platform
    • AFE Transmit Stage
    • ADuCM350 FAQ GPIOs and Pinmuxing
    • ADuCM350 FAQ I2C serial interface
    • ADuCM350 FAQ Operational Supply Range / Power Supplies
    • ADuCM350 FAQ Parallel Display Interface(PDI)
    • ADuCM350 FAQ Power Consumption
    • ADuCM350 FAQ Power Management Unit
    • ADuCM350 FAQ Random Number Generator
    • ADuCM350 FAQ SDK Driver Specific FAQs
    • ADuCM350 FAQ SPI
    • ADuCM350 FAQ Switch Matrix
    • ADuCM350 FAQ System Clocks
    • ADuCM350 FAQ System Integrity
    • ADuCM350 SDK v2.3.0.0 now available
    • Bioimpedance Measurement Using ADuCM350
    • Optimizing RCAL,RTIA,CTIA and DAC voltage of ADuCM350 for 4-Wire Measurement.
    • Potentiostat / Amperometric Measurement Using ADuCM350
    • Unipolar Current Measurement Using ADuCM350
    • Errata for ADuCM350 I2C serial interface
    • FAQ ADuCM350 Embedded Software Development
    • How to get SDK + Eval-ADuCM350EBZ Working together.
    • FAQ for Captouch on ADuCM350
    • Known Issues for ADuCM350 Silicon and Support Material
    • ADuCM350 FAQ ADuCM350 Evaluation Kit
    • ADuCM350 FAQ AFE / ADC Measurement Channel
    • ADuCM350 FAQ AFE Measurement Circuit Impedance Range
    • ADuCM350 FAQ AFE TIA
    • ADuCM350 FAQ AFE Sequencer
    • ADuCM350 FAQ Amperometric Measurement Example
    • ADuCM350 FAQ Calibrate
    • ADuCM350 FAQ CRC accelerator
    • ADuCM350 FAQ GP Timers
    • ADuCM350 FAQ LCD controller
    • New Revision of UG-587 Available
    • ADuCM350 FAQ Potentiostat / Amperometric
    • ADuCM350 FAQ Real Time Clock (RTC)
    • First Steps: Quick Measurement with Eval-ADuCM350 & EKSP Labview GUI
  • +ADuCM355: FAQ
  • +ADuCM360: FAQ
  • +ADuCM361: FAQ
  • +ADuCRF101: FAQ
  • +Bio-Impedance & ECG Measurement Solution: FAQ
  • +CN0300: FAQ
  • +Continuously Amperometric Measurement: FAQ

ADuCM350 FAQ Debug

Q: How do I load a *.hex file to the ADuCM350?


A: When code is compiled and built, EWARM will produce an output file. This output file can be a number of types (e.g. *.out, *.hex, *.bin; the desired type is specified in the project options). The Serial Downloader tool (CM3WSD) can be used to load a *.hex file to the ADuCM350 flash. The serial downloader tool can be found in the tools directory of the SDK (…Analog Devices\ADuCM350BBCZ \Eval-ADUCM350EBZ\tools\SerialDownloader).

  • Open the CM3WSD tool
  • Browse to the location of the *.hex file
  • Select the Baudrate
  • Select Program and Verify from the Flash Action drop down menu
  • Click start and follow the instructions in the Monitor Status box
  • Once completed, reset the ADuCM350

Q: How do I load a *.out file to the ADuCM350?

A: When code is compiled and built, EWARM will produce an output file. This output file can be a number of types (e.g. *.out, *.hex, *.bin; the desired type is specified in the project options). The EWARM IDE can download a *.out file to the ADuCM350 flash.

  • Launch EWARM
  • Open any IAR project
  • Go to Project -> Download -> Download File
  • Browse to the location of the *.out file
  • Once completed, reset the ADuCM350

Q: The part is locked, attempting to communicate through Serial Wire produces an error (see figure below). What do I do?

A: A typical scenario that causes such error is Page0 Checksum calculated incorrectly. Before proceeding further, ensure that the IAR EWARM project settings are correct, as detailed in "ADuCM350BBCZ Software Users Guide.pdf", section "Boot-Time CRC Validation".

To unlock the part, use the CM3WSD tool to perform a mass erase. The CM3WSD tool is part of the SDK, installed in <ADuCM350BBCZ_root>\tools\SerialDownloader.

By default <ADuCM350BBCZ_root> is "C:\Analog Devices\ADuCM350BBCZ\Eval-ADUCM350EBZ".

Q: Serial Downloader tool (CM3WSD) prints "Waiting for correct ID string" in the Monitor Status box (see figure below), how can I stop it?

A: Most likely this is caused by the current code running on the ADuCM350 transmitting data through the UART. Pulse RESET while SERIAL DOWNLOADER is pressed, as explained in the Serial Downloader Application Note (AN-1262). The CM3WSD tool should now behave as expected.

Q: How do I view output/results from Software Development Kit (SDK) examples?

A: All of the examples in the SDK return some results, data or information to the user (at a minimum PASS or FAIL). The test_common.c file defines a number of functions for returning data. There are 2 methods for viewing this data; using semi-hosting or via the UART interface. Which method is used depends on whether the TEST_COMMON_USES_UART conditional compilation macro is defined or not.

To use semi-hosting, an emulator must be connected to the EVAL-ADUCM350EBZ board. For Rev.0 boards, the emulator is connected to the JTAG or Trace connectors. For Rev.B boards, the emulator is on the USB-SWD/UART-EMUZ board, which connects to J14. In the IAR EWARM environment, click the Download and Debug button. This will download the firmware to the ADuCM350 and enter debug mode. Once the code has downloaded and the debug session has started, click View from the menu bar. Select the Terminal I/O option. This will open a terminal window within the EWARM environment and any results or other data to be returned to the user will be displayed here. Continue with debugging as normal.

To use the UART interface, the TEST_COMMON_USES_UART macro must be defined in the project file. This can be done by selecting Project from the menu bar and then selecting Options. Note that Options is not available during an active debug session. In the Options window that opens, select the C/C++ Compiler category on the left-hand side. Then select the Preprocessor tab. Within this tab there is a text box for Defined Symbols. On a new line in this text box add TEST_COMMON_USES_UART and click OK. See the image below. The project will need a full rebuild. Select Project from the menu bar and click Rebuild All. The firmware can now be downloaded to the ADuCM350. As the results and/or data will now be returned via the UART interface, it will be necessary to use a terminal application to listen to the COM port which is connected to the UART interface. It is not necessary to use EWARM or debug mode when using the UART to return the results.

Semi-hosting is the default option for all examples in the SDK.

Q: How do I use a Trace debugger with the Eval-ADUCM350EBZ Rev.B motherboard?

A: When attempting to use a trace debugger with the Eval-ADUCM350EBZ Rev.B motherboard, you may encounter the error message below when attempting to flash your code to the ADuCM350.

The Eval-ADUCM350EBZ Rev.B motherboard is supplied (by default) by the USB-SWD/UART-EMUZ emulator board. The 5V USB supply comes in through J14 on the motherboard and is regulated to 3.3V by U6 (ADP3333). This 3.3V supply is seen by the trace connector as the target power. The emulator board also uses SWDIO and SWCLK to allow serial wire debug. When attempting to use a trace debugger, these pins are also required and there is contention. The connection of the SWDIO and SWCLK pins to the emulator board can be easily broken by removing LK2 and LK4 on the USB-SWD/UART-EMUZ emulator board. This will allow the trace debugger to use the SWDIO and SWCLK pins and download to the part.

  • serial_downloader
  • test_common_uses_uart
  • semi_hosting
  • hex_file
  • aducm350
  • cm3wsd
  • aducm35x
  • trace
  • debug
  • out_file
  • Share
  • History
  • More
  • Cancel
Related
Recommended
 
Social
Quick Links
  • About ADI
  • Partners
  • Analog Dialogue
  • Careers
  • Contact us
  • Investor Relations
  • News Room
  • Quality & Reliability
  • Sales & Distribution
  • Analog Garage
Languages
  • English
  • 简体中文
  • 日本語
  • Руccкий
Newsletters

Interested in the latest news and articles about ADI products, design tools, training and events? Choose from one of our 12 newsletters that match your product area of interest, delivered monthly or quarterly to your inbox.

Sign Up
Switch to mobile view
Analog Logo
© 1995 - 2023 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号-1
  • ©
  • 1995 - 2023 Analog Devices, Inc. All Rights Reserved
  • 沪ICP备09046653号-1
  • Sitemap
  • Privacy & Security
  • Privacy Settings
  • Terms of use
EngineerZone Uses cookies to ensure you get the best experience in our community. For more information on cookies, please read our Privacy & Security Statement.