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 Reply Children
  • I don't quiet understand why? For we just make use of the context of the buffer. It may be strange and unkind if there is some limitation with the buffer address.

    Take an example, if I just want to skip some header of a buffer, that may likely match the limitation and go failed. How can people use EasyDMA friendly?

    BR

    Ben

Related