CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

at45db081

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guest








at45db081
PostPosted: Tue May 19, 2009 9:01 am     Reply with quote

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);


Code:

at45db021.c


+++++++++++++++++++++++
Deleted code from at45db021.c driver.

Reason: Forum rule #10
10. Don't post the CCS example code or drivers,

-- Forum Moderator
+++++++++++++++++++++++
Guest








PostPosted: Tue May 19, 2009 11:33 am     Reply with quote

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?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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