Hantek6022API
Hantek6022API copied to clipboard
Linux firmware installation problem
Dear rpcope1!
I want to use the Hantek6022 but the oscilloscope firmware in building stuck under Ubuntu 4.14:
fazekas@fazekas-ESPRIMO-E3500:~/Letöltések/Hantek6022API-master/PyHT6022/HantekF
irmware/custom$ make
for a in dscr.a51; do
cp $a build/;
cd build && sdas8051 -logs basename $a
&& cd ..; done
for s in fw.c device.c; do
THISREL=$(basename echo "$s" | sed -e 's/\.c$/\.rel/'
);
sdcc -mmcs51 --code-size 0x3c00 --xram-size 0x0100 --xram-loc 0x3c00 -Wl"-b DSCR_AREA=0x3d00" -Wl"-b INT2JT=0x3f00" -c -I ../fx2lib/include $s -o build/$THISREL ; done
fw.c:62: warning 158: overflow in implicit constant conversion
sdcc -mmcs51 --code-size 0x3c00 --xram-size 0x0100 --xram-loc 0x3c00 -Wl"-b DSCR_AREA=0x3d00" -Wl"-b INT2JT=0x3f00" -o build/firmware.ihx build/fw.rel build/device.rel build/dscr.rel fx2.lib -L ../fx2lib/lib
Multiple definition of _handle_get_descriptor
make: *** [build/firmware.ihx] Error 1