zoukankan      html  css  js  c++  java
  • 调试GIC中断代码时出现的2个问题 ZEDBOARD,ZYNQ7000

    2 important questions to notify while debuging the GIC interrupt program

       

    • Once your interrupt generated, you should clear the flag bit . Otherwise, the next interrupt would be ignored . you should reset you system while you debug these application without interrupt clear operation.

      If NOT, you will not be able to see the interrupt appears when download the 2th time.

       --This is a false conclusion!!!

    • Why the printf function have no effect at all in the interrupt handler function, like this:

      void DeviceDriverHandler(void *CallbackRef)

      {

          InterruptProcessed = TRUE;

          printf("DeviceDriverHandler running ...");

      }

      • You should use Xil_printf instead of printf as follows:

    void DeviceDriverHandler(void *CallbackRef)

    {

        /*

         * Indicate the interrupt has been processed using a shared variable

         */

        InterruptProcessed = TRUE;

        xil_printf("DeviceDriverHandler running..\n");

    }

    As the printf is a function of stdio.h and why it does NOT work?

    • XScuGic_SetPriorityTriggerType(&InterruptController, INTC_DEVICE_INT_ID,0xa0, 0x3);    //####

      What's the meaning of 0xa0 and 0x3???

  • 相关阅读:
    美化的滚动条
    网站系统开发参考网址
    正则表达式获取URL参数
    类实例 及 实例化对象 对象引用
    C# 静态方法 静态属性 调用静态方法
    C# 静态方法调用非静态方法
    winform 窗体间传值
    从数据库中读出数据并输出
    数据库链接字符串
    DbHelper
  • 原文地址:https://www.cnblogs.com/dragen/p/3132164.html
Copyright © 2011-2022 走看看