[hpsdr] Compile FX2-fw

Bill Tracey bill at ewjt.com
Fri May 30 21:15:14 PDT 2008


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-Control 
- 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



 1212207314.0


More information about the Hpsdr mailing list