Copyright cancelled
Initial commit
At first, it worked on. The error appears unpredictably, only when specifying a codeseg GSFINAL segment. The latest build of the compiler reproduce this error. This is reminiscent of an uninitialized variable error. The assembler text shows the spoiled name .area ??? I said true.
Yes, I will does as it possible. I wanted to do a hidden, otherwise implicit, initialization of the kernel. Thanks again.
Ok. That would be good, for beauty of solution of the startup sections. Thanks in advance.
Non-deterministic segmentation behavior with GSFINAL of STM8 port
Add generation of relocatable code to STM8 port
Thank you again. The method that you proposed is the simplest and safest relative to other.
Yes, too many features exist what in the SDCC would be nice to add. I will think about opening the requests. Good method, but there are other ways to get the Run-in-Ram code by interfering with the stnadard assembly process. They all require re-linking to figure out the size of the sections and rearranging the ROM image. It would be good to understand what additional functions of the compiler are sufficient to create Run-in-RAM code, for saving of the standard code building process.
In limit, this is possible by editing assembly files and manually linking sections. However, is would like the compiler to be able to create relocatable code. Thanks.
Thank you very much, Philipp. Yes, it is very simple for the trivial programs. But if the compiled code include direct or absolute addressing, calls library arithmetics and shareable data then it doesn't seem simple. So far I myself have not found a good solution. May be try to apply the custom linking using stm8-ld? For an example I will give code fragments.
Thank you very much, Philipp. Yes, it is very simple for the trivial programs. But if the compiled code include direct or absolute addressing, calling arithmetics and shareable data then it doesn't seem simple. So far I myself have not found a good solution. May be try to apply the custom linking using stm8-ld? For an example I will give code fragments.
Hello everyone, How to create Run-In-RAM code using SDCC for STM8? Is this possible in principle? Is no problem to create custom code section and place its to fixed RAM position. But unknown how to place code section optimally in order auto-initializing code in RAM as constants from flash. Without this, it is impossible to implement ULP mode STM8L15x MCU family. I would appreciate any help or advice. I asked this question to the ST Community but haven’t received an answer yet. Thanks in advance....
Hello everyone, How to create Run-In-Ram code using SDCC for STM8? Is this possible in principle? Is no problem to create custom code section and place its to fixed RAM position. But unknown how to place code section optimally in order auto-initializing RAM constants from flash. Without this, it is impossible to implement ULP mode STM8L15x MCU family. I would appreciate any help or advice. I asked this question to the ST Community but haven’t received an answer yet. Thanks in advance. Engineer Enthusiast...
Initial commit