This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM263P4: OSPI Flash driver (flash_nor_ospi) word aligned access

Part Number: AM263P4

Tool/software:

The OSPI Driver here:

    ${MCU_PLUS_SDK_PATH}\source\board\flash\ospi\flash_nor_ospi.c

... has a check for page aligned offset in:

   Flash_norOspiWrite

… as seen here:

 

I see in the document:

  SPRUJ55, AM263P Technical Reference Manual, Section 13.3.2.4

“The data interface bus is 32-bits wide. Therefore only byte, halfword and word accesses are permitted.”

I interpret this to mean that word-aligned access/offsets are supported by the peripheral.

 Questions:

1.

What is the purpose of the check in flash_nor_ospi.c?

 

2.

Are word-aligned read, and write commands are supported by flash_nor_ospi.c?

 

3.

(If not) If word-aligned read, and write commands are required, what is the recommended approach?