This shows you the differences between two versions of the page.
— |
installing_gputils_and_sdcc_on_fedora_core_5 [2007/08/14 17:50] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Installing GPUTILS and SDCC on FC5 ====== | ||
+ | This is just a clone of the gentoo details but specific for FC5. Should work for anything with yum and rpm. | ||
+ | |||
+ | ===== install GPUTILS ===== | ||
+ | |||
+ | the FC5 'extras' repository has a gputils package, so we can install it with: | ||
+ | |||
+ | ''yum install gputils'' | ||
+ | |||
+ | |||
+ | ===== Install SDCC 2.5 ===== | ||
+ | |||
+ | yum didn't find a package for SDCC 2.5, so lets install it from an RPM. Download a 2.5.0 RPM from: | ||
+ | |||
+ | [[http://rpmfind.net/linux/rpm2html/search.php?query=sdcc&submit=Search+...|RPMFind SDCC search]] (I used "sdcc-2.6.0-1mdk.i586.rpm"). | ||
+ | |||
+ | and install it (either with 'rpm -ivh <filename>' or by opening it with the package installer from the firefox download window and following onscreen instructions. | ||
+ | |||
+ | ===== Testing it all ===== | ||
+ | |||
+ | * download [[http://www.ucapps.de/mios/clockbox_v1_0.zip]]. | ||
+ | |||
+ | <code bash> | ||
+ | unzip clockbox_v1_0.zip | ||
+ | cd clockbox_v1_0 | ||
+ | make | ||
+ | </code> | ||
+ | |||
+ | Output should look like: | ||
+ | ======================== | ||
+ | |||
+ | <code bash> | ||
+ | gpasm -c -DSTACK_HEAD=0x37f -DSTACK_IRQ_HEAD=0x33f -I mios_wrapper mios_wrapper/mios_wrapper.asm -o _output/mios_wrapper.o | ||
+ | sdcc -S -mpic16 -p18F452 --fstack --fommit-frame-pointer --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2 -pleave-reset-vector -DDEBUG_MODE=0 main.c -o _output/main.asm | ||
+ | Processor: 18F452 | ||
+ | perl tools/fixasm.pl _output/main.asm | ||
+ | gpasm -c _output/main.asm -o _output/main.o | ||
+ | sdcc -S -mpic16 -p18F452 --fstack --fommit-frame-pointer --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2 -pleave-reset-vector -DDEBUG_MODE=0 mclock.c -o _output/mclock.asm | ||
+ | Processor: 18F452 | ||
+ | perl tools/fixasm.pl _output/mclock.asm | ||
+ | gpasm -c _output/mclock.asm -o _output/mclock.o | ||
+ | sdcc -S -mpic16 -p18F452 --fstack --fommit-frame-pointer --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2 -pleave-reset-vector -DDEBUG_MODE=0 pic18f452.c -o _output/pic18f452.asm | ||
+ | Processor: 18F452 | ||
+ | perl tools/fixasm.pl _output/pic18f452.asm | ||
+ | gpasm -c _output/pic18f452.asm -o _output/pic18f452.o | ||
+ | gplink -s project.lkr -m -o project.hex _output/mios_wrapper.o _output/main.o _output/mclock.o _output/pic18f452.o | ||
+ | perl tools/hex2syx.pl project.hex | ||
+ | Block 003000-0033FF allocated - Checksum: 62 | ||
+ | Block 003400-0037FF allocated - Checksum: 52 | ||
+ | Block 003800-003BFF allocated - Checksum: 07 | ||
+ | Block 003C00-003FFF allocated - Checksum: 73 | ||
+ | rm _output/main.asm _output/mclock.asm _output/pic18f452.asm | ||
+ | </code> |