Hi Bernie, > 1. I notice some MACROS around each header file > entry. Are these for the linker so it knows the > address of each peripheral? If so, can you tell > me how to use them.
Yes, they are used to set the addresses but not for the linker it's for the compiler and the assembler. The linker itself compared to the CC-Essentials Toolchain does not know anything about the SFR locations. For details take a look at my post on the mailinglist: "Complete Support for msp430x54xx devices inside msp430-libc" from 2009/08/20 11:55. > 2. After adding the header file and adding the > details to msp430x55x9-new...., can I just > recompile with the script with mspgcclibc=1? No because the directory will be cleaned every time you start the script. The script itself stops after adding the current patches to msp430-libc. You have to press <ENTER> to proceed. At this point you can apply your changes to the library. After finishing your work just press Enter and your changes will be part of your version of the library. Before continuing the build by pressing <ENTER> I recommend to create a patch of your version because if anything goes wrong during compile you can continue your work by just adding your patch to the current version of the library. Best regards Gerald -----Ursprüngliche Nachricht----- Von: Bernard Mentink [mailto:[email protected]] Gesendet: Mittwoch, 18. November 2009 19:18 An: GCC for MSP430 - http://mspgcc.sf.net Betreff: Re: [Mspgcc-users] msp430x5529 support On Wed, Nov 18, 2009 at 9:06 PM, Gerald Lutter <[email protected]>wrote: > Hi Bernie, > > yes, that is not supported at the Moment, but you are invited to build > the needed header. To make it work with our version of the toolchain > you have to do the following steps: > > 1. download the newest version of msp430-libc (X-Branch) > 2. apply the needed patches of the script > 3. inside the msp430-libc/include/msp430new directory create a new > common header for usb 4. inside the msp430-libc/include directory is > the template file for the header, there you have to add the usb > component 5. compile the msp430-libc > > if you don't need assembler support there is a more easy way: a. do > step 3. b. add the new header to the C-Part of msp430x55x9.h > > Best regards > Gerald > > > hi Gerald. I don't mind having a crack at it. Can you answer some questions first though: 1. I notice some MACROS around each header file entry. Are these for the linker so it knows the address of each peripheral? If so, can you tell me how to use them. 2. After adding the header file and adding the details to msp430x55x9-new...., can I just recompile with the script with mspgcclibc=1? Thanks, Bernie
