|
|
View previous topic :: View next topic |
Author |
Message |
Guest
|
at45db081 |
Posted: Tue May 19, 2009 9:01 am |
|
|
Hi, could someone help me to understand how I can write just a single byte, long, int32 into a specific address, and then read it.
It should be, ext_flash_writeBytes(), to write, one byte = length 1.
And to read, ext_flash_readBytes(), this seems to work ok, but not the write. But I'm not sure if I have to send an opcode to the flash or ?
The following driver is supposed to be working, it's from the forum.
But how to use it? the PIC gets stuck in the writing process.
I'm trying to write as for ex:
Code: |
#define ADDR_COUNT_ADDRESS 65538
int32 ADDRESS_COUNTER = 1000;
ext_flash_writeBytes(ADDR_COUNT_ADDRESS, &ADDRESS_COUNTER, 4);
|
+++++++++++++++++++++++
Deleted code from at45db021.c driver.
Reason: Forum rule #10
10. Don't post the CCS example code or drivers,
-- Forum Moderator
+++++++++++++++++++++++ |
|
|
Guest
|
|
Posted: Tue May 19, 2009 11:33 am |
|
|
I think this flash is only programmable in page mode, 256 bytes at time.
Needs page address and in the case of a single byte? an offset to that page, am I right? |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|