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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,956 Views
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:
 
Labels (1)
0 Kudos
Reply
1 Reply

517 Views
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 Kudos
Reply