Once you can complete 'Test'
successfully you are ready to
do some programming! Click on the 'WriteFlash' button and get the
following,
Attempting
to write the program Flash Type-2
Uploading Intel Hex file
files/upprog.hex to Program Flash memory
Writing Addr: 00000 Data|05C0|
Writing Addr: 00100 Data|002D|
Writing Addr: 00200 Data|0D91|
Writing Image to Program Flash
Writing Page: 0000
Writing program Flash Page:0 to
chip
Verifying Page 00:80 Addr 00080
Writing Page: 0001
Writing program Flash Page:1 to
chip
Verifying Page 01:80 Addr 00100
Writing Page: 0002
Writing program Flash Page:2 to
chip
Verifying Page 02:80 Addr 00180
Writing Page: 0003
Writing program Flash Page:3 to
chip
Verifying Page 03:80 Addr 00200
Writing Page: 0004
Writing program Flash Page:4 to
chip
Verifying Page 04:80 Addr 00280
Write from file to Program
Flash was successful
Notice that you must click on the
'EraseALL'
button then the
'Test'
button and test the Flash for erasure before trying to program the
Flash! The EEprom can be programmed at anytime but you must set the
'EESAVE' fuse yourself (unset by
default) to prevent the
'EraseALL'
button from erasing the EEprom along with the Flash. Also once the
'EESAVE' fuse is set then the
'Test' button only checks the Flash
for erasure.
Step-2: Call up the command line version of
'bterm' to look for the 'sign-on message'.
Switch
off the power supply. Close the programmer program and change workspace
by clicking on the workspace switcher or right clicking on your
Desktop. Change to the '/SIDE/TOOLS/SIDEtools/CLC/Bterm/src' directory
and open a 'root' terminal there. For newcomers you can do this with
Nautilus and the switch user 'su' command or as follows from a normal
terminal e.g.,
if your user name was 'fred', from the Desktop's Main Menue where you
call programs,
MainMenue>Accessories>Terminal
Maximise the Terminal and issue the 'su'
command followed by pressing the 'Enter' key on your keyboard.
Enter your 'root' password followed by pressing the
'Enter' key on your keyboard. ( watch the case of the characters,
normally all in Lower Case!)
Issue the following command, 'cd
/home/fred/SIDE/TOOLS/SIDEtools/CLC/Bterm/src'.
(alter to suit your user name and where you have put the 'SIDE'
directory!)
You have changed to bterm's Project source directory and
now issue the following command './bterm
0', or './bterm
1' depending on the Computer's serial port you
are using.
You should see the following on your screen (or similar!),
Attempting
to Set Permissions
I/O Permission granted
Bterm GLASS TERMINAL PROGRAM Ver 1.3
(c) D. BURKE 17/7/1992 -> 2007
Commands available are,
QR <enter> Toggle
RESET line of MC-1 programmer to reset MC-1 CPU.
Displaying UART Registers
port --> 02F8 contents
--> 10
port --> 02F9 contents
--> 0
port --> 02FA contents
--> 1
port --> 02FB contents
--> 7
port --> 02FC contents
--> 1
port --> 02FD contents
--> 96
port --> 02FE contents
--> 0
scale reg low
--> contents --> 12
scale reg high -->
contents --> 0
Notice the full stop and forward slash before the program name, this
says to launch this program from the current folder and not some other
program called bterm from the usual PATH.
Also notice the space between the change directory 'cd' command and the
forward slash that starts the target directory location. For other
ways of using 'su' and 'sudo' re-read 'setup C build
environment.txt' and re-read Demo-8.
Step-3: Verify the Sign On Message and End.