Hi, I've been trying the compiler on a msp430f2617. So far I haven't been able to use printf using the -mdata-64k option. The same program with the linux version of the compiler works just fine. Any thoughts on what may cause this?
2010/1/12 Gerald Lutter <[email protected]>: > Hi Mark, > > Am Dienstag, 12. Januar 2010 schrieb Mark Sutton: >> Does the version in the link below really support the high flash in the >> MSP430X chips? > > yes it does because we use this area with exactly this toolchain. > >> I was under the impression that the build linked below added support for >> the 5529, the 55xx series' somewhat unique register and interrupt vector >> arrangement, and more complex timers, but *DID NOT* support access to >> memory above 64k. >> >> Does it actually support the memory above 64k? If so, that's the point >> where I get really interested. > > It supports the memory above 64k for code (e.g by placing functions inside the > fartext section). But there is one problem: If you use the functions with a > variable number of parameters (like printf) it will not work, because the > stack gets corrupted. > > But if you use the compiler switch -mdata-64k then you are able to use > functions with a variable parameterlist. You only have to ensure that all > parameters reside in the lower 64k segment. > > Best regards, > Gerald > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > -- Jordi Soucheiron Software Engineer DEXMA Parc Tecnològic la Salle Sant Joan de la Salle, 42 08022 Barcelona t/f: [+34] 93 181 01 95 www.dexmatech.com [email protected]
