hello all,
I did some more tests and seemingly the RAM program fails if I overwrite
certain addresses. My theory is that the ROM bootloader requires these
and thus fails if I overwrite them. But it's a pretty weak theory,
because I feel it fails for too many RAM addresses. Hmmm...
In a similar context another interesting finding: I tried to jump back
from the RAM routine to the ROM bootloader after a few seconds using
"return;". However that failed. Either I made a mistake or I would need
to know the address in ROM to jump back to :-(
Background of this thread is a request by Philipp for stm8gal to replace
the ST flash routines in RAM by OSS code
(https://github.com/gicking/stm8gal/issues/4)
Any idea how to proceed? Thanks a lot in advance!
Georg
Am 24.11.20 um 19:35 schrieb Philipp Klaus Krause:
Am 24.11.20 um 19:01 schrieb Georg Icking-Konert:
hello again again,
sorry for flooding you with this issue but I have good news!
As I don't know where SDCC / STM8 store stack, heap etc. in RAM, I
thought I'd better stay away from the borders. Seemingly that was a bad
idea, because if I replace 0xa0 in Makefile by 0x00 (start of RAM), it
works as expected.
Again sorry for bothering you with this and thanks to Basil for his
support!
Have a great day :-)
Georg
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user