On Sat, Aug 6, 2011 at 7:39 AM, Alex Stefan <[email protected]> wrote: > After reading further I concluded that what I need is a separate section, not > defining a memory region. But, from there on, everything gets foggy so I would > need a little help to point me in the right direction: writing a custom linker > file for msp430 and maybe a small example of such a file.
I'm not sure if this is the proper way of doing things, but I built a bootloader for a project of mine based off an old AVR SD/MMC bootloader I'd found. When porting to the MSP430f5438 I positioned it just below the MSP's IV table. Starting at address 0xee00. The reset vector is programmed to always jump to the bootloader code on reset, the bootloader then decides if new code should be loader, etc. The bootloader was moved from the original position of 0x5c00 to 0xee00 using the following linker flag in the makefile. LDFLAGS += -Wl,--section-start=.text=0xEE00 This moves the whole .text section, which worked alright for me as the bootloader program should be separate from your main program. Here is a link to the projects source, it was designed and compiled using the old mspgcc4. Eventually I may port the whole project to the new uniarc mspgcc, but right now I don't have the time. https://github.com/Greeeg/portableMedia/tree/bsl Hope something here helps, --Gregory D. ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Mspgcc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mspgcc-users
