请教高人,为什么我的lv8开发板能下载程序,却不能仿真,是什么原因??
 
- UID
- 142050
- 性别
- 男
|
请教高人,为什么我的lv8开发板能下载程序,却不能仿真,是什么原因??
请教高人,为什么我的lv8开发板能下载程序,却不能仿真,是什么原因??我用的是USB multilink,还望高人不吝指教!谢谢! |
|
|
|
|
|
 
- UID
- 142050
- 性别
- 男
|
刚刚进入硬件仿真时的界面是这样的,如图1,为什么assembly panel里的代码都是那样的呢 单步执行也是跳着执行的,关键是执行的结果就像没执行一样,一点反应都没有,而不是像在full chip simulator仿真时的那样,如图2,单步执行就是单步执行,一条一条的往下执行,为什么呢,希望高手帮忙?? |
|
|
|
|
|
 
- UID
- 142050
- 性别
- 男
|
|
|
|
|
|
 
- UID
- 104631
- 性别
- 男
|
你下载前有个警告信息,你的供电电压是3V,但是在这个电压下,似乎设置的时钟频率高了一些 |
|
|
|
|
|
 
- UID
- 142050
- 性别
- 男
|
问题解决了!!!
首先谢谢seuafu2005,然后我再讲一下我怎么找到这个问题吧
1.如要用usb multilink debug则需要先下载程序到芯片flash,只有在flash里有程序的情况下才能debug,而我却以为它和其他51一样,直接debug就行了,认识误区呀 2.LV8的地址0xfdff被我使用了(定义成了const类型数组)关键是初始值为0x00,datasheet中明确规定这样是不可以读flash中数据的,datasheet中是这样讲的"MCU does not allow any user to enter the monitor mode even when all 8 security bytes are matched correctly",这样也就出现了"如图1,为什么assembly panel里的代码都是那样的呢"这样的现象 3.只有security bytes 与flash中的0xfff6~0xfffd里的内容match的情况下才能读flash |
|
|
|
|
|
 
- UID
- 142050
- 性别
- 男
|
还有一个问题请教seuafu2005 为什么我的usb multilink 连开发板需要将示波器也接在开发板上才能连上呢?什么原因呢??谢谢!! |
|
|
|
|
|