天嵌 ARM开发社区

 找回密码
 注册
查看: 2487|回复: 1

关于AXD与J-link调试

[复制链接]
arm-kevin 发表于 2011-10-21 13:22:23 | 显示全部楼层 |阅读模式
大家好,请问大家一个问题:
我修改好了一个程序,用AXD调入映像后当我利用J-link仿真的时候4个LED灯轮流点亮(程序的实现也正是如此),而当我利用USB烧写到开发板时,四个灯全亮了,而不像流水灯一下轮流点亮。
主程序如下:
/****************************************************************
NAME: u2440mon.c
DESC: u2440mon entry point,menu,download
****************************************************************/
#define        GLOBAL_CLK                1

#include <stdlib.h>
#include <string.h>
#include "def.h"
#include "option.h"
#include "2440addr.h"
#include "2440lib.h"
#include "2440slib.h"

void Delay1(int z)
{
        int x,y;
        for(x=z;x>0;x--)
                for(y=110;y>0;y--);
}

void Main(void)
{
        U32 mpll_val=0;

        Port_Init();

        mpll_val = (92<<12)|(1<<4)|(1);
        ChangeMPllValue((mpll_val>>12)&0xff, (mpll_val>>4)&0x3f, mpll_val&3);        //设置FCLK为400M
        ChangeClockDivider(14, 12);        //设置分频比为1:4:8
        rCLKCON = 0xfffff0;        //使能 NAND, USBD, PWM TImer,UART0和GPIO时钟,

        while(1)
        {
        Led_Display(1);
        Delay1(5000);
        Led_Display(2);
        Delay1(5000);
        Led_Display(4);
        Delay1(5000);
        Led_Display(8);
        Delay1(5000);       
        }                 

}
denvice 发表于 2011-11-29 13:09:35 | 显示全部楼层
延时太短??或者是你烧录错误
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-9 03:50 , Processed in 1.031256 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表