i am unable to write and read from the OTP.can u please send example code for write and read in to the OTP. iam using BF525 processor.
I have attached an example for reading OTP. You should be able to easily modify it to write, but if you have problems let me know. I'm always a little reluctant to provide a working write example because the pages that are written cannot subsequently be reprogrammed.
thanks for giving otp read example code.please send me the otp write code also.
You can refer OTP chapter of BF52x HRM. On Page No 4-30, you will find some codes for OTP Page read and OTP Page Write.
Make sure that PLL is programmed properly to required SCLK before initialising OTP access settings.
PLL is pogrammed properly and i am getting sclk also but i am unabale to read from the OTP.i am reading zero everything like unique id etc.here i am attaching my program please help me
You are not initialising OTP memory prior to reading OTP memory pages.
I am attaching the projects for writing & reading the OTP pages. These are based on codes given in HRM. It worked fine for me on BF527 EZ-KIT.
In addition to the initialization that Prashant mentions I also suggest that you check the VDDOTP and VPPOTP are powered 2.5V (nominal) on your board.
hi sir ,
now i am able read from the OTP but i am not sure that it is reading properly or not.i am reading unique id from OTP. here i am getting msg like this
page: 0x004L, Content ECC: 0x00000000ff8008dc, returncode: 0xff800574 page: 0x004L, Content ECC: 0x00000000ff8008e4, returncode: 0xff800574
please tell me i am reading currect or not.i am attaching my code also please reply me
What is the content of ‘return_code’ variable in the BF memory? Is it same as what you see in the console window?
Why are you trying to print pointer value? In your code, you should try to print the information as:
printf("page: 0x%03xL, Content ECC: 0x%016llx, returncode:0x%03x \n", Page, *WR_pointer, return_code);
this is for NAND FLASH
i have example code for write and read from the nand flash.but it will write only 2048 bytes. i want to write more than that so please give me example code for writing and reading to a nand flsh more than 2048.
NAND FLASH Ic part number is- NAND04GW3B2DN1
page size is-2048+64bytes
blocksize -128k+4k bytes
memory array-64 pages*4096 blocks
please help me i am waiting for ur reply
The NAND flash questions here are resolved in another thread:
Retrieving data ...