On 2/2/2012 4:20 PM, Butuza Tamas wrote: > [snip] > It is a descriptor block for the internal USB peripheral of the mcu and > should be placed exactly to 0x400 address in ram. > Of course this place should be kept clear by the linker and compiler when > assign place to the other variables. > > The best way should be define a special section in the linker script but I do > not know how to do this, and did not found any information mregarding this. > (In gputils doc) > Write this into the lkr file should work?: > [snip]
FWIW, using __at(), like C18's #pragma, is clear and unambiguous. Writing it in the source itself allows you to easily use proper names for the endpoint descriptor stuff and data I/O array stuff, and the declarations are in one location only. IMHO using a linker script is an unnecessary complication. > Did anybody tried this, and have any experience? Only for MPLAB C18. I have done a (faked) mouse firmware from scratch on PIC18 based on docs only. -- Cheers, Kein-Hong Man (esq.) Kuala Lumpur, Malaysia ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user