Skip to main content
NMait.1
Associate II
February 12, 2021
Question

QSPI issue

  • February 12, 2021
  • 1 reply
  • 734 views

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
 }
 }

This topic has been closed for replies.

1 reply

ChahinezC
Associate II
March 16, 2021

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.