[<<][staapl-blog][>>][..]
Thu May 17 12:34:23 EDT 2012

Getting started

It's been about half a year since I worked on Staapl.  A good
opportunity to write a HOWTO.

- Connect PIC18F2550 to PK2.  PK2 will provide power.
- cd staapl/app/ ; make pk2-2550-48.live

This should give you an OK prompt.  To see if it works, print a Flash
block dump.  Eeach "x" or "." represents a 64byte Flash block, either
(partily) used or empty.



tom@zoo:~/staapl/app$ make pk2-2550-48.live
mzc -vk pk2-2550-48.fm
mzc v5.1 [3m], Copyright (c) 2004-2011 PLT Scheme Inc.
"pk2-2550-48.fm":
 [already up-to-date at "./compiled/pk2-2550-48_fm.zo"]
mzscheme -p zwizwa/staapl/staaplc -- -c pickit2 pk2-2550-48.fm
chmod +x pk2-2550-48.dict
cat pk2-2550-48.fm | grep '\\ #sh#' | cut -b7- >pk2-2550-48.program
mzc -vk pk2-2550-48.fm
mzc v5.1 [3m], Copyright (c) 2004-2011 PLT Scheme Inc.
"pk2-2550-48.fm":
 [already up-to-date at "./compiled/pk2-2550-48_fm.zo"]
mzscheme -p zwizwa/staapl/staaplc -- -c pickit2 pk2-2550-48.fm
chmod +x pk2-2550-48.hex
sh pk2-2550-48.program pk2-2550-48.hex
PICkit 2 Program Report
17-5-2012, 12:44:19
Device Type: PIC18F2550

Program Succeeded.
Device ID = 1240
Revision  = 0002
Device Name = PIC18F2550

Operation Succeeded
mzc -vk ../staapl/live.ss
mzc v5.1 [3m], Copyright (c) 2004-2011 PLT Scheme Inc.
"../staapl/live.ss":
 [already up-to-date at "../staapl/compiled/live_ss.zo"]
mzscheme pk2-2550-48.dict
Connecting to PICkit2.
datfile:  /usr/local/bin/PK2DeviceFile.dat
iProduct: PICkit 2 Microcontroller Programmer
Press ctrl-D to quit.
OK
4 kb
x x x x x x x x
x x x . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
OK




[Reply][About]
[<<][staapl-blog][>>][..]