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

Related