博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
调试GIC中断代码时出现的2个问题 ZEDBOARD,ZYNQ-7000
阅读量:5035 次
发布时间:2019-06-12

本文共 1122 字,大约阅读时间需要 3 分钟。

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???

转载于:https://www.cnblogs.com/dragen/archive/2013/06/11/3132164.html

你可能感兴趣的文章
RotateAnimation详解
查看>>
系统管理玩玩Windows Azure
查看>>
c#匿名方法
查看>>
如何判断链表是否有环
查看>>
ssh无密码登陆屌丝指南
查看>>
MySQL锁之三:MySQL的共享锁与排它锁编码演示
查看>>
docker常用命令详解
查看>>
jQuery技巧大放送
查看>>
字符串转换成JSON的三种方式
查看>>
Hive时间函数笔记
查看>>
clojure-emacs-autocomplete
查看>>
一个自己写的判断2个相同对象的属性值差异的工具类
查看>>
10 华电内部文档搜索系统 search03
查看>>
[HDU1402]A * B Problem Plus(FFT)
查看>>
[CF803C] Maximal GCD(gcd,贪心,构造)
查看>>
逆时针旋转的矩阵变换
查看>>
第10周15/16/17
查看>>
四六级作文常见错误解析(转载)
查看>>
Tomcat
查看>>
./是当前目录 ../是当前的上一级目录。上上级就是../../一般绝对路径时候常用...
查看>>