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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,015件の閲覧回数
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 返信

576件の閲覧回数
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 件の賞賛
返信