This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF24LU1+: read flash using MOVX or MOVC

Hi,

We tripped on an odd bug: we were getting corrupted data from flash if Keil's C51 compiler used a MOVX instruction instead of MOVC.

Changing the pointers from generic to typed code seems to have fixed this but we're not sure what to make of this as the spec for the chip clearly states both instructions can be used.

As this been seen before?

Thanks.

Parents
  • Hi

    Where is it stated that both instructions can be used?

    In the nRF24LE1 I know the XDATA and code memory regions were separate, and you had to use the right instruction, but I see there is no address space overlap between code and XDATA in the nRF24LU1+ so you might be correct.

    My memory on the nRF24LU1+ is getting a bit rusty unfortunately, but I can check internally.

    Best regards

Reply
  • Hi

    Where is it stated that both instructions can be used?

    In the nRF24LE1 I know the XDATA and code memory regions were separate, and you had to use the right instruction, but I see there is no address space overlap between code and XDATA in the nRF24LU1+ so you might be correct.

    My memory on the nRF24LU1+ is getting a bit rusty unfortunately, but I can check internally.

    Best regards

Children
No Data
Related