Re: [Sdcc-user] Another question about interrupts on STM8

2020-11-19 Thread Hynek Sladky
Would it be possible to add common IRS function for all unused vectors? This will reserve all vectors to be possibly modified later. Hynek Sladky Dne 20.11.2020 v 07:48 Karsten Langeloh napsal(a): And the second is that for the system in general the vector table flash should be empty to be w

Re: [Sdcc-user] Another question about interrupts on STM8

2020-11-19 Thread Karsten Langeloh
> > And the second is that for the system in general the vector table > > flash should be empty > > to be written (as from code running in ram) at a later point. > > And yes _that_ is a very special case. > > I am intrigued as to what your use-case is for dynamically installing > interrupt handlers

Re: [Sdcc-user] Another question about interrupts on STM8

2020-11-19 Thread Basil Hussain
And the second is that for the system in general the vector table flash should be empty to be written (as from code running in ram) at a later point. And yes _that_ is a very special case. I am intrigued as to what your use-case is for dynamically installing interrupt handlers at run-time.

Re: [Sdcc-user] Another question about interrupts on STM8

2020-11-19 Thread Karsten Langeloh
Hi, On Thu, Nov 19, 2020 at 8:33 AM Philipp Klaus Krause wrote: > Am 18.11.20 um 23:10 schrieb Karsten Langeloh: > > The target mcu is a stm8s208. > > I have two files: main.c and isr.c > > I am using SDCC : hc08/s08/stm8 4.0.0 #11528 (Linux) on Gentoo Linux > > Compiling and linking works fine B

Re: [Sdcc-user] Another question about interrupts on STM8

2020-11-18 Thread Philipp Klaus Krause
Am 18.11.20 um 23:10 schrieb Karsten Langeloh: > Hello everyone, > > no this is not the "how do i do interrupts with sdcc" question :) > I have used sdas-stm8 in the past to convert some "old" projects from > STVD to something more usable (aka Makefiles and git) and it worked > great. > > For ano

Re: [Sdcc-user] Another question about interrupts on STM8

2020-11-18 Thread Basil Hussain
Hi, On STM8, I believe the interrupt table will only ever be as large as the highest IRQ number being handled - e.g. if you define no interrupt handlers in your code, then the table will only contain two entries for reset and trap; if you have a TIM4 handler, then it will be 26 entries; and s

[Sdcc-user] Another question about interrupts on STM8

2020-11-18 Thread Karsten Langeloh
Hello everyone, no this is not the "how do i do interrupts with sdcc" question :) I have used sdas-stm8 in the past to convert some "old" projects from STVD to something more usable (aka Makefiles and git) and it worked great. For another project I would like to stay away from assembler coding so