You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently implemented a mechanism to place global data into D_MEM. This design will break on reset, because D_MEM doesn't survive reset. Furthermore, even if it does, globals may have changed at next reset, leading to unexpected results.
Two solutions I can think of:
Add "data ROM" that can be flashed and survives reset
Steal part of I_MEM for initial data. This baseline can possibly be copied into D_MEM on startup
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I recently implemented a mechanism to place global data into D_MEM. This design will break on reset, because D_MEM doesn't survive reset. Furthermore, even if it does, globals may have changed at next reset, leading to unexpected results.
Two solutions I can think of:
Beta Was this translation helpful? Give feedback.
All reactions