Re: [Fx2lib-devel] FX2 Bulkloop example compiled sized
Status: Beta
Brought to you by:
mulicheng
From: Chris M. <fx...@m3...> - 2009-10-03 11:42:38
|
If you're developing with SDCC and fx2lib on Windows you may find this useful: http://www.makestuff.eu/wordpress/?page_id=343 On Sat, 2009-10-03 at 10:29 +0000, S S wrote: > Hi Dennis, > > The hex2bix has a parameter -m to specify the size of the memory for > the target device but that didn't seem to make a difference. The > format for specifying the size is not given however so I might have > made a mistake when entering it. > > Failing that I'll use objcopy (I am on windows just now so I will have > to swap to linux for this I believe). > > I am away from my desk at the moment but I'll let you know the results > once I get a chance of playing with all that some more. > > Cheers, > > Sebastien > > > > > Date: Fri, 2 Oct 2009 09:44:04 -0600 > > From: de...@ub... > > To: fx2...@li... > > Subject: Re: [Fx2lib-devel] FX2 Bulkloop example compiled sized > > > > Hi Sebastien, > > > > For me, The files (on Linux) are: > > > > bulkloop.asm: 58K > > bulkloop.rel 23K > > bulkloop.ihx 18K > > > > The ihx file size isn't really relevant to the firmware size, the > most > > important thing is the bix size and the iic (for the eeprom) size. > > > > With hex2bix, you probably need to pass in a parameter for the max > size > > or something. What is the command line you are using that is > showing > > you the error? > > > > I haven't really used hex2bix much though since objcopy already has > > built in support for ihex files: > > > > objcopy -I ihex -O binary bulkloop.ihx bulkloop.bix > > > > That gives me: > > bulkloop.bix = 8.7K > > > > ihx2iic.py (from the fx2lib/utils directory) > > ihx2iic.py bulkloop.ihx bulkloop.iic > > bulkloop.iic = 5186 bytes > > > > Bix files must be <= 16K to be loadable on the FX2 > > iic files must be <= size of the eeprom. The Cypress dev board has > a > > 16K eeprom. Some boards use an 8K or smaller prom. This iic file > > should fit on either size prom. > > > > You might want to make sure your fx2lib is up to date. A while back > I > > pushed a fix to get rid of printf statements in some of the > libraries > > (those can be enabled for debugging but shouldn't be there for > > production firmware.) Before that there would be extra functions or > > printing included in the final firmware even if you didn't use them. > > > > -Dennis > > > > S S wrote: > > > Hi Dennis, > > > > > > What sizes of .ihx and .iic files do you get using your bulkloop > example? > > > I get the following sizes: > > > bulkloop.asm = 60kB > > > bulkloop.rel = 24kB > > > bulkloop.ihx = 21kB > > > > > > and the hex2bix firmware returns an error telling me the input > image > > > is too big for output file size Addr = 0x2000, len = 0xe > > > > > > The bulkloop example from cypress in comparison is around 2kB and > it > > > does not look too dissimilar to what you have done. > > > > > > Any idea on where I might have gone wrong? > > > > > > Incidentally what is the command you are using with sdcc for this > example? > > > > > > Cheers, > > > > > > Sebastien > > > > > > > > > > ------------------------------------------------------------------------ > > > Beyond Hotmail - see what else you can do with Windows Live. Find > out > > > more. <http://clk.atdmt.com/UKM/go/134665375/direct/01/> > > > > ------------------------------------------------------------------------ > > > > > > > ------------------------------------------------------------------------------ > > > Come build with us! The BlackBerry® Developer Conference in > SF, CA > > > is the only developer event you need to attend this year. > Jumpstart your > > > developing skills, take BlackBerry mobile applications to market > and stay > > > ahead of the curve. Join us from November 9-12, 2009. Register > now! > > > http://p.sf.net/sfu/devconf > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > Fx2lib-devel mailing list > > > Fx2...@li... > > > https://lists.sourceforge.net/lists/listinfo/fx2lib-devel > > > > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry® Developer Conference in SF, > CA > > is the only developer event you need to attend this year. Jumpstart > your > > developing skills, take BlackBerry mobile applications to market and > stay > > ahead of the curve. Join us from November 9-12, 2009. Register > now! > > http://p.sf.net/sfu/devconf > > _______________________________________________ > > Fx2lib-devel mailing list > > Fx2...@li... > > https://lists.sourceforge.net/lists/listinfo/fx2lib-devel > > > ______________________________________________________________________ > Have more than one Hotmail account? Link them together to easily > access both. > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ Fx2lib-devel mailing list Fx2...@li... https://lists.sourceforge.net/lists/listinfo/fx2lib-devel |