cancel
Showing results for 
Search instead for 
Did you mean: 

QSPI issue

NMait.1
Associate II

I am using STM32F746 controller and MX25L128 flash on a custom board.

I want to make external flash loader file for my custom board.

I followed the MOOC - External QSPI loader how to

I got error while memcmp

  for (var = 0; var < SECTORS_COUNT; var++) {
      if (memcmp(buffer_test,
                 (uint8_t*) (0x90000000 + var * MEMORY_SECTOR_SIZE),
                 MEMORY_SECTOR_SIZE) != HAL_OK) {
          while (1)
              ;  //breakpoint - error detected - otherwise QSPI works properly
      }
  }

1 REPLY 1
ChahinezC
Lead

Hello @NMait.1​,

Here are my two suggestions:

  • I see that you are using a different memory from the one used in the project, can you please make sure that you have correctly configured the memory size "#define MEMORY_FLASH_SIZE 0x1000000�??
  • Also during debug session, after enabling memory mapped mode, can you share a screenshot of the QUADSPI memory mapped region (starting from address 0x90000000) ?

Chahinez.