|
楼主 |
发表于 2006-1-24 10:48:05
|
显示全部楼层
这次用GCC写了一个最简单的C程序,软仿真没问题,下载后没反应,如下:
#include <avr/io.h>
#include <stdio.h>
int main(void) {
for(;;){
DDRG=0xFF;
PORTG=0xFF;
}
}
接仿真器调试,开始不提示,在load memory停住,一直显示running,仿真器闪烁不停。持续半个多小时没变化,Debug的工具栏只有break和reset可以点,点击reset没反应,点break后停止,message提示:
JTAG ICE: Warning: Reading the program counter, an invalid value (0x7FFFFFFF) was received from the device.
JTAG ICE: Warning: A problem occured while executing this debug command! Please check the connections, the voltage, and the clock system of the target application!
gcc plug-in: CProjectTree::OnSize()
gcc plug-in: CProjectTree::OnSize() CProjectTree::Onsize: , cx=332, cy = 159, nType = 9
....(×5)
Error reading memory : IO Address:0 Size:64
Error reading memory : REGISTERS Address:0 Size:32
Error reading memory : SRAM Address:96 Size:160
再进行任何操作就和用汇编时的一样了 |
|