Locale Icon
English
  • Forums

    Popular Forums

    • LTspice
    • Video
    • Power Management
    • RF & Microwave
    • Precision ADCs
    • FPGA Reference Designs

    Product Forums

    • Amplifiers
    • Clocks & Timers
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Power Management
    • Processors & DSP
    • Processors & Microcontrollers
    • Switches & Multiplexers
    • Sensors
    • Voltage References
    View All

    Application Forums

    • A2B Audio Bus
    • 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 & Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Power Studio Designer
    • Power Studio Planner
    • Reference Designs
    • Robot Operating System (ROS) SDK
    • Signal Chain Power (SCP)
    • Software Interface Tools
    • System Demonstration Platform (SDP) Support
  • Learn

    Highlighted Webinar

    Power Management Fundamentals II Session 5: Deeper Look into Power Protection

    When is the best time to discover your power circuit needs protection? Let's explore the use of some input protection and control options like ideal diodes...

    Places

    • ADI Academy
    • ADI Webinars
    • 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

    • Design Smarter with Compact, Low-Power Precision Current Source Signal Chains
    • Power Management Fundamentals II Session 6: Key Layout Considerations for Power
    • A 16T/16R X-Band Direct Sampling Phased Array Subsystem using Apollo MxFE
    • Power Management Fundamentals II Session 5: Deeper Look into Power Protection
    • Power Management Fundamentals II Session 4: Isolated Converters Explained
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes AQQ296 about repairing an equation in a digital display

      1. Quote of this month: " When I die, I want to die like my grandfather who died peacefully in his sleep. Not screaming like all the passengers in his...

    View All

    What's Brewing

      Read a Blog, Take this Quiz for Another Chance to Win a Gift Card!

      Important: Read the blog first . The quiz questions are all based on the content from the blog: Mature, Not Old! The Longevity of 4 – 20 mA New...

    View All

    Places

    • Community Help
    • Analog Dialogue Quiz
    • 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

    Achieving Power Over Data with RS-485 Transceivers

    By Bryson Barney What if a single wire could carry both energy and information seamlessly—without either getting in the way? The future of connectivity...

     

    ​​Functional Safety: A Driver of “Shift Left”​

    By Richard Obrien The key to faster, safer product development is to start smart - not catch up hard. In this blog, we’ll explore how the "Shift Left...

    Latest Blogs

    • The 5 Advantages of Hardware Fault Tolerance
    • The Power Problem Inside Every AI Breakthrough: Part 1 of 3
    • Simplifying Stability with EVAL-KW4503Z: Part 1 of 3
    • Energy Transfer Considerations in Isolated SMPS: Part 2 of 4
    • Automating LTspice .NOISE Measurements with .STEP and .MEAS Directives: Part 2 of 3
    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
    • 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
    • Sensor Interfaces
    • SmartMesh
EngineerZone
EngineerZone
VisualDSP++ Development Tools
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
VisualDSP++ Development Tools
  • Processors & DSP
  • Software & Development Tools
  • VisualDSP++ Development Tools
  • Cancel
VisualDSP++ Development Tools
Documents How do I resolve __unknown_exception_occurred?
  • Q&A
  • Documents
  • Members
  • Tags
  • Cancel
  • Documents
  • +ADSP-21369 EZ-KIT: FAQ
  • +ADSP-BF506F: FAQ
  • +ADSP-BF592: FAQ
  • -Blackfin: FAQ
    • How do I resolve __unknown_exception_occurred?
  • +DXE: FAQ
  • +How to Resolve [Error li1040]: FAQ
  • +HP-USB-ICE Emulator: FAQ
  • +ICE1000: FAQ
  • Is it possible to convert my existing floating license to node-locked license or vice versa?
  • +Project Building Error: FAQ
  • +Reset, Reload and Restart: FAQ
  • +SHARC simulator: FAQ
  • Ticks for VDK_Sleep()
  • +VDK heap: FAQ
  • +VisualDSP++: FAQ
  • +Windows 8.1: FAQ

How do I resolve __unknown_exception_occurred?

Q:

My application jumps to __unknown_exception_occurred. What causes this and how do I resolve it?

----------

A:

When an application jumps to '__unknown_exception_occurred', it is likely that an unhandled hardware event has occurred. When a hardware event occurs, the processor vectors (jumps) to the address that is stored in the Event Vector Table (EVT), saving the address it was at in a register.

On startup, all the entries in the Event Vector Table are set to point to __unknown_exception_occurred, which means that if any event occurs (except for an emulation event, a Reset event, or an IVG15 event), the processor will jump to __unknown_exception_occurred (or 'do_not_know_what_to_do') when the IDDE halts at the automatic breakpoint at this location.

When the processor jumps to an interrupt, it will store the current Program Counter address to a register so that processing can continue from that location in the code once the interrupt has been handled. Which register is used depends on the type of event that occurred:

RETI - RETurn from Interrupt address
RETX - RETurn from eXception address
RETN - RETurn from Non-maskable interrupt

You can see the contents of these registers in the IDDE by going to Register->Core->Sequencer. You'll also see the registers:

RETS - RETurn from Subroutine address (set by the CALL x instruction)
RETE - RETurn from Emulation Event (used by the emulator)

It is most likely that a hardware exception has occurred - unless you have a source of external interrupts or non-maskable interrupts (which you would likely be aware of if you did). The causes of Hardware Exceptions are described in the sequencer section of the ADSP-BF53x/56x Blackfin Processor Programming Reference Manual (PRM), and the likely causes include misaligned accesses to external memory, accessing an MMR while in user mode, accessing an MMR by the incorrect width, etc.

To find what line of assembly caused the hardware exception, you should examine the RETX register. This will give you the assembly line that the hardware exception occurred at. To view the assembly line, you can type the address (or '$RETX') into the address box in the disassembly window.

To find out what the hardware exception was, you should view the sequencer status register (Register->Core->Status->Sequencer Status). The EXCAUSE bits identify the cause of the exception. The easiest way to find the cause definition is to search for 'EXCAUSE' within the documentation. You can do this either from within the IDDE via Help->Search, or simply within Windows via Start->Programs->Analog Devices->VisualDSP++ Documentation for All Families

Additionally, you can reference Table 4.11 in the PRM.

For more information on handling events, see the Blackfin Compiler Manual (Interrupt Handler Support).

 

All Blackfin Manuals can be found on our website here.

----------

This FAQ was generated from the following thread: How do I resolve __unknown_exception_occurred?

Tags: manuals product tools blackfin
  • 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
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
  • Instagram page
  • Twitter page
  • Linkedin page
  • Youtube page
  • Facebook
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2026 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
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
Instagram page Facebook Twitter page Linkedin page Youtube page
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2026 Analog Devices, Inc. All Rights Reserved