Re: [Mspgcc-users] Custom linker file

2011-08-14 Thread Alex Stefan
In the end I've customised a little the solution proposed by JM Gross in one of the posts above. Thank you all for your help! If anyone is interested I will post the details tomorrow when I get to the office. Regards, Alex --

Re: [Mspgcc-users] Custom linker file

2011-08-09 Thread JMGross
- Ursprüngliche Nachricht - Von: Alex Stefan Gesendet am: 09 Aug 2011 07:57:19 JMGross grossibaer.de> writes: >> My own approach for this was as follows (note that my 'bootloader' is only a >> 'boot copier'. >> The new firmware has been received by the old firmware and stored (wit

Re: [Mspgcc-users] Custom linker file

2011-08-08 Thread Alex Stefan
Eric Decker gmail.com> writes: > > On Mon, Aug 8, 2011 at 10:57 PM, Alex Stefan > cloudbit.ro>wrote: > > > > > As I said, seems like a very good idea, but there's one thing I don't > > understand. Why do you need the 'indirect jumping zone'. Why wouldn't it be > > possible to program the vecto

Re: [Mspgcc-users] Custom linker file

2011-08-08 Thread Eric Decker
On Mon, Aug 8, 2011 at 10:57 PM, Alex Stefan wrote: > > As I said, seems like a very good idea, but there's one thing I don't > understand. Why do you need the 'indirect jumping zone'. Why wouldn't it be > possible to program the vector in bootvect to jump directly to the > interrupt > vector tabl

Re: [Mspgcc-users] Custom linker file

2011-08-08 Thread Alex Stefan
JMGross grossibaer.de> writes: > > You should do it exactly the other way: put the bootloader to the end of 64k > region > and move everything else down. > The main reason is that each program has its own interrupt vector table. > Including its own reset vector. > But your bootloader needs to

Re: [Mspgcc-users] Custom linker file

2011-08-08 Thread JMGross
sts.sourceforge.net Gesendet am: 06 Aug 2011 00:09:16 Betreff: [Mspgcc-users] Custom linker file Hello, I am working on a custom bootloader. For the time being I am trying to the main code to a higher address and create a custom section to hold the bootloader code. After reading further I concluded

Re: [Mspgcc-users] Custom linker file

2011-08-07 Thread Gregory Davill
On Sat, Aug 6, 2011 at 7:39 AM, Alex Stefan 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 > fil

Re: [Mspgcc-users] Custom linker file

2011-08-07 Thread Alex Stefan
David W. Schultz earthlink.net> writes: > > I plan on adding a bootloader to my current project but haven't quite > reached that stage yet. But I have given it some thought and I think my > plan is a bit different from yours. > > My plan is to link two stand alone programs. I have to do this > e

Re: [Mspgcc-users] Custom linker file

2011-08-06 Thread David W. Schultz
On 08/05/2011 05:09 PM, Alex Stefan wrote: > Hello, > > I am working on a custom bootloader. For the time being I am trying to the > main > code to a higher address and create a custom section to hold the bootloader > code. I plan on adding a bootloader to my current project but haven't quite

[Mspgcc-users] Custom linker file

2011-08-05 Thread Alex Stefan
Hello, I am working on a custom bootloader. For the time being I am trying to the main code to a higher address and create a custom section to hold the bootloader code. After modifying the memory.x file in lib/ldscripts/ I have created a new region called "bootldr" and moved the "rom" up by 8