Re: [Sdcc-user] STM8 RAM code execution

2015-10-02 Thread Alan Cox
On Fri, 2 Oct 2015 18:58:20 +0200 Georg Icking-Konert wrote: > hello all, > > may I bother you again with a question about how to execute code in the RAM > of STM8…? > > For routines in RAM (as mandatory for STM8 flash block write/erase), I > understand the steps are: > > compile & link rout

Re: [Sdcc-user] STM8 RAM code execution

2015-10-02 Thread Alan Cox
> I implemented an unused routine which contains N _nop_ operations. But > isn’t there an easier way, e.g. "const code byte buf[N]“ or so…? PS: if you need to force this bit you can either make it a string (at least most SDCC ports currently stick strings in code not const which I guess is r

Re: [Sdcc-user] STM8 RAM code execution

2015-10-02 Thread Philipp Klaus Krause
On 02.10.2015 18:58, Georg Icking-Konert wrote: > hello all, > > may I bother you again with a question about how to execute code in the > RAM of STM8…? > > For routines in RAM (as mandatory for STM8 flash block write/erase), I > understand the steps are: > > 1. compile & link routine for addre

[Sdcc-user] STM8 RAM code execution

2015-10-02 Thread Georg Icking-Konert
hello all, may I bother you again with a question about how to execute code in the RAM of STM8…? For routines in RAM (as mandatory for STM8 flash block write/erase), I understand the steps are: compile & link routine for address in RAM —> works now using #pragma in C code and —codeseg for