[Flashforth-devel] fl+ in FF4.8
Brought to you by:
oh2aun
From: Mike M. <mi...@mo...> - 2013-09-03 19:50:36
|
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 -- Mike Miller WB6TMH Moon Valley Circuits mike@moonvalleycircuits (dot) com http://www.moonvalleycircuits.com/ (707) 996-4157 12350 Maple Glen Rd. Glen Ellen, CA 95442 |