-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In NVM mode VARIABLE and ALLOT should refer to RAM storage #16
Comments
|
94d49aa achieves the necessary extra level of indirection for code in ROM by replacing "Variables in RAM" works in the following way:
The feature works transparently if the following programming workflow is used:
The new feature currently requires about 80 bytes Flash memory but I think that it can be reduced to about 60 bytes. Here are preview binaries: stm8ef-bin.zip |
v2.2.8.1.snapshot and the |
This is awesome! I actually encountered this problem in some code and solved it by simply choosing a RAM slot near the end of memory and using it directly. Not pretty, but it worked. I'll have to try this out soon, when I get some free cycles. |
@hexagon5un RigTig on Hackaday.io already did some preliminary testing. It would be great if you could give it a spin, too! |
Merged to master in release 16 (version v2.2.8). |
Provide a convenient way for defining variables that work in ROM code:
VARIABLE
shall be transparent in a programming / debug / test cycleALLOT
shall allocate variable memory when inNVM
modeNVM
toRAM
The behavior of ALLOT will be different in NVM mode, since
HERE
and the RAM pointer are not the same. A new word for the current RAM location (maybeTHERE
?) is required.See the comments in #5 for more details.
The text was updated successfully, but these errors were encountered: