[Fx2lib-devel] Linker Options
Status: Beta
Brought to you by:
mulicheng
From: Dennis M. <de...@ub...> - 2010-01-27 16:46:52
|
So the 0.2 /lib/fx2.mk is working quite well for me. It's pretty customizable in terms of where you link things and is building all my firmware's in addition to the sample firmwares in the fx2lib repo. I tried out a different firmware this last week that I hadn't used for a while and it took a bit to get it running. I ended up finding out that the usb jump table had been overwritten by the device descriptor. This specific firmware had a much larger device descriptor than the other firmware's I've created and the linker parameters needed to be adjusted. The Makefile lets you do this fine, and that resolved my issue, but I'm wondering if anyone knows a way to make it so there is some type of warning that this is happening. Example: -Wl"-b DSCR_AREA=0x3e00" -Wl"-b INT2JT=0x3f00" Suppose the descriptor is more than 256 bytes and goes beyond 0x3f. Any way to produce some kind of error? -Dennis |