I have a project that works find when the BDM is connecte...

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I have a project that works find when the BDM is connecte...

1,957 次查看
wtowens
Contributor I
I have a project that works find when the BDM is connected to the project system.  When the project is power cycled the project will no longer work correctly.  It can be reset with the BDM and reset button and it work correctly also.  I am using a  HCS08 SH8 processor and the project has the watchdog disabled.  With the BDM connected the project comes up and displays information on the 2 line LCD attached to the serial port.   After a power reset of the project the display either shows nothing or strange characters.  Hard to tell if anything else if working correctly since the status is displayed on the LCD.:smileymad:
 
标签 (1)
0 项奖励
回复
1 回复

518 次查看
WadeH
Contributor III
This has happened to me several times. My problem was this:
 BDM software will set the oscillator-trim value to make the CPU bus-clock a standard value (say, 10.0 MHz.) Your code, too, must set this value: Somewhere near the beginning you will need something like this:

  lda $FFAF     ; get BDM's calculated value from Flash
  sta ICSTRM    ;  correct oscillator with it

Wade

0 项奖励
回复