[hpsdr] Compile FX2-fw
Gerd Loch
g.loch at nt-electronics.de
Wed Jun 4 09:13:16 PDT 2008
Hi Bill,
you do not need to apologyze. We all have some other things to do besides
FX2...
Your zipfile helped to find the solution.
I now use Eclipse under Windows and and found that "asx8051-eclipse.zsh" is
not working properly (mkdir and cp cannot be found). You can see this in the
attached file "error_log.txt". Oviously the system needs to be able to
handle mkdir and cp what is not true for a bare windows os. After installing
"CYGWIN" all is working fine.
Thanks for your help.
73, Gerd
DJ8AY
-----Original Message-----
From: Bill Tracey [mailto:bill at ewjt.com]
Sent: Wednesday, June 04, 2008 7:24 AM
To: g.loch at nt-electronics.de
Subject: RE: [hpsdr] Compile FX2-fw
Hi Gerd,
Apologies for being slow to respond -- work's keeping my busy of late.
I don't quite know what the issue you're running into is. I did zip
up my built under Eclipse FX2 tree and placed it
@: http://tracey.org/wjt/hpsdr/temp/ozysdr1kfx2.zip
In the release dir, there is a makefile that eclispe generates. I
also put a copy of the console log from running the build in
build.log -- that pretty much shows all the compiler options being
used with the various commands.
Hope this helps -- let me know either way. Willing to help, just a
matter of me finding time for it.
Cheers,
Bill (kd5tfd)
At 07:27 AM 6/2/2008, you wrote:
>Hi Bill,
>
>I did not yet succeed in compiling the fx2-sw successfully. The hexfile
>I compiled (without using your linking-script)is about 17KB where the
>original is 22KB. It was compiled by SDCC within CODE::BLOCKS using the
>project file from Phil Covington.
>This file however does not work as I told you in my first email.
>
>As there is no project file for CODE::BLOCKS in your directory and I do
>not use ECLIPSE (what is your projectfile for) I could not find the way
>to start the compiler without error messages. Before I can run your
>linking-script I should probably compile.
>
>Could you please explain me the way.
>
>Thanks
>
>Gerd, DJ8AY
>
>
>-----Original Message-----
>From: Bill Tracey [mailto:bill at ewjt.com]
>Sent: Saturday, May 31, 2008 6:15 AM
>To: g.loch at nt-electronics.de; hpsdr at hpsdr.org
>Subject: Re: [hpsdr] Compile FX2-fw
>
>
>Hi Gerd,
>
>Not sure what the error might be. The error message is a little
>deceptive, PowerSDR is likely complaining that it does not see Ozy,
>or that the FX2 firmware it is not responding as expected. When
>you power on PowerSDR do you see the DOS window running initozy11.bat
>run? Does it appear to succeed -- you may want to try running it by
>hand to see if the FX2 is loading succesfully and if the FPGA is
>loadingf as well.
>
>I do not know why your .hex file is coming up smaller -- the version of
>SDCC I'm using announces itself as:
>
>SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08
>2.6.0 #4309 (Jul 28 2006) (MINGW32)
>
>How much smaller is the .hex you're getting?
>
>One thing to watch out for is the link order of the modules is
>significant -- the link command I'm using is:
>
>sdcc --verbose -L"f:\sdcc\lib" --no-xinit-opt --xram-loc 0x2000
>--xram-size 0x2000 --code-size 0x2000 -Wl -b" USBDESCSEG = 0xE000"
>-o"ozyfw-sdr1k.hex" ./Initial/src/asm/vectors.rel
>./Initial/src/asm/_startup.rel ./Initial/src/asm/usb_descriptors_X1.rel
>./Initial/src/lib/delay.rel ./Initial/src/lib/fx2utils.rel
>./Initial/src/lib/i2c.rel ./Initial/src/lib/isr.rel
>./Initial/src/lib/spi.rel ./Initial/src/lib/timer.rel
>./Initial/src/lib/usb_common.rel ./Initial/src/board_specific.rel
>./Initial/src/eeprom_io.rel ./Initial/src/fpga_load.rel
>./Initial/src/hpsdr_common.rel
>./Initial/src/hpsdr_main.rel ./Initial/src/sdr1kctl.rel
>
>I don't remember how much of the ordering is significant -- I know for
>sure vectors.rel has to be first.
>
>The latest version of the code is
>at:
>svn://206.216.146.154/svn/repos_sdr_hpsdr/trunk/KD5TFD/Ozy-FX2-SDR1K-Co
>ntrol
>
>- can't say I've changed it much of late.
>
>Regards,
>
>Bill (kd5tfd)
>
>
>
>At 07:52 AM 5/30/2008, Gerd Loch wrote:
> >***** High Performance Software Defined Radio Discussion List *****
> >
> >Question for KD5TFD:
> >
> >I tried to compile the FX2-firmware from
> >.../trunk/kd5tfd/Ozy-FX2-SDR1K-Control/initial with SDCC Version
> >2.8.0 under the CODE::BLOCKS IDE instead of ECLIPSE. The Compiler
> >runs without errors but the hex-file is shorter and I get an error
> >message when starting PowerSDR out of PennyMerge: Error starting
> >audio on janus. Is Janus connected and powered.?
> >
> >I have Mercury-EU and no Janus connected to Ozy.
> >
> >What could be wrong or where do I find the correct version for
> >Ozy-FX2-SDR1K-Control ?
> >
> >Gerd, DJ8AY
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: error_log.txt
URL: <http://lists.openhpsdr.org/pipermail/hpsdr-openhpsdr.org/attachments/20080604/ad7891c8/attachment-0002.txt>
More information about the Hpsdr
mailing list