This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

4 Bytes repeating when using memcpy

Hi ,

We are using Cortex-M4(STM32F429IIH6) processor for our IOT project. We are seeing a data corruption when memcpy used, the corruption pattern was identified by feeding a Fixed pattern of size 512 Bytes from Src to Dest using memcpy, and it is not happening in all the iterations.

If you see the image attached below that Data "6 N 7 O" is replaced with 2 Bytes("Highlighted with orange color" 4L).  

Can any one tells that what can be the reason for this wired behavior? We are in a critical phase of our project.

 

Regards,

Krishna Prasad

Parents
  • Thank you for all the valuable suggestions and  comments,

    We have resolved this issue by Setting RBURST bit in the SDCR Register of SDRAM as per the errata,

                                   Screenshot- 1

    But after the fix we saw that the above fix will can introduce SDRAM bank address corruption 

                                      Screenshot- 2

    Can any one suggest the steps to do the Second or third work around mentioned in the Screenshot- 2 without affecting the Previous fix.

    www.st.com/.../en.DM00068628.pdf

    Regards,

    Krishna Prasad

Reply
  • Thank you for all the valuable suggestions and  comments,

    We have resolved this issue by Setting RBURST bit in the SDCR Register of SDRAM as per the errata,

                                   Screenshot- 1

    But after the fix we saw that the above fix will can introduce SDRAM bank address corruption 

                                      Screenshot- 2

    Can any one suggest the steps to do the Second or third work around mentioned in the Screenshot- 2 without affecting the Previous fix.

    www.st.com/.../en.DM00068628.pdf

    Regards,

    Krishna Prasad

Children