Simon Conway(deleted)
03/20/2014 6:32 AM
post109528
|
Hi,
I have been given a task to see if its possible to write to raw NOR flash from c code.
I understand that NOR flash needs to be erased at block level before writing to it, however in this case the raw flash
will already be erased and data will only ever be written to a location once. So I believe I don't need to erase
beforehand.
I tried using system("dd...etc") which works, however, it takes too long for my needs. The time taken seems to depend on
the block size and the address position in NOR. This may be to do with the implementation of 'dd'.
When writing to a file in NOR flash that has a fs mounted the write is quick.
Is there an API that allows me to write directly to raw NOR flash or manage the writing to raw NOR flash? Maybe similar
to that which the fs uses?
Thanks
Simon
|
|
|