Re: [fpc-devel] How can I distribute code in two different memory areas? (.section)

2013-06-17 Thread Sergei Gorelkin
16.06.2013 23:39, Michael Ring пишет: I had some time this weekend (while beeing grilled by the sun on my balcony) to work on another thing that did not work correct and that I did not understand (Now I do, I least I hope ;-) As said before in this thread, I wanted to distribute Code in two

Re: [fpc-devel] How can I distribute code in two different memory areas? (.section)

2013-06-17 Thread Jeppe Græsdal Johansen
Den 17-06-2013 08:20, Sergei Gorelkin skrev: 16.06.2013 23:39, Michael Ring пишет: I had some time this weekend (while beeing grilled by the sun on my balcony) to work on another thing that did not work correct and that I did not understand (Now I do, I least I hope ;-) As said before in

RE: [fpc-devel] How can I distribute code in two different memory areas? (.section)

2013-06-17 Thread Pierre Free Pascal
: Re: [fpc-devel] How can I distribute code in two different memory areas? (.section) Den 17-06-2013 08:20, Sergei Gorelkin skrev: 16.06.2013 23:39, Michael Ring пишет: I had some time this weekend (while beeing grilled by the sun on my balcony) to work on another thing that did not work

Re: [fpc-devel] How can I distribute code in two different memory areas? (.section)

2013-06-16 Thread Michael Ring
I had some time this weekend (while beeing grilled by the sun on my balcony) to work on another thing that did not work correct and that I did not understand (Now I do, I least I hope ;-) As said before in this thread, I wanted to distribute Code in two different memory areas because this

Re: [fpc-devel] How can I distribute code in two different memory areas? (.section)

2013-06-03 Thread Michael Ring
This version worked, thank you for your help! Michael Am 02.06.13 23:20, schrieb Jeppe Græsdal Johansen: Den 02-06-2013 23:15, Michael Ring skrev: Unfortunately that does not seem to work (or I use it wrong): This procedure: procedure _general_exception_handler; assembler; nostackframe;

[fpc-devel] How can I distribute code in two different memory areas? (.section)

2013-06-02 Thread Michael Ring
Hi, perhaps I am overseeing a simple solution for my problem: On the pic32 there are two flash areas, one at 0x9d00 for the main program and another at 0xbfc0 that is called Boot Flash. On reset the program starts in the boot flash at the first address. I have written the startup

Re: [fpc-devel] How can I distribute code in two different memory areas? (.section)

2013-06-02 Thread Jeppe Græsdal Johansen
Den 02-06-2013 22:41, Michael Ring skrev: Hi, perhaps I am overseeing a simple solution for my problem: On the pic32 there are two flash areas, one at 0x9d00 for the main program and another at 0xbfc0 that is called Boot Flash. On reset the program starts in the boot flash at the

Re: [fpc-devel] How can I distribute code in two different memory areas? (.section)

2013-06-02 Thread Michael Ring
Unfortunately that does not seem to work (or I use it wrong): This procedure: procedure _general_exception_handler; assembler; nostackframe; public name '_GENERAL_EXCEPTION_HANDLER'; asm .section reset sdbbp 0; .Lloopb: b .Lloopb end; translates to: .section

Re: [fpc-devel] How can I distribute code in two different memory areas? (.section)

2013-06-02 Thread Jeppe Græsdal Johansen
Den 02-06-2013 23:15, Michael Ring skrev: Unfortunately that does not seem to work (or I use it wrong): This procedure: procedure _general_exception_handler; assembler; nostackframe; public name '_GENERAL_EXCEPTION_HANDLER'; asm .section reset sdbbp 0; .Lloopb: b .Lloopb end;