-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > 4) code in RAM: actually I don?t need it for performance but to log > data to the program flash, because the EEPROM is too small for my > needs. To my understanding the program flash of the STM8 doesn?t > support execute-while-write, so I need the actual flash write&erase > routines in RAM?? At least the Cosmic compiler (and STM8 boot > loader) require that. The Cosmic compiler supports that via #pragma > and linker settings. Can this be done in SDCC as well and, if yes, > how? A small example would be highly welcome? ;-)
It should be possible e.g. by having the code that goes into RAM in a separate file and using the --codeseg option to sdcc and -b option to the linker. > 7) far points for >64kB: when item 4) is solved, I?ll need to > access >> 64kB memory space when reading out the data log. Would it work if >> I > manually load the 24bit address to the respective STM8 register > via inline assembler? Again, any help is highly appreciated! > However, I?ll need to wait until I have something to read out? ;-) Inline asm or a function impleented in asm and called from C should do. Philipp -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlNAXP4ACgkQbtUV+xsoLprztgCfefME6kXfuSjo4I3N60hZLCx/ js4An2tunTfzuS9DMrUrSyRNUhvfXbi4 =zpmL -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user