Hmmm, I guess the mspgcc4 isn't generating the required calla/reta instruction for the far calls. For own code, it could be fixed by simply doing a search&replace on the generated intermediate ASM files. (requires tweaking of the makefile). AS and LD support the full 430X instruction set almost properly (even in the non-X branches) But if the linked stdlib/gcclib does not contain the proper reta instructions or e.g. the multiplication/division code or any library functions, then it still won't work. Putting constant data into far flash is more difficult.
JMGross > mspgcc4 does not support more than 64KB of flash. You can probably > hand-code calls; there should be instructions somewhere on the list > archives, now available at > http://www.mail-archive.com/[email protected]/ > Would somebody who has gotten the MSP430X branch of mspgcc3 to generate code > for far text and/or data mind writing up a short how-to for the wiki? > Peter ----- Ursprüngliche Nachricht ----- Von: Emilie An: Daniel Beer Gesendet am: 21 Okt 2010 11:32:28 Betreff: Re: [Mspgcc-users] new version 0.12:programmation in the flash2onthe MSP430F5438A Hi Daniel, With the new Hex.c file, the program loads in the flash1 and flash2. But the execution of the program is not ok. With the same program: when I load only in the flash1, the execution is ok. To use the flash2 with my program in the compilation mspgcc4, I used the command "__attribute__((section(".fartext")))" before several functions. I'm going to check if the options of my compilation mspgcc4 are good. Perhaps that I must use a specific option with mspdebug to load the format large_memory_model? Regards, Emilie LAYEC. -------------------------------------------------- From: "Daniel Beer" <[email protected]> Sent: Wednesday, October 20, 2010 10:46 PM To: "Emilie" <[email protected]> Cc: "GCC for MSP430 - http://mspgcc.sf.net" <[email protected]> Subject: Re: [Mspgcc-users] new version 0.12:programmation in the flash2onthe MSP430F5438A > On Wed, Oct 20, 2010 at 09:13:19AM +0200, Emilie wrote: >> Hi Daniel, >> You will find in the attached file the hex file. >> Thanks a lot for your help, >> Regards, >> Emilie LAYEC > > Hi Emilie, > > I found a bug in HEX file parsing which caused the >64k portions of > this file to be loaded at the wrong address. I've pushed through a > change to the git repository which should fix this problem. > > Instructions for getting at the git repository can be found on this > page: > > http://mspdebug.sourceforge.net/download.html > > Let me know if this change works for you. > > Cheers, > Daniel ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Mspgcc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mspgcc-users ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Mspgcc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mspgcc-users
