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

[hal][nrfx_qspi.c] Is it reasonable to check if 'p_buffer' word aligned in 'qspi_xfer'?

Hi Nordic guys,

I'm developing with nrf5340, and meet some problem with writing external flash - nrf qspi flash.

I found it sometime failed in 'flash_area_write' and return -22.

And I debug and find that, in qspi_xfer, line 99 at 'modules/hal/nordic/nrfx/drivers/src/nrfx_qspi.c', it check if the write data buffer's address is word aligned!

That's why it failed at writing nrf qspi flash.

In my opinion, it need to check aligned with 'address', but not 'p_buffer'.

Will any body help and fix me?

BR

Ben

Parents
  • Hi Ben

    What version of the nRF Connect SDK are you using for development? On my end (v1.8.0) size_t   length is located at line 99. And to me it seems correct that the length must be word aligned. Let me know if you disagree, or if it is different on your end.

    Best regards,

    Simon

Reply
  • Hi Ben

    What version of the nRF Connect SDK are you using for development? On my end (v1.8.0) size_t   length is located at line 99. And to me it seems correct that the length must be word aligned. Let me know if you disagree, or if it is different on your end.

    Best regards,

    Simon

Children
Related