I'm working on a project where I'm using the AT45DB041E flash memory with an nRF52832 microcontroller. I'm trying to write data to the memory and then read it back, but I'm having some trouble. When I try to read the data after writing it, all I get is 0, which means I can't tell if the data was written correctly.
0
Here are the commands I'm using:
0x52
0x54
0x84
0x83
0xD7
0xD4
I made sure the connection between the nRF52832 and the AT45DB041E is set up right, and I'm using the commands just like the AT45DB041E's datasheet says. But, I'm stuck because the read operation isn't showing me the data I wrote.
Could you give me some advice on what to do? Maybe I missed a step or there's a common mistake I'm making? Any help you can give me would be great.
Hi Arun,We have answered this on your private ticket.Please check below:
The project can be found in:
https://github.com/adestotechnologies/Flash-Drivers
The documentation can be found in:
https://adestotechnologies.github.io/Flash-Drivers/html/index.html
The specific AT45 driver can be found in:
https://github.com/adestotechnologies/Flash-Drivers/blob/master/source/dataflash.c
The test function for AT45 can be found in:
https://github.com/adestotechnologies/Flash-Drivers/blob/master/source/test.c
(specifically look for the function dataflashTest() )
We hope it helps.Best Regards,OV_Renesas