首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

求教edk串口调试问题

求教edk串口调试问题

我是想通过串口接受数据 暂存在buffer 然后将数据发回


自己搭了一个串口电路 写了代码如下:


#include "xparameters.h"


#include "stdio.h"


#include "xutil.h"


#include "uartlite_header.h"


#include "xuartlite.h"


#include "xuartlite_l.h"


#define XPAR_RS232_BASEADDR 0x40600000
int main (void)


{
   Xuint32 i;
 
   Xuint8 buff=0;
   
   while(1)
   {
       
           for(i=0;i<900000;i++);
          
           buff = XUartLite_RecvByte(XPAR_RS232_BASEADDR);


           XUartLite_SendByte  (XPAR_RS232_BASEADDR,buff);
  
    }
}


在XMD Debug Option中 cnnection type 选择的是stub, Advanced Option:serial,然后点击Launch XMD,却说:“unable to open serial port com1
                             closing serial port”


不知道是我程序有问题 还是设置问题


请大虾指教 万分感谢!

后面调试的时候 我已经改了debug的方式 已经在xmd时,选择on-chip hardware的方式

但是 在update bitstream时 出现:

WARNING:NgdBuild:452 - logical net
'microblaze_0/microblaze_0/Data_Flow_I/word_r1_r2_unalignment' has no driver
WARNING:NgdBuild:452 - logical net
'microblaze_0/microblaze_0/Data_Flow_I/word_r1_imm_unalignment' has no driver
WARNING:NgdBuild:452 - logical net
'microblaze_0/microblaze_0/Data_Flow_I/halfword_unalignment' has no driver
WARNING:NgdBuild:478 - clock net debug_module/bscan_drck1 with clock driver
debug_module/debug_module/BUFG_DRCK1 drives no clock pins

NGDBUILD Design Results Summary:
Number of errors: 0
Number of warnings: 4

Writing NGD file "system.ngd" ...

Writing NGDBUILD log file "system.bld"...

NGDBUILD done.



#----------------------------------------------#
# Starting program map
# map -o system_map.ncd -pr b system.ngd system.pcf
#----------------------------------------------#

WARNINGhysDesignRules:367 - The signal is
incomplete. The signal does not drive any load pins in the design.
DRC detected 0 errors and 1 warnings.

在download bitsteam时 出现:

CRC error : 0
Decryptor security set : 1
DCM locked : 1
DCI matched : 1
legacy input error : 0
status of GTS_CFG_B : 0
status of GWE : 0
status of GHIGH : 1
value of MODE pin M0 : 0
value of MODE pin M1 : 0
value of MODE pin M2 : 0
value of CFG_RDY (INIT_B) : 1
DONEIN input from DONE pin : 0
IDCODE not validated while trying to write FDRI : 0
write FDRI issued before or after decrypt operation: 0
Decryptor keys not used in proper sequence : 1
INFO:iMPACT:2219 - Status register values:
INFO:iMPACT - 0111 0001 0001 0001 0000 0000 0000 0000
INFO:iMPACT:579 - '3': Completed downloading bit file to device.
INFO:iMPACT:580 - '3':Checking done pin ....done.
'3': Programming terminated, Done did not go high.
Elapsed time = 33 sec.
// *** BATCH CMD : quit

在launch xmd时,有警告:
assuming device no: 3 contains the microblaze system
warning: MDT-MDM peripheral not detected on hardware
warning: MDT-assuming opb_jtag_uart peripheral connected to the Jtag microprocessor debug module(mdm)
no of processors=1

unknow procesor version <8>
verify if fpga bitsteam was downloaded and done pin wen high
有意思 ,帮你顶一下,看看 有没有高手来帮你 解决
想看更多的东西?来我的博客,精彩多多! http://blog.eccn.com/u/bjxiong/index.htm
返回列表