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
    • 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: Taking the right shoes in the dark and in a hurry
    View All

    Places

    • Community Help
    • Logic Lounge

    Resources

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

     

    Can I Build My Own Phased Array Radar?

     

    How to Understand Public Key Cryptography Without Formulas

    Latest Blogs

    • How To Design Fieldbus Agnostic Smart Factory Sensors
    • You Passed EMC Testing… But Wait, Is There More?
    • 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
    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
VisualDSP++ Development Tools
  • Processors and DSP
  • Software and Development Tools
  • VisualDSP++ Development Tools
  • Cancel
VisualDSP++ Development Tools
Documents [FAQ] : Ticks for VDK_Sleep()
  • Q&A
  • Documents
  • Members
  • Tags
  • More
  • Cancel
  • Documents
  • +ADSP-21369 EZ-KIT: FAQ
  • +ADSP-BF506F: FAQ
  • +ADSP-BF592: FAQ
  • +Blackfin: FAQ
  • +DXE: FAQ
  • Expressions Window ERROR: FAQ
  • +How to Resolve [Error li1040]: FAQ
  • +HP-USB-ICE Emulator: FAQ
  • +ICE1000: FAQ
  • +Project Building Error: FAQ
  • +Reset, Reload and Restart: FAQ
  • +SHARC simulator: FAQ
  • +VDK heap: FAQ
  • +VisualDSP++: FAQ
  • +Windows 8.1: FAQ
  • [FAQ] : Ticks for VDK_Sleep()

[FAQ] : Ticks for VDK_Sleep()

Question:
What will happen when the number of ticks for VDK_Sleep() is set to 0, even if the minimum number of ticks allowed is 1?

Answer:
If an API is called from an inappropriate level, a KernelPanic is typically raised. For this VDK_Sleep(), the possible error code is "kInvalidDelay". We can see this details from the VDK status window( You can navigate via "View -> VDK Windows -> Status).

VDK calls an internal function named KernelPanic() under certain circumstances to indicate an error from which the system cannot recover. By default, the function loops indefinitely so that users can determine that a problem has occurred and provide information to facilitate debugging.
The KernelPanic() function disables interrupts on entry to ensure that execution loops in the intended location. We can override KernelPanic() in order to handle these types of errors differently; for example, you can reset the hardware when a KernelPanic occurs.
The circumstances under which KernelPanic() is called include the following.
• Errors in the creation of a VDK boot item during startup
• Runtime errors that are not handled by a C/C++ Thread’s error handler
• VDK internal errors

Refer "VDK Error Codes and Error Values" chapter in the 'VDK (Kernel) User’s Guide' from the below help page for more information on the possible errors for VDK API's:
Help > Contents > Manuals > Software Tools Manuals > VDK Manual > VDK (Kernel) User’s Guide > 5 VDK API Reference > VDK Error Codes and Error Values

  • 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.