S08: writing in flash registers

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

S08: writing in flash registers

1,761 Views
ramabh
Contributor I
hi
I am new to this HCS08.I am trying to wtrite data in flash registers FCDIV and FCMD but i am not able....what may be the possible reason for this one


Alban Edit: Added part number in subject line.

Message Edited by Alban on 2007-03-13 10:37 PM

Labels (1)
0 Kudos
3 Replies

274 Views
peg
Senior Contributor IV
Hi ramabh,
 
On the very limited information you have given I can suggest two possible issues:
 
1. FCDIV is "write once". That is only the first write to this register after a reset will be honoured.
 
2. FCMD is "write only" attempts to read it will always give 0.
 
Give us some more info on your problem and we may be able to help you more.
 
0 Kudos

274 Views
ramabh
Contributor I
hi peg
 
 
Ya i know that FCMD is write only...i am just checking the memory location through debugger but i am not able to see the BYTE program command(0x20) there its showing 00 only and i am getting access error
 
whether we are not able to see the memory locations also
0 Kudos

274 Views
peg
Senior Contributor IV
Hi,
 
"See"ing IS reading. Looking at this register in the debugger or simulator or whatever IS reading it! Reading this register either via programme code or via the BDM WILL yield ZERO! That is how it works and how it is documented in the datasheet.
 
0 Kudos