STM32U5A9J-DK OctalFlash Read failure
Hello,
I generated a project for STM32U5A9J-DK with STM32CubeIDE (v1.16.0). It doesn’t include the OctalFlash test code. So, I used the test codes in chapter "Octo-SPI FLASH in Regular-command protocol example" of attached AN5050.
The mounted OctalFlash is MX25UM51245G. With the program, the data output was shifted by one byte as below.
After I use the HAL_OSPI_DELAY_BLOCK, the pass rate becomes higher but still fails. Please help.
Thanks.
- result from the default program w/o HAL_OSPI_DELAY_BLOCK
FAILURE index 0x00000000 Expect 0x20 Output 0x50
FAILURE index 0x00000001 Expect 0x50 Output 0x20
FAILURE index 0x00000002 Expect 0x72 Output 0x50
FAILURE index 0x00000003 Expect 0x6F Output 0x72
FAILURE index 0x00000004 Expect 0x67 Output 0x6F
FAILURE index 0x00000005 Expect 0x72 Output 0x67
FAILURE index 0x00000006 Expect 0x61 Output 0x72
FAILURE index 0x00000007 Expect 0x6D Output 0x61
SUCCESS index 0x00000008 Expect 0x6D Output 0x6D
FAILURE index 0x00000009 Expect 0x69 Output 0x6D
FAILURE index 0x0000000A Expect 0x6E Output 0x69
FAILURE index 0x0000000B Expect 0x67 Output 0x6E
- result from the modified program with HAL_OSPI_DELAY_BLOCK
FAILURE index 0x00000000 Expect 0x20 Output 0x40
SUCCESS index 0x00000001 Expect 0x50 Output 0x50
FAILURE index 0x00000002 Expect 0x72 Output 0x50
SUCCESS index 0x00000003 Expect 0x6F Output 0x6F
FAILURE index 0x00000004 Expect 0x67 Output 0x6F
SUCCESS index 0x00000005 Expect 0x72 Output 0x72
SUCCESS index 0x00000006 Expect 0x61 Output 0x61
SUCCESS index 0x00000007 Expect 0x6D Output 0x6D
SUCCESS index 0x00000008 Expect 0x6D Output 0x6D
SUCCESS index 0x00000009 Expect 0x69 Output 0x69
FAILURE index 0x0000000A Expect 0x6E Output 0x68
SUCCESS index 0x0000000B Expect 0x67 Output 0x67

