I'm using blackfin533, and I would like to write a software for flash memory testing. How would I test the flash memory ? I know how to test an eeprom but how would I test the flash memory of the blackfin533?

  • \$\begingroup\$ Test for what? That flash is in there? That it contains expected information? \$\endgroup\$ – Anonymous Oct 10 '16 at 13:10
  • \$\begingroup\$ that the flash is there, and it contains information. but I don't know how to write it in using C code. how to access it \$\endgroup\$ – andre Oct 10 '16 at 13:12
  • \$\begingroup\$ The blackfin 533 processor has no internal flash memory, so you must have a board with external flash on it, right? Which board, and what OS are you running? \$\endgroup\$ – Bruce Abbott Oct 10 '16 at 16:22
  • \$\begingroup\$ yes, I'm using an external flash, correct. I'm using that flash ST M29W800D. Would you direct me on how to verify that the flash is working ? steps to do ? the datasheet is not valuable \$\endgroup\$ – andre Oct 10 '16 at 18:14
  • 1
    \$\begingroup\$ Possible duplicate of Steps for testing external flash memory \$\endgroup\$ – Chris Stratton Oct 11 '16 at 14:41

Normally applications do not test flash memory as normal flash memory has a limited number of guaranteed write cycles.

The normal practice, if data validation is necessary, is to write a set of data followed by a check sum. The specific type of check sum does not matter as long as it satisfies your requirements. They all should be able to tell if a single bit has unexpectedly changed. More complex check sums can also correct for these unexpected changes.

Added later...

I see from the comments the intent is to use an Analog.com's Blackfin processor to access external flash memory. Perhaps this document will help you develop the code to manage this type of memory.

| improve this answer | |
  • \$\begingroup\$ how would I access and write the data to the flash eeprom \$\endgroup\$ – andre Oct 10 '16 at 14:25
  • \$\begingroup\$ This could be a very broad question. Are you sure you want to write to the processor's flash memory? In many applications, the flash memory is used only for program storage. If you are not careful, writing to flash memory may corrupt your program's execution. Of course Analog's BlackFin processor may have reserved some flash for data storage. You would have to dive into the processors specifications to understand what Analog's intentions were. \$\endgroup\$ – st2000 Oct 11 '16 at 0:27
  • \$\begingroup\$ Oh, I see. You are writing to external flash memory. \$\endgroup\$ – st2000 Oct 11 '16 at 0:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.