Hi Mikael,
I played with ff5 on the curiousity board. It works well ! But I dicovered that new defenitions are seemingly always compiled to flash. (the prompt shows ok, ram)
Because after a reset or even a powercycle , the defenitions are still in memory.
I assume this isn't normal behaviour.
What could cause this ?
Regards,
Ronny
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That is the normal behaviour. On the PIC24 the code can only be executed from flash, so it is always compiled to flash. The prompt tells you where data is located.
So
ramvariableramvar
compiles a variable named ramvar to flash which stores its data in ram.
eepromvariableeepromvarflashvariableflashvar
These store the data in eeprom and flash. Remember that flash and eeprom have limited write endurance.
Hi Mikael,
I played with ff5 on the curiousity board. It works well ! But I dicovered that new defenitions are seemingly always compiled to flash. (the prompt shows ok, ram)
Because after a reset or even a powercycle , the defenitions are still in memory.
I assume this isn't normal behaviour.
What could cause this ?
Regards,
Ronny
That is the normal behaviour. On the PIC24 the code can only be executed from flash, so it is always compiled to flash. The prompt tells you where data is located.
So
compiles a variable named ramvar to flash which stores its data in ram.
These store the data in eeprom and flash. Remember that flash and eeprom have limited write endurance.
I recommend reading flashforth.com
Thanks. Problem solved.
Oh , I have read flashforth.com many times ...
Regards Ronny