hello Mikael
is there any way in ff to write code , execute it but don't save it into flash? keep it in ram until the power-off. I need some thing like that for my new project....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No. The PICs and the AVRs can execute code only from flash.
But I don't mind compiling to flash all the time. I have not worn out the flash on any single chip since I started with this in 2004. FlashForth always compiles to a ram buffer and writes the buffer to flash after a definition is complete.
In addition, the flash wear in PIC24 is considerably smaller if you upload the code with a script.
Normally the write to flash occurs after a word has been defined. But if more writes are made within 300 milliseconds, then the buffer to flash write is postponed until no further writes targeted for the flash occurs, or until the flash sector is full. On the Scamp the flash sector is one kilobyte, so quite a lot of code can be compiled until the ram buffer is written to flash.
Last edit: Mikael Nordman 2024-08-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thank you for the answer!!
I will adapt my project with this information.
im trying to make a manage file system for the expande memory in the scamp and keep the project files in this memory.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello Mikael
is there any way in ff to write code , execute it but don't save it into flash? keep it in ram until the power-off. I need some thing like that for my new project....
No. The PICs and the AVRs can execute code only from flash.
But I don't mind compiling to flash all the time. I have not worn out the flash on any single chip since I started with this in 2004. FlashForth always compiles to a ram buffer and writes the buffer to flash after a definition is complete.
In addition, the flash wear in PIC24 is considerably smaller if you upload the code with a script.
Normally the write to flash occurs after a word has been defined. But if more writes are made within 300 milliseconds, then the buffer to flash write is postponed until no further writes targeted for the flash occurs, or until the flash sector is full. On the Scamp the flash sector is one kilobyte, so quite a lot of code can be compiled until the ram buffer is written to flash.
Last edit: Mikael Nordman 2024-08-05
thank you for the answer!!
I will adapt my project with this information.
im trying to make a manage file system for the expande memory in the scamp and keep the project files in this memory.