Re: [Flashforth-devel] fl+ in FF4.8
Brought to you by:
oh2aun
From: Mikael N. <mik...@pp...> - 2013-09-04 04:15:16
|
Hi Mike, Great to hear that FlashForth is working out for you. The fl+ and fl- are correct in words.txt but reversed in the code. Just correct the code and it will work the same way as in other FlashForths. I will fix that in git. The flash write should succeed like this: fl+ 1234 flashVar ! iflush fl- IFLUSH triggers the write to flash. Waiting for the C-interface ! BR Mike On 09/03/2013 10:35 PM, Mike Miller wrote: > We are nearing completion of our project, using FF4.8 on the > PIC24FJ256GB110. > FF has proven to be a robust platform. > We have found and fixed some minor bugs, which we will later post. > Tovar has worked out a good interface to C that has C and FF cooperating. > When it is ready we will post it. > > I am currently stuck trying to use fl+ to protect flash. > BTW: The words.txt file has the definitions of fl- and fl+ reversed. > I have a few variables that need to be in flash. I would like to call > fl+ at startup, locking flash. > Then, when the code needs to write to a flash variable, it would call > fl-, write, and then call fl+. > > The problem is that I cannot call fl+ from the word that writes to > flash, or even from the same line at the console. When I try, the > routine LOCKED: calls an address error, apparently because it is not > done writing? > Adding a long delay before fl+ does not work. > I can call fl+ from a new line at the console after the write without error. > > Is there a bit or flag that I can test to tell when the flash write is > done, before calling fl+ ? > > 73 > |