Home arrow Support arrow Forums

Luminary Micro Forums

<< Start < Prev 1 2 Next > End >>

Pallavaggarwal

Senior Boarder

2006/12/25 11:19

using flash for data storage (as EEPROM)

How to read flash?nothing found on reading either on datasheet nor on device driver pdf
FMA is 32bit register but has only 15bits(0-14 and writable) so in LMS811 64k memory access how to write the address..... ?

if i have programed a word on alocation and if want to reprogramm that location with different data whether i have erase that block first to reprogramm?

Please help as soon as possible
thanks and regards
pallav aggarwal

login or register to reply

LMI Eric

Moderator

2006/12/27 10:13

Re:using flash for data storage (as EEPROM)

I have replied to the support request you created.

For anyone else wondering, you can read any flash location just as you read SRAM or any other memory mapped area.

You can also use the FMA register to look at the contents of the flash. There are only 15 bits because 64k represents addresses 0-0xFFFF.

login or register to reply

Pallavaggarwal

Senior Boarder

2006/12/27 10:54

Re:using flash for data storage (as EEPROM)

thanks for you reply
to represent 0xFFFF address i think we need 16bits and not 15bits please correct me if i am wrong.

also please tell me how to access flash memory
tell me if i want to read memory location 0x0000FC00

also tell me if we have to erase the block every time if we want to reprogram some bytes stored..

Again thankyou very much

Pallav Aggarwal

login or register to reply

LMI Eric

Moderator

2006/12/27 11:15

Re:using flash for data storage (as EEPROM)

Oops, you're correct - we do need 16 bits. It's been a long 3 day vacation :)

Looking at the documentation, the FMA does have 16 bits to represent the address offset, so I don't see where you're getting the 15 bits from. Try downloading the latest datasheet.

To read any memory, the following will work (this is the HWREG macro in DriverLib):

data = (*((volatile unsigned long *)(x))), where x is the address you want to read.

login or register to reply

Pallavaggarwal

Senior Boarder

2006/12/27 11:19

Re:using flash for data storage (as EEPROM)

thanks a lot let me check if this solves my prob i will tell u soon..

Thanks and Regards
Pallav Aggarwal

login or register to reply

Pallavaggarwal

Senior Boarder

2006/12/27 11:35

Re:using flash for data storage (as EEPROM)

hey dear u please see in datasheet..101 page in FMA...16bit is white but written RO(readonly i think)...
this is what is latest on website.i downloaded right now.

i had older that has 16thbit in orange and RO written too....please help what the hell it is?

Reagards
Pallav Aggarwal

login or register to reply
<< Start < Prev 1 2 Next > End >>