Forum Discussion

aiedb's avatar
aiedb
Icon for Occasional Contributor rankOccasional Contributor
6 months ago

writing and reading max10 ufm

hii i have the neek dev kit , and i did a project to write and read the max10 ufm

i see in the signal tap in my project that i can write the data and read successfully

i programmed the board with the pof so that my firmware is inside the board , but when i turn off the board and turn it on again , and read the data from ufm i see that the data is all zeros meaning that the data didn't get saved in the ufm , and i know that the ufm is non volatile memory .

i am using the on chip flash ip , i expect the data to be saved in the ufm .

when i program the pof and perform the write and the do the read while the board under power everything is ok , data get written and read .

but the problem start when i turn the power down

do i need to do a special thing in order to commit the data to the ufm and save so i can read it after power up ???

4 Replies

  • FvM's avatar
    FvM
    Icon for Super Contributor rankSuper Contributor
    I expect you are writing and reading UFM data through On-Chip Flash Intel FPGA IP Core? I don't see how it's possible to loose data after writing, presumed it's not unintentionally erased (to 0xff) or overwritten (to 0x00).
    • aiedb's avatar
      aiedb
      Icon for Occasional Contributor rankOccasional Contributor

      hii yes i am using On-Chip Flash Intel FPGA IP Core

      i will chick my code to see if there indeed the case of unintentionally erased (to 0xff) or overwritten (to 0x00).

  • WZ2's avatar
    WZ2
    Icon for Frequent Contributor rankFrequent Contributor

    Hi there,

    This is indeed quite unusual. UFM is a non-volatile memory, and in theory, its contents should not change or be erased unless explicitly commanded to do so. I suggest checking the UFM before power-down to confirm that the data is intact. Additionally, please ensure that no logic is accessing or modifying the UFM through the IP interface after the device powers up.

    Best regards,

    WZ


  • aiedb's avatar
    aiedb
    Icon for Occasional Contributor rankOccasional Contributor

    hii thanks for help

    i checked my state machine and i indeed did unintentional eraze of the ufm , i corrected my stm and its working fine