Difference: RaspiElf (13 vs. 14)

Revision 142017-12-17 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Raspberry Pi Interface to Cosmac Elf

Line: 6 to 6
 

elf2bin Utility

Added:
>
>
 Copies the Elf (Membership Card) memory to a binary file on the Raspberry Pi.

The Raspberry Pi GPIO is used as interface to the Cosmac Elf SBC (e.g. Elf Membership Card parallel port).

Changed:
<
<
cc -o elf2bin -lwiringPi elf2bin.c

./elf2bin -s 0 -e ff | hexdump -C 00000000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 00000100

>
>
pi@cosmac:~/elf/RaspiElf/chase $ bin2elf -e 7fff </dev/zero 0x8000 bytes written pi@cosmac:~/elf/RaspiElf/chase $ bin2elf -w -r chase.bin 0x002d bytes written

pi@cosmac:~/elf/RaspiElf/chase $ elf load 01 1 0 0 1 1 0 0c pi@cosmac:~/elf/RaspiElf/chase $ elf2bin -e 3f | hexdump -C 0x0040 bytes read 00000000 c0 00 03 e3 90 b3 f8 30 a3 f8 01 53 64 6c 23 fa |.......0...Sdl#.| 00000010 fe 3a 1a f0 f6 c7 f8 80 30 1f f0 fe c7 f8 01 53 |.:......0......S| 00000020 f8 14 b2 22 92 3a 23 c5 7a 38 7b 30 0c 00 00 00 |...".:#.z8{0....| 00000030 04 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000040

pi@cosmac:~/elf/RaspiElf/chase $ elf 02 1 1 0 1 1 1 ff pi@cosmac:~/elf/RaspiElf/chase $ elf -n read 02 1 1 0 1 1 0 ff pi@cosmac:~/elf/RaspiElf/chase $ elf run

pi@cosmac:~/elf/RaspiElf/chase $ elf put 0 40 1 1 0 0 0 0 00 pi@cosmac:~/elf/RaspiElf/chase $ elf put 80 10 1 1 0 0 0 0 80

pi@cosmac:~/elf/RaspiElf/chase $ elf -v LED:40 Q:1 Rx:1 IN:0 WAIT:0 CLR:0 READ:0 SWITCH:80 pi@cosmac:~/elf/RaspiElf/chase $ elf -v LED:02 Q:0 Rx:1 IN:0 WAIT:0 CLR:0 READ:0 SWITCH:80

 

bin2elf Utility

Line: 91 to 118
 
39 GND      
40 BCM 21      
Added:
>
>

Other Tools

hex2bin

Intel Hex or Motorola Hex file converter.

http://hex2bin.sourceforge.net/

> tar xvjf Hex2bin-2.5.tar.bz2 > make > sudo make install

  -- Peter Schmid - 2017-11-26
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback