音影先锋亚洲天堂网|电影世界尽头的爱完整版播放|国产 熟女 91|高清无码免费观看欧美日韩|韩国一区二区三区黄色录像|美女亚洲加勒比在线|亚洲综合网 开心五月|7x成人在线入口|成人网站免费日韩毛片区|国产黄片?一级?二级?三级

登錄 免費(fèi)注冊 首頁 | 行業(yè)黑名單 | 幫助
維庫電子市場網(wǎng)
技術(shù)交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術(shù) | 電源技術(shù) | 測控之家 | EMC技術(shù) | ARM技術(shù) | EDA技術(shù) | PCB技術(shù) | 嵌入式系統(tǒng)
驅(qū)動編程 | 集成電路 | 器件替換 | 模擬技術(shù) | 新手園地 | 單 片 機(jī) | DSP技術(shù) | MCU技術(shù) | IC 設(shè)計 | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe

在用Keil C51調(diào)試時經(jīng)常報Could not load file, 怎么回事呀

作者:hf202 欄目:單片機(jī)
在用Keil C51調(diào)試時經(jīng)常報Could not load file, 怎么回事呀
在用Keil C51調(diào)試時經(jīng)常報“錯誤Could not load file,調(diào)試終止” 怎么回事呀?
但在程序沒任何改動時偶爾也可以正常調(diào)試

2樓: >>參與討論
hf202
r
我發(fā)覺只要加了 printf()就會報“錯誤Could not load file,調(diào)試終止”,
不加就沒事,Keil C51中的那個例子“hello”也報這個錯


/*------------------------------------------------------------------------------
HELLO.C

COPYRIGHT 1995-1999 Keil SOFTWARE, Inc.
------------------------------------------------------------------------------*/

#include <REG52.H>                /* special function register declarations   */
                                  /* for the intended 8051 derivative         */

#include <stdio.h>                /* prototype declarations for I/O functions */


#ifdef MONITOR51                         /* Debugging with Monitor-51 needs   */
CHAR code reserve [3] _at_ 0x23;         /* space for serial interrupt if     */
#endif                                   /* Stop Exection with Serial Intr.   */
                                         /* is enabled                        */


/*------------------------------------------------
The main C function.  Program execution starts
here after stack initialization.
------------------------------------------------*/
void main (void) {

/*------------------------------------------------
Setup the serial PORT for 1200 baud at 16MHZ.
------------------------------------------------*/
#ifndef MONITOR51
    SCON  = 0x50;                /* SCON: mode 1, 8-bit UART, enable rcvr      */
    TMOD |= 0x20;               /* TMOD: timer 1, mode 2, 8-bit reload        */
    TH1   = 221;                /* TH1:  reload VALUE for 1200 baud @ 16MHZ   */
    TR1   = 1;                  /* TR1:  timer 1 run                          */
    TI    = 1;                  /* TI:   set TI to send first CHAR of UART    */
#endif

/*------------------------------------------------
Note that an embedded program never exits (because
there is no operating SYSTEM to return to).  It
must loop and execute forever.
------------------------------------------------*/
  while (1) {
    P1 ^= 0x01;                 /* Toggle P1.0 each time we print */
    printf ("Hello World\n");   /* Print "Hello World" */
  }
}


參與討論
昵稱:
討論內(nèi)容:
 
 
相關(guān)帖子
繼電器應(yīng)用過程中的一個疑問?
Keil C51編譯問題 急!
實現(xiàn)如下功能的電路如何設(shè)計?
12bit ADC 8051單片機(jī)
求救:表貼三極管的管腳!!
免費(fèi)注冊為維庫電子開發(fā)網(wǎng)會員,參與電子工程師社區(qū)討論,點(diǎn)此進(jìn)入


Copyright © 1998-2006 m.58mhw.cn 浙ICP證030469號