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.

Even if it's just a once-at-startup thing to be writing the interrupt vector table, because the table lives in flash memory, you're going to be shortening the lifetime of that chunk of flash memory. However, I don't know the intended usage patterns of whatever your device will be, so maybe that's not a problem given the S208's specification of 10k write cycles. But it would be suicide on smaller chips, like the STM8S003, where flash is only specified for 100 (yes, one hundred) write cycles.

Regards,
Basil Hussain


_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to