URL
https://opencores.org/ocsvn/usb_fpga_1_11/usb_fpga_1_11/trunk
[/] [usb_fpga_1_11/] [trunk/] [bin/] [bmpsdcc.sh] - Diff between revs 2 and 5
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 5 |
Line 41... |
Line 41... |
ec="$?"
|
ec="$?"
|
if [ "$ec" != 0 ]; then
|
if [ "$ec" != 0 ]; then
|
exit $ec
|
exit $ec
|
fi
|
fi
|
|
|
sdcc -mmcs51 --code-loc 0x0200 --code-size 0x2e00 --xram-loc 0x3200 --xram-size 0x1000 --iram-size 256 $PEEPH $3 $base.tmp.c -o $base.ihx
|
sdcc -mmcs51 --code-loc 0x0200 --code-size 0x3800 --xram-loc 0x3A00 --xram-size 0x600 --iram-size 256 $PEEPH $3 $base.tmp.c -o $base.ihx
|
ec="$?"
|
ec="$?"
|
if [ "$ec" != 0 ]; then
|
if [ "$ec" != 0 ]; then
|
exit $ec
|
exit $ec
|
fi
|
fi
|
|
|
addr=`grep ".*:.* _DeviceDescriptor" $base.map | (
|
addr=`grep ".*:.* _DeviceDescriptor" $base.map | (
|
read a b
|
read a b c
|
|
if [ "$c" = "_DeviceDescriptor" ]; then
|
|
echo 0x${b#*:}
|
|
else
|
echo 0x${a#*:}
|
echo 0x${a#*:}
|
|
fi
|
)`
|
)`
|
echo "Addr=$addr"
|
echo "Addr=$addr"
|
if [ $((addr & 1)) = "0" ]; then
|
if [ $((addr & 1)) = "0" ]; then
|
exit 0
|
exit 0
|
else
|
else
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.