I'm using a RT1176 in a custom board with SDRAM and a IS25WP128-JBLE QSPI external flash.
We are doing a HMI, and the flash size is getting small for including images in flash, so we changed the flash to IS25WP256D-JLLE.
When the code is less than 50% of the flash size, all is working fine, but when we start using the "new sectors" we get a hard fault in data_init.

I changed the board flash size in board.h and a line in board.c
#if defined(XIP_EXTERNAL_FLASH) && (XIP_EXTERNAL_FLASH == 1)
/* Region 8 setting: Memory with Normal type, not shareable, outer/inner write back. */
MPU->RBAR = ARM_MPU_RBAR(8, 0x30000000U);
// MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_RO, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_16MB);
MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_RO, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_32MB);
#endif
/*! @brief The board flash size */
#define BOARD_FLASH_SIZE (0x2000000U)
Also changed the size in MCU settings:

Maybe the cfx driver is not valid?
I need to do more steps?
Thank you very much